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

x.py causes "found possibly newer version of crate std which libc depends on" #52492

Closed
RalfJung opened this issue Jul 18, 2018 · 2 comments
Closed

Comments

@RalfJung
Copy link
Member

To reproduce, run

./x.py bench src/libcore --stage 0 --test-args slice
./x.py bench src/liballoc --stage 0 --test-args slice

The second command will fail, saying

error[E0460]: found possibly newer version of crate `std` which `rand` depends on
  --> liballoc/../liballoc/benches/lib.rs:16:1
   |
16 | extern crate rand;
   | ^^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: the following crate versions were found:
           crate `std`: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-acba8e5dff5ff58f.rlib
           crate `std`: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libstd-acba8e5dff5ff58f.rlib
           crate `std`: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-acba8e5dff5ff58f.so
           crate `std`: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libstd-acba8e5dff5ff58f.so
           crate `rand`: /home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/librand-467b6a656af26977.rlib

error: aborting due to previous error
@RalfJung
Copy link
Member Author

Cannot reproduce after clearing build/*/stage*. Sorry for the noise!

@RalfJung
Copy link
Member Author

Also see #50481

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

1 participant