LearningOS / rcore_step_by_step_doc

21 stars 5 forks source link

2. 最小化内核 · GitBook #3

Open xy-plus opened 4 years ago

xy-plus commented 4 years ago

https://learningos.github.io/rcore_step_by_step_webdoc/docs/%E6%9C%80%E5%B0%8F%E5%8C%96%E5%86%85%E6%A0%B8.html

INFCode commented 3 years ago

cargo 已经提供了build-std feature,可以替代xbuild,这也是目前xbuild仓库readme里建议的做法。参见https://github.com/rust-osdev/cargo-xbuild。

feifei10244499 commented 2 years ago

我运行cargo build --target riscv32-os.json 报的错是这样的 error: failed to run rustc to learn about target-specific information

feifei10244499 commented 2 years ago

error: rust-src component not found. Run rustup component add rust-src.

feifei10244499 commented 2 years ago

一直按照你的方法,但是到这个地方 : 使用 nightly rust toolchains,就还行了。