Open utterances-bot opened 2 months ago
macOS 14 进行本地测试的时候会报如下错误:
timeout --foreground 30s qemu-system-riscv64 \
-machine virt \
-nographic \
-bios ../bootloader/rustsbi-qemu.bin \
-kernel target/riscv64gc-unknown-none-elf/release/os
make[1]: timeout: No such file or directory
make[1]: *** [run] Error 1
原因是 timeout
指令在原生 macOS 并不支持。解决办法参考是通过 brew 安装对应包即可:
brew install coreutils
参考:https://stackoverflow.com/questions/3504945/timeout-command-on-mac-os-x
離線測試的源若有權限問題,可改採 github 源
git clone https://github.com/LearningOS/rCore-Tutorial-Checker-2024S.git ci-user
git clone https://github.com/LearningOS/rCore-Tutorial-Test-2024S.git ci-user/user
chapter3练习 - rCore-Tutorial-Guide-2024S 文档
https://learningos.cn/rCore-Tutorial-Guide-2024S/chapter3/5exercise.html