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: error while trying to run tests incrementally #38544

Closed
achanda opened this issue Dec 22, 2016 · 3 comments
Closed

rustbuild: error while trying to run tests incrementally #38544

achanda opened this issue Dec 22, 2016 · 3 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@achanda
Copy link
Contributor

achanda commented Dec 22, 2016

I cloned rust, built it by running ./x.py build --incremental. Later I pulled new changes and ran that again. Now when I try to run ./x.py test --incremental, I see

   Compiling rustbook v0.0.0 (file:///Users/Abhishek/src/rust/src/tools/rustbook)
error[E0460]: found possibly newer version of crate `collections` which `rustdoc` depends on
  --> src/tools/rustbook/main.rs:16:1
   |
16 | extern crate rustdoc;
   | ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: crate `collections` path #1: /Users/Abhishek/src/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/libcollections-1880f463631511fa.rlib
   = note: crate `rustdoc` path #1: /Users/Abhishek/src/rust/build/x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustdoc-9da233d729b34bfc.dylib

error: aborting due to previous error

error: Could not compile `rustbook`.

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


command did not execute successfully: "/Users/Abhishek/.cargo/bin/cargo" "build" "-j" "8" "--target" "x86_64-apple-darwin" "--release" "--manifest-path" "/Users/Abhishek/src/rust/src/tools/rustbook/Cargo.toml"
expected success, got: exit code: 101
@aidanhs
Copy link
Member

aidanhs commented Dec 22, 2016

cc #37929

Note that (as far as I can tell) you don't have to pull changes for this to happen (which could do all sorts of changes), you just need to a) clean incremental build, b) make a tiny change to libcollections c) incremental build.

@steveklabnik steveklabnik added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Dec 22, 2016
@aidanhs
Copy link
Member

aidanhs commented Jan 6, 2017

Seems to be fixed by #38809

@alexcrichton
Copy link
Member

Yay!

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

4 participants