Skip to content

Build script fails to build on latest nightly with BIOS feature enabled #416

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

Closed
Spartan2909 opened this issue Feb 6, 2024 · 2 comments
Closed

Comments

@Spartan2909
Copy link

This is the error:

   Compiling rustc-std-workspace-core v1.99.0 (C:\Users\caleb\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)     
   Compiling rustc-std-workspace-core v1.99.0 (C:\Users\caleb\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)     
   Compiling rustc-std-workspace-core v1.99.0 (C:\Users\caleb\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\rustc-std-workspace-core)     
error: data-layout for target `i686-stage-3-15880981762407934716`, `e-m:e-i32:32-f80:128-n8:16:32-S128-p:32:32`, differs from LLVM target's `i386-unknown-none` default layout, `e-m:e-p:32:32-p270:32:32-p271:32:32-p272:64:64-f64:32:64-f80:32-n8:16:32-S128`

error: could not compile `rustc-std-workspace-core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `core` (lib) due to 1 previous error
error: could not compile `compiler_builtins` (lib) due to 1 previous error
error: failed to compile `bootloader-x86_64-bios-stage-3 v0.11.5`, intermediate artifacts can be found at `C:\Users\<me>\AppData\Local\Temp\cargo-installZp31yL`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
thread 'main' panicked at C:\Users\<me>\.cargo\registry\src\index.crates.io-6f17d22bba15001f\bootloader-0.11.5\build.rs:239:9:
failed to build bios stage-3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I haven't narrowed down exactly when it stopped working, but it still works on nightly-2024-01-01.

@Spartan2909 Spartan2909 changed the title Build script fails to build on latest nighly with BIOS feature enabled Build script fails to build on latest nightly with BIOS feature enabled Feb 6, 2024
@phil-opp
Copy link
Member

phil-opp commented Feb 6, 2024

Should be fixed already in v0.11.6, see #413. Try running cargo update.

@Spartan2909
Copy link
Author

It is fixed, thanks

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