-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
riscv-rt
: LLVM raises spurious errors in release mode for instructions of ISA extensions (e.g., M or E)
#175
Comments
I noticed this error. It looks like a weird issue between the Rust compiler and LLVM. Perhaps it does not propagate the extension flags correctly? In any case, it produces a working binary, so it is not critical (it is annoying, though) |
I forgot to mention that this didn't happen with an earlier version of |
The previous version of |
This is a known issue. |
#176 provides a provisional patch to remove these spurious errors. It will do the trick while LLVM solves this issue |
riscv-rt
: building for riscv32imac-unknown-none-elf gives an error with the mul instructionriscv-rt
: LLVM raises spurious errors in release mode for instructions of ISA extensions (e.g., M or E)
I found this problem first in daniestevez/galileo-osnma#23, but the following self-contained example replicates the problem: https://github.com/daniestevez/riscv/tree/debug-mul-build/riscv-rt/test-build
When this example is built with
cargo build --release
, I get the following:Despite the error, an executable is produced.
If I build without
--release
instead, I get:The text was updated successfully, but these errors were encountered: