You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everybody, i am a new guy for both risc-v and rust.
I have tried this example with newest stable rust 1.52.1. I just cloned this repo, and type cargo build, then it failed with some error such as "private mod" and so on. This is corrected by replacing k210-hal's version with git address, this change can be found in diff.txt, which is the output of git diff Cargo.toml.
But then, I try cargo build, there is a link error:
error: linking with rust-lld failed: exit code: 1
...// some long error about object file and link param
error: linking with rust-lld failed: exit code: 1
= note: rust-lld: error: /tmp/k210-example/target/riscv64gc-unknown-none-elf/debug/deps/libriscv-0cd34d7ac3269d39.rlib(riscv.o): cannot link object files with different floating-point ABI
rust-lld: error: /tmp/k210-example/target/riscv64gc-unknown-none-elf/debug/deps/libriscv_rt-35242cf52d273fa0.rlib(riscv-rt.o): cannot link object files with different floating-point ABI
Hi everybody, i am a new guy for both risc-v and rust.
I have tried this example with newest stable rust 1.52.1. I just cloned this repo, and type
cargo build
, then it failed with some error such as "private mod" and so on. This is corrected by replacingk210-hal
's version with git address, this change can be found in diff.txt, which is the output ofgit diff Cargo.toml
.But then, I try
cargo build
, there is a link error:error: linking with
rust-lld
failed: exit code: 1...// some long error about object file and link param
error: linking with rust-lld failed: exit code: 1
= note: rust-lld: error: /tmp/k210-example/target/riscv64gc-unknown-none-elf/debug/deps/libriscv-0cd34d7ac3269d39.rlib(riscv.o): cannot link object files with different floating-point ABI
rust-lld: error: /tmp/k210-example/target/riscv64gc-unknown-none-elf/debug/deps/libriscv_rt-35242cf52d273fa0.rlib(riscv-rt.o): cannot link object files with different floating-point ABI
error: aborting due to previous error
error: could not compile k210-example
here is the full output
output.txt
BTW, The components i have installed list below:
cargo-x86_64-unknown-linux-gnu (installed)
clippy-x86_64-unknown-linux-gnu (installed)
llvm-tools-preview-x86_64-unknown-linux-gnu (installed)
rust-docs-x86_64-unknown-linux-gnu (installed)
rust-src (installed)
rust-std-riscv64gc-unknown-none-elf (installed)
rust-std-x86_64-unknown-linux-gnu (installed)
rustc-x86_64-unknown-linux-gnu (installed)
rustfmt-x86_64-unknown-linux-gnu (installed)
if there is any information is missed here, please let me know.
In my opinion, K210 use lp64f abi, which is unusual. For risc-v64, lp64d abi is more common.
The text was updated successfully, but these errors were encountered: