riscv-rust / k210-pac

Peripheral access API crate (PAC) for K210 SoC, generated by svd2rust
29 stars 23 forks source link

link error #37

Open w0x7c00 opened 2 years ago

w0x7c00 commented 2 years ago

When I use k210-pac with rustc version 1.57.0-nightly (e1e9319d9 2021-10-14) , a linker error has occurred:

rust-lld: error: /Users/ccccc/project1/target/riscv64gc-unknown-none-elf/debug/deps/libriscv-e250ddc6abcaec40.rlib(riscv.o): cannot link object files with different floating-point ABI

If I switch to use rustc version 1.52.0-nightly (8f349be27 2021-03-08) , everything is ok... I have find the error is cause by dependence riscv.

AlexisTM commented 1 year ago

This was happening with v0.9, might be fixed in 0.10