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 doesn't clean out enough when recompiling #38746

Closed
Mark-Simulacrum opened this issue Dec 31, 2016 · 1 comment
Closed

rustbuild doesn't clean out enough when recompiling #38746

Mark-Simulacrum opened this issue Dec 31, 2016 · 1 comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@Mark-Simulacrum
Copy link
Member

These two errors, which I believe are related, have started happening with rustbuild recently. I think the second is sometimes caused by the first after trying to avoid cleaning out everything; but since this is all nondeterministic from what I can tell I've included it in case it helps diagnose the problem.

error[E0523]: found two different crates with name `rustc_trans` that are not distinguished by differing `-C metadata`. This will result in symbol conflicts between the two.
error[E0460]: found possibly newer version of crate `rustc_trans` which `rustdoc` depends on
  --> src/rustc/rustdoc.rs:13:1
   |
13 | extern crate rustdoc;
   | ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: crate `rustc_trans` path #1: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_trans-04b9ea62d71b4818.so
   = note: crate `rustdoc` path #1: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustdoc-6a966222823ef7f9.so

cc @alexcrichton

@Mark-Simulacrum
Copy link
Member Author

A few more lines of potentially helpful information:

INFO:rustc_metadata::creader: resolving crate `extern crate rustc_trans as rustc_trans`
INFO:rustc_metadata::creader: falling back to a load
INFO:rustc_metadata::locator: lib candidate: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_trans-04b9ea62d71b4818.so
INFO:rustc_metadata::locator: lib candidate: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_trans-04b9ea62d71b4818.so
INFO:rustc_metadata::locator: dylib reading metadata from: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_trans-04b9ea62d71b4818.so
INFO:rustc_metadata::locator: reading "librustc_trans-04b9ea62d71b4818.so" => Duration { secs: 0, nanos: 4787878 }
INFO:rustc_metadata::locator: Rejecting via hash: expected 42ede6cbc4bc35c2 got 463ac8f69f29c717
INFO:rustc_metadata::locator: metadata mismatch
INFO:rustc_metadata::locator: dylib reading metadata from: /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_trans-04b9ea62d71b4818.so
INFO:rustc_metadata::locator: reading "librustc_trans-04b9ea62d71b4818.so" => Duration { secs: 0, nanos: 4798029 }
INFO:rustc_metadata::creader: register crate `extern crate rustc_trans as rustc_trans`
error[E0523]: found two different crates with name `rustc_trans` that are not distinguished by differing `-C metadata`. This will result in symbol conflicts between the two.
  --> src/rustc/rustdoc.rs:13:1
   |
13 | extern crate rustdoc;
   | ^^^^^^^^^^^^^^^^^^^^^

error: Could not compile `rustc-main`.

Caused by:
  process didn't exit successfully: `/home/mark/Edit/rust-build/build/bootstrap/debug/rustc --crate-name rustdoc src/rustc/rustdoc.rs --crate-type bin -C opt-level=2 --cfg feature="jemalloc" --cfg feature="rustc_back" -C metadata=7e166da6bf0b63c0 -C extra-filename=-7e166da6bf0b63c0 --out-dir /home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps --emit=dep-info,link --target x86_64-unknown-linux-gnu -L dependency=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps --extern rustc_driver=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_driver-7f15bfb21db92eb9.so --extern rustdoc=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustdoc-6a966222823ef7f9.so --extern rustc_back=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/deps/librustc_back-26a0a47ac4c092b8.so -L native=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/flate-4885c71e4cad27aa/out -L native=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustc_llvm-4fef95dc29ee60a4/out -L native=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/llvm/lib -L native=/home/mark/Edit/rust-build/build/x86_64-unknown-linux-gnu/stage0-rustc/x86_64-unknown-linux-gnu/release/build/rustdoc-8c070a2dffcbc259/out` (exit code: 101)

@sanxiyn sanxiyn added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Jan 1, 2017
@bors bors closed this as completed in 3ab778b Jan 4, 2017
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

2 participants