Skip to content

"sanity" checks are not very #136759

Closed
@workingjubilee

Description

@workingjubilee
# config.toml
profile = "compiler"
change-id = 133068

[build]
target = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
 RUST_BACKTRACE=1 ./x.py test
Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.03s

thread 'main' panicked at src/bootstrap/src/core/sanity.rs:79:13:


couldn't find required command: "x86_64-linux-gnu-ar"


stack backtrace:
   0: rust_begin_unwind
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/panicking.rs:692:5
   1: core::panicking::panic_fmt
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/panicking.rs:75:14
   2: bootstrap::core::sanity::Finder::must_have::{{closure}}
             at ./src/bootstrap/src/core/sanity.rs:79:13
   3: core::option::Option<T>::unwrap_or_else
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/option.rs:1023:21
   4: bootstrap::core::sanity::Finder::must_have
             at ./src/bootstrap/src/core/sanity.rs:78:9
   5: bootstrap::core::sanity::check
             at ./src/bootstrap/src/core/sanity.rs:288:17
   6: bootstrap::Build::new
             at ./src/bootstrap/src/lib.rs:422:13
   7: bootstrap::main
             at ./src/bootstrap/src/bin/main.rs:97:5
   8: core::ops::function::FnOnce::call_once
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Build completed unsuccessfully in 0:00:00
$ RUST_BACKTRACE=1 ./x.py clean
Building bootstrap
    Finished `dev` profile [unoptimized] target(s) in 0.03s

thread 'main' panicked at src/bootstrap/src/lib.rs:1178:25:
no entry found for key
stack backtrace:
   0: rust_begin_unwind
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/panicking.rs:692:5
   1: core::panicking::panic_fmt
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/panicking.rs:75:14
   2: core::panicking::panic_display
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/panicking.rs:261:5
   3: core::option::expect_failed
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/option.rs:2024:5
   4: core::option::Option<T>::expect
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/option.rs:933:21
   5: <std::collections::hash::map::HashMap<K,V,S> as core::ops::index::Index<&Q>>::index
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/std/src/collections/hash/map.rs:1428:23
   6: bootstrap::Build::cc
             at ./src/bootstrap/src/lib.rs:1178:25
   7: bootstrap::core::sanity::check
             at ./src/bootstrap/src/core/sanity.rs:286:34
   8: bootstrap::Build::new
             at ./src/bootstrap/src/lib.rs:422:13
   9: bootstrap::main
             at ./src/bootstrap/src/bin/main.rs:97:5
  10: core::ops::function::FnOnce::call_once
             at /rustc/e30eefff41038ceea427009023627d6d66b36715/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Build completed unsuccessfully in 0:00:00

Note that I am on an x86_64-unknown-linux-gnu host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.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