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

rustbuild: found crate * compiled by an incompatible version of rustc #35687

Closed
TimNN opened this issue Aug 15, 2016 · 8 comments
Closed

rustbuild: found crate * compiled by an incompatible version of rustc #35687

TimNN opened this issue Aug 15, 2016 · 8 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@TimNN
Copy link
Contributor

TimNN commented Aug 15, 2016

I regularly invoke rustbuild using python ../../rust/src/bootstrap/bootstrap.py --step check --stage 2 and often get the following (or similar) error:

error[E0514]: found crate `matches` compiled by an incompatible version of rustc
  --> /home/logic/.cargo/registry/src/github.com-1ecc6299db9ec823/idna-0.1.0/src/lib.rs:35:14
   |
35 | #[macro_use] extern crate matches;
   |              ^^^^^^^^^^^^^^^^^^^^^
   |
   = help: please recompile that crate using this compiler (rustc 1.12.0-dev (c0c9967c8 2016-08-15))
   = note: crate `matches` path #1: /home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/stage2-tools/x86_64-unknown-linux-gnu/release/deps/libmatches-5d5580ffd528031c.rlib compiled by "rustc 1.12.0-dev (bcee2edc5 2016-08-14)"

error: aborting due to previous error

error: Could not compile `idna`.

To learn more, run the command again with --verbose.


command did not execute successfully: "/home/logic/build/rust-out/dev-build/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "-j" "8" "--target" "x86_64-unknown-linux-gnu" "--release" "--manifest-path" "/home/logic/build/rust/src/tools/linkchecker/Cargo.toml"
expected success, got: exit code: 101

This can easily be fixed by removing the offending deps directory but is nevertheless annoying, there's probably some cleanup not happening.

This sometimes manifest itself differently, I believe something like found multiple versions of crate log`` (I don't have the exact error at the moment, but I believe it's the same issue).

@sanxiyn sanxiyn added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Aug 16, 2016
@nagisa
Copy link
Member

nagisa commented Aug 16, 2016

Seems to happen every time I rebase.

@alexcrichton
Copy link
Member

cc @jonathandturner, I think you're running into this as well

@sophiajt
Copy link
Contributor

I'm hoping this was fixed by #35811

@sophiajt
Copy link
Contributor

@TimNN - I'm going optimistically close this. If you run into this with a recent nightly, please reopen.

@nagisa
Copy link
Member

nagisa commented Aug 25, 2016

This is not fixed. All things considered I now hit this bug much earlier in the build and it is not limited to just -tools anymore.

@eddyb
Copy link
Member

eddyb commented Aug 25, 2016

@nagisa I think what you're seeing is the unfixed beta - maybe a backport is warranted?

EDIT: nevermind, it's a rustbuild fix.

@sophiajt
Copy link
Contributor

agreed @nagisa - I can confirm I didn't manage to fix it the first time. I have a repro but haven't gotten back to it.

@sophiajt sophiajt reopened this Aug 25, 2016
@TimNN
Copy link
Contributor Author

TimNN commented Nov 2, 2016

I haven't seen this in a while, so closing for now.

@TimNN TimNN closed this as completed Nov 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

6 participants