-
Notifications
You must be signed in to change notification settings - Fork 6
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
Baremetal rpi target fails to build on new rust versions #143
Comments
It seems to break in version 1.77 (in 1.77.0 and 1.77.1 it does not build some dep and in 1.77.2 outputs the error above) meaning version 1.76.0 (nightly 2024.02.08) should work |
Trying to create a minimal reproduce-able example, this is still working though: # rust-toolchain.toml
[toolchain]
channel = "nightly-2024-05-02" # first nightly version to now work
profile = "minimal" # .cargo/config.toml
[target.armv7a-none-eabihf]
rustflags = [
"-Ctarget-feature=+virtualization"
] // main.rs
#![no_std]
#![no_main]
use core::{arch::global_asm, panic::PanicInfo};
global_asm!("
msr ELR_hyp, r0 // save the address in ELR_hyp
eret // apply the mode change (Exception return)
");
#[panic_handler]
fn panic_handler(_:&PanicInfo)->!{
loop {
}
} build command: |
This command builds the asm code without rustc |
It looks like with or without hard floats (eabi vs eabihf) both magenboy and the code above compiles on debug mode and fails to compile on release mode (after version 1.76 of course). |
Example from rust 1.77.2:
The text was updated successfully, but these errors were encountered: