Closed gentlyj closed 3 years ago
https://github.com/rust-osdev/bootimage/issues/73 i had the same issue and worked-around the same way as w-henderson by downgrading to nightly-2021-03-01
rustup override set nightly-2021-03-01
rustup component add rust-src
rustup component add llvm-tools-preview
cargo bootimage
Thanks a lot for reporting! This is a bug in the bootloader
crate which was presumably triggered by the recent update to LLVM 12 on Rust nightly. I'm already looking into it.
rustup component add llvm-tools-preview
thanks a lot! it works.
I just published bootloader version 0.9.15. You should be able to fix your errors by running cargo update -p bootloader
. Please let me know if there are still problems!
I just published bootloader version 0.9.15. You should be able to fix your errors by running
cargo update -p bootloader
. Please let me know if there are still problems!
- Platform: ubuntu-latest (20.04)
- rustc version:
rustc 1.52.0-nightly (51748a8fc 2021-03-05)
- LLVM version: 12.0.0
- Version of
bootloader
: 0.9.15
It failed on linking.
= note: rust-lld: error: bootloader.2nb1ae77-cgu.0:(.boot+0x87): relocation R_X86_64_16 out of range: 252624 is not in [-32768, 65535]; references _kernel_size
I am not sure why the ci of bootloader repo works fine...
@EvanMu96 Thanks for checking! It's probably because _kernel_size
is much smaller for the test kernel used on the CI, compared to a real kernel. Give me a moment to fix it.
@EvanMu96 I just pushed v0.9.16. Could you try whether this fixes it?
@EvanMu96 I just pushed v0.9.16. Could you try whether this fixes it?
Fixed. Many thanks!
I followed the post02 step by step, when I was running cmd : cargo bootimage I got error log:
Then I clone the code from branch, got the same error, help~~~