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
We cannot use a stable version as of now because we're using some -Z flags; this would be printed:
RUST_TARGET_PATH=/home/user/oreboot/src/custom_targets cargo build --target "x86_64-unknown-none-oreboot" -Z build-std=core,alloc --verbose --release
error: the `-Z` flag is only accepted on the nightly channel of Cargo, but this is the `stable` channel
Compiling oreboot-nezha-bt0 v0.1.0 (/home/ben/ofw/oreboot/src/mainboard/sunxi/nezha/bt0)
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/mainboard/sunxi/nezha/bt0/src/main.rs:2:1
|
2 | #![feature(naked_functions, asm_const)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/mainboard/sunxi/nezha/bt0/src/main.rs:3:1
|
3 | #![feature(default_alloc_error_handler)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Same as they are doing in Rust for Linux: Rust-for-Linux/linux#2
Remarks
We cannot use a stable version as of now because we're using some
-Z
flags; this would be printed:Howto
Look at the stable release of the Rust unstable book to find the references and compare with the nightly release of the book.
Here's a list of unstable things we're using (TODO: complete the list!)
Compiler Features
Language Features
naked_functions
#629The text was updated successfully, but these errors were encountered: