rCore_tutorial_doc
rCore_tutorial_doc copied to clipboard
使用目标三元组描述目标平台 · GitBook
https://rcore-os.github.io/rCore_tutorial_doc/chapter2/part1.html
在这一页和下一页开头部分,当使用,cargo build --target riscv64imac-unknown-none-elf会报错。
error: linking with `rust-lld` failed: exit code: 1
|
= note: "rust-lld" "-flavor" "gnu" "-L" "/usr/local/rustup/toolchains/nightly-2020-02-20-x86_64-unknown-linux-gnu/lib/rustlib/riscv64imac-unknown-none-elf/lib" "/mnt/os/target/riscv64imac-unknown-none-elf/debug/deps/os-cc2f835278bb95cd.1tl2g6tscoawd75n.rcgu.o" "-o" "/mnt/os/target/riscv64imac-unknown-none-elf/debug/deps/os-cc2f835278bb95cd" "--gc-sections" "-L" "/mnt/os/target/riscv64imac-unknown-none-elf/debug/deps" "-L" "/mnt/os/target/debug/deps" "-L" "/usr/local/rustup/toolchains/nightly-2020-02-20-x86_64-unknown-linux-gnu/lib/rustlib/riscv64imac-unknown-none-elf/lib" "-Bstatic" "/usr/local/rustup/toolchains/nightly-2020-02-20-x86_64-unknown-linux-gnu/lib/rustlib/riscv64imac-unknown-none-elf/lib/librustc_std_workspace_core-910d8a7d49c293b2.rlib" "/usr/local/rustup/toolchains/nightly-2020-02-20-x86_64-unknown-linux-gnu/lib/rustlib/riscv64imac-unknown-none-elf/lib/libcore-f9bbf070145abc2f.rlib" "/usr/local/rustup/toolchains/nightly-2020-02-20-x86_64-unknown-linux-gnu/lib/rustlib/riscv64imac-unknown-none-elf/lib/libcompiler_builtins-ee3e72e671394dfe.rlib" "-Bdynamic"
= note: rust-lld: error: cannot open output file /mnt/os/target/riscv64imac-unknown-none-elf/debug/deps/os-cc2f835278bb95cd: Function not implemented
error: aborting due to previous error
error: could not compile `os`.
To learn more, run the command again with --verbose.
在docker环境下运行的。 rust-toolchain nightly2020-02-20