Skip to content

Rustbuild fails with ./x.py test src/libtest --stage 1 #37745

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

I suspect that the dependencies for libtest need to be updated, but I'm not sure; it's also possible this isn't intended to work, but a more user-friendly error would be nice.

Full output:

    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
Synchronizing submodule url for 'src/compiler-rt'
Synchronizing submodule url for 'src/jemalloc'
Synchronizing submodule url for 'src/liblibc'
Synchronizing submodule url for 'src/llvm'
Synchronizing submodule url for 'src/rt/hoedown'
Synchronizing submodule url for 'src/rust-installer'
HEAD is now at 3bc0272 Merge pull request #26 from TimNN/arm-cc
HEAD is now at e058ca6 Change how the default zone is found
HEAD is now at 7d9b71f Merge pull request #435 from raphlinus/aarch64
HEAD is now at c1d9622 Backport r285278 [ARM] Predicate UMAAL selection on hasDSP.
HEAD is now at a3736a0 Merge pull request #6 from intelfx/patch-1
HEAD is now at 4f99485 Merge pull request #54 from brson/docdir
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Building stage1 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.0 secs
Testing libtest stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling test v0.0.0 (file:///home/mark/Edit/rust/src/libtest)
error[E0463]: can't find crate for `getopts`
  --> src/libtest/lib.rs:44:1
   |
44 | extern crate getopts;
   | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

error: Could not compile `test`.

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


command did not execute successfully: "/home/mark/Edit/rust/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "-j" "8" "--target" "x86_64-unknown-linux-gnu" "--release" "--manifest-path" "/home/mark/Edit/rust/src/rustc/test_shim/Cargo.toml" "--features" "" "-p" "test"
expected success, got: exit code: 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions