relibc compile error: found possibly newer version of crate `compiler_builtins` which `compiler_builtins` depends on
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
Error when running make prefix
during relibc compilation:
error[E0460]: found possibly newer version of crate `compiler_builtins` which `compiler_builtins` depends on
Environment info
- Operating system: Ubuntu 18.10
-
uname -a
:Linux <machine-node-name> 4.18.0-16-generic #17-Ubuntu SMP Fri Feb 8 00:06:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-
rustc -V
:rustc 1.32.0-nightly (15d770400 2018-11-06)
-
git rev-parse HEAD
:986aad930f0c7c057481d0ea9128eb5a64df727e
Steps to reproduce
-
rm -rf prefix/x86_64-unknown-redox/relibc-install
orrm -rf prefix
make prefix
Behavior
-
Expected behavior:
make prefix
builds relibc (without compile errors)
- Actual behavior: Compilation aborts on a compile error
mkdir -p build
nasm -f bin -o build/bootloader -D ARCH_x86_64 -ibootloader/x86_64/ bootloader/x86_64/disk.asm
rm -rf "/home/niels/Documents/my_sources/rust/redox/redox/prefix/x86_64-unknown-redox/relibc-install"
mkdir -p "/home/niels/Documents/my_sources/rust/redox/redox/prefix/x86_64-unknown-redox/relibc-install"
cd "/home/niels/Documents/my_sources/rust/redox/redox/relibc" && \
export PATH="/home/niels/Documents/my_sources/rust/redox/redox/prefix/x86_64-unknown-redox/gcc-freestanding-install/bin:$PATH" && \
make CARGO=xargo all && \
make CARGO=xargo DESTDIR="/home/niels/Documents/my_sources/rust/redox/redox/prefix/x86_64-unknown-redox/relibc-install/usr" install
make[1]: Entering directory '/home/niels/Documents/my_sources/rust/redox/redox/relibc'
xargo rustc --release "--target=x86_64-unknown-redox" --
Compiling relibc v0.1.0 (/home/niels/Documents/my_sources/rust/redox/redox/relibc)
error[E0460]: found possibly newer version of crate `compiler_builtins` which `compiler_builtins` depends on
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `compiler_builtins`: /home/niels/Documents/my_sources/rust/redox/redox/relibc/target/x86_64-unknown-redox/release/deps/libcompiler_builtins-0927a6f3dd40654d.rlib
crate `compiler_builtins`: /home/niels/Documents/my_sources/rust/redox/redox/build/xargo/lib/rustlib/x86_64-unknown-redox/lib/libcompiler_builtins-f9ef2c567ebd3ba5.rlib
crate `compiler_builtins`: /home/niels/Documents/my_sources/rust/redox/redox/relibc/target/x86_64-unknown-redox/release/deps/libcompiler_builtins-0927a6f3dd40654d.rlib
error: aborting due to previous error
For more information about this error, try `rustc --explain E0460`.
error: Could not compile `relibc`.
To learn more, run the command again with --verbose.
make[1]: *** [Makefile:105: "target/x86_64-unknown-redox"/release/librelibc.a] Error 101
make[1]: Leaving directory '/home/niels/Documents/my_sources/rust/redox/redox/relibc'
make: *** [mk/prefix.mk:88: /home/niels/Documents/my_sources/rust/redox/redox/prefix/x86_64-unknown-redox/relibc-install] Error 2
Running cargo clean
in the relibc
submodule and then make prefix
again seems to solve this.