-
Notifications
You must be signed in to change notification settings - Fork 13.3k
AVR: Compilation in --release mode fails with LLVM ERROR: Not supported instr #82104
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
Comments
I’ve got the same problem. I am building my software based upon the AVR template "avr-atmega328p.json” which I called "avr-unknown-gnu-atmega2560.json”. This file looks mostly identical to the existing atmega’s on the web :
I tried to build my project (which is just empty) on the nightly and stable versions, but I get the same type of error:
|
This is caused by rust-lang/compiler-builtins#400. A fix is pending in LLVM, but not yet merged... In the meantime, you can use the rustup toolchain install nightly-2021-01-07
cargo +nightly-2021-01-07 build |
@Rahix sorry to reopen this older issue but I'm seeing the same issues. I've tried like 3 different versions of the rust compiler, plus the current (1.55) version, and they all have the exact same issue? |
|
Is there any plan to resolve this issue? |
Thanks for the update, @agausmann |
Thanks for fixing this bug! :) |
When compiling the following minimal AVR template in --release mode, the compiler aborts with an LLVM error
https://github.com/avr-rust/template-bin.git
(This is an empty template with an empty main that does nothing.)
In debug mode the build works correctly:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: