So far, this appears to affect my system on all versions of Rust I have tried (1.89 from quarterly, 1.91 and 1.92 from HEAD and experimental 1.94). I am running Poudriere in a jail, and for purposes of testing scaled back MAKE_JOBS to 1. The Rust build appears to be failing on the sanity check with the following message (Poudriere reports that the failure occurs during the LIB_DEPENDS phase of the build):
The sanity check message
Code:
running sanity check
running: "/wrkdirs/usr/ports/lang/rust/work/bootstrap/bin/rustc" "--print" "target-list" (failure_mode=Exit) (created at src/bootstrap/src/core/sanity.rs:202:57, executed at src/bootstrap/src/core/sanity.rs:205:10)
thread 'main' (183410) panicked at src/bootstrap/src/core/sanity.rs:76:13:
couldn't find required command: ""
stack backtrace:
0: __rustc::rust_begin_unwind
1: core::panicking::panic_fmt
2: bootstrap::core::sanity::Finder::must_have::{{closure}}
at ./src/bootstrap/src/core/sanity.rs:76:13
3: core::option::Option<T>::unwrap_or_else
at /wrkdirs/usr/ports/lang/rust-bootstrap/work-amd64/rustc-1.91.0-src/library/core/src/option.rs:1061:21
4: bootstrap::core::sanity::Finder::must_have
at ./src/bootstrap/src/core/sanity.rs:75:31
5: bootstrap::core::sanity::check
at ./src/bootstrap/src/core/sanity.rs:414:20
6: bootstrap::Build::new
at ./src/bootstrap/src/lib.rs:617:13
7: bootstrap::main
at ./src/bootstrap/src/bin/main.rs:129:21
8: core::ops::function::FnOnce::call_once
at /wrkdirs/usr/ports/lang/rust-bootstrap/work-amd64/rustc-1.91.0-src/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Traceback (most recent call last):
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.92.0-src/x.py", line 53, in <module>
bootstrap.main()
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.92.0-src/src/bootstrap/bootstrap.py", line 1410, in main
bootstrap(args)
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.92.0-src/src/bootstrap/bootstrap.py", line 1370, in bootstrap
run(args, env=env, verbose=build.verbose, is_bootstrap=True)
File "/wrkdirs/usr/ports/lang/rust/work/rustc-1.92.0-src/src/bootstrap/bootstrap.py", line 237, in run
raise RuntimeError(err)
RuntimeError: failed to run: /wrkdirs/usr/ports/lang/rust/work/_build/bootstrap/debug/bootstrap dist --jobs=1
*** Error code 1
Stop.
make: stopped making "build" in /usr/ports/lang/rust
=>> Cleaning up wrkdir
===> Cleaning for rust-1.92.0
The sanity check message
couldn't find required command: "" is consistent across all attempted versions. My 13.5 system (also running Poudriere in a jail) has just built Rust 1.92 successfully, so I am wondering if there is a jail setting I am missing on 15.0 perhaps? Has anyone else seen this issue and resolved it? Happy to post other info/logs for context if needed.