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 src/libstd: error[E0463]: can't find crate for term #39985

Closed
SimonSapin opened this issue Feb 20, 2017 · 4 comments
Closed

./x.py doc src/libstd: error[E0463]: can't find crate for term #39985

SimonSapin opened this issue Feb 20, 2017 · 4 comments

Comments

@SimonSapin
Copy link
Contributor

SimonSapin commented Feb 20, 2017

At commit 5b7c556, running ./x.py doc src/libstd

Documenting stage2 std (x86_64-unknown-linux-gnu)
   Compiling rustc_errors v0.0.0 (file:///home/simon/rust/src/librustc_errors)
error[E0463]: can't find crate for `term`
  --> src/librustc_errors/lib.rs:27:1
   |
27 | extern crate term;
   | ^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

error: Could not compile `rustc_errors`.
@alexcrichton
Copy link
Member

This... seems odd! Documenting std should definitely not be trying to document rustc_errors... Can you gist the output with -v as well?

@alexcrichton
Copy link
Member

@SimonSapin did you discover this when working on #39986? Maybe this isn't a bug on master? (I think there's at least a bug in that PR at this moment due to Travis failing)

@SimonSapin
Copy link
Contributor Author

Yes, I was working on #39986. Here is the end of the output of ./x.py doc --stage 1 src/libstd -v, after ./x.py clean.

       Fresh rustc_lsan v0.0.0 (file:///home/simon/rust/src/librustc_lsan)
       Fresh rustc_tsan v0.0.0 (file:///home/simon/rust/src/librustc_tsan)
       Fresh panic_unwind v0.0.0 (file:///home/simon/rust/src/libpanic_unwind)
 Documenting std v0.0.0 (file:///home/simon/rust/src/libstd)
     Running `/home/simon/rust/build/bootstrap/debug/rustdoc --crate-name std src/libstd/lib.rs --target x86_64-unknown-linux-gnu -o /home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/doc --cfg feature=\"rustc_lsan\" --cfg feature=\"panic_unwind\" --cfg feature=\"rustc_msan\" --cfg feature=\"msan\" --cfg feature=\"panic-unwind\" --cfg feature=\"rustc_tsan\" --cfg feature=\"lsan\" --cfg feature=\"asan\" --cfg feature=\"jemalloc\" --cfg feature=\"tsan\" --cfg feature=\"backtrace\" --cfg feature=\"alloc_jemalloc\" --cfg feature=\"rustc_asan\" -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern alloc=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/liballoc-5c38951d14e93a8d.rlib --extern alloc_jemalloc=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/liballoc_jemalloc-010cdee304512f01.rlib --extern rustc_msan=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/librustc_msan-2a631b187f4aeea5.rlib --extern alloc_system=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/liballoc_system-7abe535016c8281b.rlib --extern panic_abort=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libpanic_abort-acfd8ef75cd130ab.rlib --extern collections=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libcollections-79470a3d90452b2c.rlib --extern libc=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/liblibc-60135dc13441cc8c.rlib --extern panic_unwind=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libpanic_unwind-2502f3b577ab26db.rlib --extern rand=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/librand-d0d3c7ef05958b8f.rlib --extern rustc_lsan=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/librustc_lsan-f73d7b25d9505dfd.rlib --extern rustc_asan=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/librustc_asan-e0d457d95a63e95d.rlib --extern unwind=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libunwind-4f22620d2fe6cb1c.rlib --extern std_unicode=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libstd_unicode-5b05b3dbb9b52a62.rlib --extern compiler_builtins=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libcompiler_builtins-ea2af56c81ac3a21.rlib --extern rustc_tsan=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/librustc_tsan-2c4c1ed9c8a92d71.rlib --extern core=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libcore-09f7c838bf8ca11a.rlib`
   Compiling rustc_data_structures v0.0.0 (file:///home/simon/rust/src/librustc_data_structures)
   Compiling syntax_pos v0.0.0 (file:///home/simon/rust/src/libsyntax_pos)
     Running `/home/simon/rust/build/bootstrap/debug/rustc --crate-name rustc_data_structures src/librustc_data_structures/lib.rs --crate-type dylib -C prefer-dynamic -C opt-level=2 -C metadata=f19b0b6f70db1e21 -C extra-filename=-f19b0b6f70db1e21 --out-dir /home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --emit=dep-info,link --target x86_64-unknown-linux-gnu -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.so --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.rlib --extern log=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/liblog-6431c8ac5cc6619c.so --extern log=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/liblog-6431c8ac5cc6619c.rlib`
     Running `/home/simon/rust/build/bootstrap/debug/rustc --crate-name syntax_pos src/libsyntax_pos/lib.rs --crate-type dylib -C prefer-dynamic -C opt-level=2 -C metadata=d9b229963d1d5fc9 -C extra-filename=-d9b229963d1d5fc9 --out-dir /home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --emit=dep-info,link --target x86_64-unknown-linux-gnu -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.so --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.rlib`
   Compiling rustc_errors v0.0.0 (file:///home/simon/rust/src/librustc_errors)
     Running `/home/simon/rust/build/bootstrap/debug/rustc --crate-name rustc_errors src/librustc_errors/lib.rs --crate-type dylib -C prefer-dynamic -C opt-level=2 -C metadata=9a5e51e74d72389d -C extra-filename=-9a5e51e74d72389d --out-dir /home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --emit=dep-info,link --target x86_64-unknown-linux-gnu -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern syntax_pos=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-d9b229963d1d5fc9.so --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.so --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.rlib`
error[E0463]: can't find crate for `term`
  --> src/librustc_errors/lib.rs:27:1
   |
27 | extern crate term;
   | ^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

Build failed, waiting for other jobs to finish...
error: Could not compile `rustc_errors`.

Caused by:
  process didn't exit successfully: `/home/simon/rust/build/bootstrap/debug/rustc --crate-name rustc_errors src/librustc_errors/lib.rs --crate-type dylib -C prefer-dynamic -C opt-level=2 -C metadata=9a5e51e74d72389d -C extra-filename=-9a5e51e74d72389d --out-dir /home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps --emit=dep-info,link --target x86_64-unknown-linux-gnu -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/release/deps --extern syntax_pos=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libsyntax_pos-d9b229963d1d5fc9.so --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.so --extern serialize=/home/simon/rust/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-unknown-linux-gnu/release/deps/libserialize-f986f2b5417063cb.rlib` (exit code: 101)


command did not execute successfully: "/home/simon/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "doc" "-j" "8" "--target" "x86_64-unknown-linux-gnu" "-v" "--release" "--manifest-path" "/home/simon/rust/src/rustc/std_shim/Cargo.toml" "--features" "panic-unwind asan lsan msan tsan jemalloc backtrace" "--no-deps" "-p" "alloc" "-p" "collections" "-p" "core" "-p" "std" "-p" "std_unicode" "-p" "proc_macro"
expected success, got: exit code: 101

@SimonSapin
Copy link
Contributor Author

I can’t reproduce on master, so it does look specific to #39986. (Probably related to #39986 (comment).)

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

2 participants