Skip to content
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

bootloader not compiling due to missing compiler-builtins-mem with latest nightly #370

Closed
iTitus opened this issue May 5, 2023 · 2 comments

Comments

@iTitus
Copy link

iTitus commented May 5, 2023

After the latest nightly update the bootloader 0.11.3 dependency does not compile anymore.
Probably caused by rust-lang/rust#108865.

cargo run
   Compiling bootloader v0.11.3
error: failed to run custom build command for `bootloader v0.11.3`                                                                                                      
                                                                                                                                                                        
Caused by:                                                                                                                                                              
  process didn't exit successfully: `...\target\debug\build\bootloader-3f3360a7d583746b\build-script-build` (exit code: 101)
  --- stderr                                                                                                                                                                                                                                                                          
      Updating crates.io index                                                                                                                                          
    Installing bootloader-x86_64-bios-boot-sector v0.11.3                                                                                                                                                                                                                           
      Updating crates.io index
    Installing bootloader-x86_64-bios-stage-2 v0.11.3
      Updating crates.io index
    Installing bootloader-x86_64-bios-stage-4 v0.11.3
      Updating crates.io index
    Installing bootloader-x86_64-bios-stage-3 v0.11.3
      Updating crates.io index
  warning: package `spin v0.9.5` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
      Updating crates.io index
  error: failed to compile `bootloader-x86_64-bios-boot-sector v0.11.3`, intermediate artifacts can be found at `C:\Users\iTitus\AppData\Local\Temp\cargo-install096Gcd`

  Caused by:
    Package `test v0.0.0 (C:\Users\iTitus\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\test)` does not have the feature `compiler-builtins-mem`
  thread 'main' panicked at 'failed to build bios boot sector', C:\Users\iTitus\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bootloader-0.11.3\build.rs:151:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
  error: failed to compile `bootloader-x86_64-bios-stage-2 v0.11.3`, intermediate artifacts can be found at `C:\Users\iTitus\AppData\Local\Temp\cargo-installFtwmto`
  error: failed to compile `bootloader-x86_64-bios-stage-4 v0.11.3`, intermediate artifacts can be found at `C:\Users\iTitus\AppData\Local\Temp\cargo-installSRvl3I`

  Caused by:
    Package `test v0.0.0 (C:\Users\iTitus\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\test)` does not have the feature `compiler-builtins-mem`
  error: failed to compile `bootloader-x86_64-bios-stage-3 v0.11.3`, intermediate artifacts can be found at `C:\Users\iTitus\AppData\Local\Temp\cargo-installmnRzgw`

  Caused by:
    Package `test v0.0.0 (C:\Users\iTitus\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\test)` does not have the feature `compiler-builtins-mem`
@bjorn3
Copy link
Contributor

bjorn3 commented May 5, 2023

-Zbuild-std is broken with latest nightly due to a change of the standard library: https://rust-lang.zulipchat.com/#narrow/stream/246057-t-cargo/topic/build-std.20failing

@iTitus
Copy link
Author

iTitus commented May 20, 2023

was fixed in rust

@iTitus iTitus closed this as completed May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants