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 doc --stage 0 fails: "crate core compiled by an incompatible version of rustc" #43514

Closed
QuietMisdreavus opened this issue Jul 27, 2017 · 4 comments
Assignees
Labels
C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@QuietMisdreavus
Copy link
Member

QuietMisdreavus commented Jul 27, 2017

From a clone i'd just run ./x.py clean on, simply running ./x.py doc --stage 0 builds all of rustc and all the tools, then when it tries to document std_unicode (the first thing after core) it fails with the following:

Documenting stage0 std (x86_64-unknown-linux-gnu)
 Documenting core v0.0.0 (file:///home/misdreavus/git/rust/src/libcore)
 Documenting std_unicode v0.0.0 (file:///home/misdreavus/git/rust/src/libstd_unicode)
error[E0514]: found crate `core` compiled by an incompatible version of rustc
  |
  = help: please recompile that crate using this compiler (rustc 1.21.0-dev (5cc1baa29 2017-07-27))
  = note: crate `core` path #1: /home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcore-c40a1e0952d5bad5.rlib compiled by "rustc 1.20.0-beta.1 (e93aa3aa8 2017-07-18)"

error: aborting due to previous error

error: Could not document `std_unicode`.

Caused by:
  process didn't exit successfully: `/home/misdreavus/git/rust/build/bootstrap/debug/rustdoc --crate-name std_unicode src/libstd_unicode/lib.rs --target x86_64-unknown-linux-gnu -o /home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/doc -L dependency=/home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0-std/release/deps --extern core=/home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcore-c40a1e0952d5bad5.rlib` (exit code: 101)

command did not execute successfully: "/home/misdreavus/git/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "doc" "-j" "1" "--target" "x86_64-unknown-linux-gnu" "--release" "--features" "panic-unwind jemalloc backtrace" "--manifest-path" "/home/misdreavus/git/rust/src/libstd/Cargo.toml" "--no-deps" "-p" "alloc" "-p" "collections" "-p" "core" "-p" "std" "-p" "std_unicode"
expected success, got: exit code: 101

My HEAD is commit 5cc1baa.

cc @Mark-Simulacrum

@est31
Copy link
Member

est31 commented Jul 27, 2017

Maybe #39751 ?

@kennytm
Copy link
Member

kennytm commented Jul 27, 2017

Well #43482 does say "./x.py doc --stage 0 will now fail".

@Mark-Simulacrum
Copy link
Member

Yeah, I asked @QuietMisdreavus to file this so I could keep track of it. We should at least provide a better error message here, though I'm hopeful it can be made to work.

@Mark-Simulacrum Mark-Simulacrum added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. labels Jul 28, 2017
@Mark-Simulacrum Mark-Simulacrum self-assigned this Jul 28, 2017
@Mark-Simulacrum
Copy link
Member

Closing. I don't think this will be possible to make work seamlessly currently, and isn't something worth tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. 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