-
Notifications
You must be signed in to change notification settings - Fork 215
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
Unable to compile bin bootloader
due to error from rust-lld
#499
Comments
For a temporary workaround try pinning your nightly toolchain to an older version. 2025-03-17 and older should work. |
searched nightlies: from nightly-2025-03-17 to nightly-2025-03-20 bisected with cargo-bisect-rustc v0.6.8Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc --start=2025-03-17 --end=2025-03-20 --component rust-src --component llvm-tools --target x86_64-unknown-none --script build.sh -vvv build.sh: #!/usr/bin/env sh
nix-shell -p autoPatchelfHook --run "autoPatchelf /home/freax13/.rustup/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-lld --ignore-missing='libz.so.1 libLLVM.so.20.1-rust-1.87.0-nightly libgcc_s.so.1'" > /dev/null
nix-shell -p autoPatchelfHook --run "autoPatchelf /home/freax13/.rustup/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld/ld.lld --ignore-missing='libz.so.1 libLLVM.so.20.1-rust-1.87.0-nightly libgcc_s.so.1'" > /dev/null
nix-shell -p autoPatchelfHook --run "autoPatchelf /home/freax13/.rustup/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-size --ignore-missing='libz.so.1 libLLVM.so.20.1-rust-1.87.0-nightly libgcc_s.so.1'" > /dev/null
nix-shell -p autoPatchelfHook --run "autoPatchelf /home/freax13/.rustup/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-objcopy --ignore-missing='libz.so.1 libLLVM.so.20.1-rust-1.87.0-nightly libgcc_s.so.1'" > /dev/null
nix-shell -p autoPatchelfHook --run "autoPatchelf /home/freax13/.rustup/toolchains/$RUSTUP_TOOLCHAIN/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-ar --ignore-missing='libz.so.1 libLLVM.so.20.1-rust-1.87.0-nightly libgcc_s.so.1'" > /dev/null
cargo test --target x86_64-unknown-none |
|
Doesn't that commit just fix their tests? |
Yes, I think you're right... Not sure where this call is coming from then.. |
This worked! If anyone else has the issue, I fixed it by running:
Not sure why llvm-tools-preview had to be re-added without a prefix like x86_64-unknown-linux-gnu was, but it works. |
1.87.0-nightly (2025-03-21) got the same problem, but not working. |
Try using an older compiler. We should have a release with the fix soon. |
I originally came to this error after trying to build blog_os as I was following it. It's worked flawlessly so far, but I got into dependency hell on my last linux install and ended up nuking it. After installing nobara 41 over 40, I've been getting an error from rust-lld when building.
I have truncated most of the cargo build and install output. Here are my steps to reproduce:
Stderr is actually empty, I did not remove it.
Here are the versions of everything:
What I have tried:
cargo clean
The text was updated successfully, but these errors were encountered: