Rust v1.91.1 bootstrap build fails (tier-check) on custom target (poky) build
When building Rust 1.91.1 inside the Yocto build system, the bootstrap process fails during the execution of the tier-check tool. The failure consistently occurs in the step where cargo run executes the src/tools/tier-check binary.
I believe "Building stage1 run_make_support (stage0 -> stage1, x86_64-unknown-linux-gnu)" and "Building stage2 cargo (stage1 -> stage2, x86_64-unknown-linux-gnu)" are the new build steps starting from v1.91.
Perhaps this PR might be related: https://github.com/rust-lang/rust/pull/145663/commits
The issue was observed when testing with x86-64 target. However, it passed for arm64 target. How to fix this issue or am I overlooking something?
Command used
python3 src/bootstrap/bootstrap.py test --exclude src/bootstrap --exclude src/doc/rustc --exclude src/doc/rustdoc --exclude src/doc/unstable-book --exclude src/etc/test-float-parse --exclude src/librustdoc --exclude src/rustdoc-json-types --exclude src/tools/coverage-dump
--exclude src/tools/jsondoclint --exclude src/tools/lint-docs --exclude src/tools/replace-version-placeholder --exclude src/tools/rust-analyzer --exclude src/tools/rustdoc-themes --exclude src/tools/rust-installer
--exclude src/tools/test-float-parse --exclude src/tools/suggest-tests --exclude src/tools/tidy --exclude tests/assembly-llvm/asm/aarch64-outline-atomics.rs
--exclude tests/codegen-llvm/issues/issue-122805.rs --exclude tests/codegen-llvm/thread-local.rs --exclude tests/mir-opt/ --exclude tests/run-make --exclude tests/run-make-fulldeps --exclude tests/rustdoc --exclude tests/rustdoc-json
--exclude tests/rustdoc-js-std --exclude tests/ui/abi/stack-probes-lto.rs --exclude tests/ui/abi/stack-probes.rs --exclude tests/ui/codegen/mismatched-data-layouts.rs --exclude tests/codegen-llvm/rust-abi-arch-specific-adjustment.rs
--exclude tests/ui/feature-gates/version_check.rs --exclude tests/ui-fulldeps/
--exclude tests/ui/panics/panic-abort-backtrace-without-debuginfo.rs
--exclude tests/ui/process/nofile-limit.rs --exclude tidyselftest --no-doc --no-fail-fast --bless --target x86_64-oe-linux-gnu' returned non-zero exit status 1:
Result
1 command(s) did not execute successfully: 69225 69226
- Command /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/cargo run --target x86_64-unknown-linux-gnu -Zbinary-dep-depinfo -j 192
-Zroot-dir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src --frozen --release --manifest-path /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check/Cargo.toml
/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc
[workdir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src] failed with exit code 101
Created at: src/bootstrap/src/core/build_steps/tool.rs:191:21
Executed at: src/bootstrap/src/core/build_steps/test.rs:3436:55
Bootstrap configuration (bootstrap.toml)
change-id = 116881
[target.x86-64-oe-linux-gnu]
llvm-config = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot/usr/bin/llvm-config"
cxx = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/target-rust-cxx"
cc = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/target-rust-cc"
linker = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/target-rust-ccld"
[target.x86_64-unknown-linux-gnu]
llvm-config = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/llvm-config"
cxx = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-cxx"
cc = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-cc"
linker = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld"
[llvm]
static-libstdcpp = false
download-ci-llvm = false
[rust]
rpath = true
remap-debuginfo = true
download-rustc = false
llvm-tools = false
lld = false
use-lld = false
channel = "stable"
optimize = true
verbose-tests = true
[build]
submodules = false
docs = false
rustc = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc"
cargo = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/cargo"
extended = false
vendor = true
target = ["x86-64-oe-linux-gnu"]
host = ["x86-64-oe-linux-gnu"]
build = "x86_64-unknown-linux-gnu"
[install]
prefix = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/image/usr"
bindir = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/image/usr/bin"
libdir = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/image/usr/lib"
datadir = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/image/usr/share"
mandir = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/image/usr/share/man"
sysconfdir = "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/image/etc"
HEAD
Rust v1.91.1 ed61e7d7e242494fb7057f2657300d9e77bb4fcb
Building bootstrap
Compiling proc-macro2 v1.0.89
Compiling memchr v2.7.4
Compiling unicode-ident v1.0.13
Compiling typenum v1.17.0
.
.
.
Skipping Suite(test::tests/run-make) because it is excluded
Building stage1 run_make_support (stage0 -> stage1, x86_64-unknown-linux-gnu)
.
.
Building stage2 cargo (stage1 -> stage2, x86_64-unknown-linux-gnu)
Compiling rusqlite v0.37.0
Finished `release` profile [optimized] target(s) in 3m 48s
Testing stage2 with compiletest suite=run-make-cargo mode=run-make (x86_64-oe-linux-gnu)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 15.90µs
1 command(s) did not execute successfully:
- Command
/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/cargo run --target x86_64-unknown-linux-gnu -Zbinary-dep-depinfo -j 192 -Zroot-dir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src --frozen --release --manifest-path /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check/Cargo.toml /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc [workdir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src] failed with exit code 101
Created at: src/bootstrap/src/core/build_steps/tool.rs:191:21
Executed at: src/bootstrap/src/core/build_steps/test.rs:3436:55
Build completed unsuccessfully in 0:35:08
/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/cargo run --target x86_64-unknown-linux-gnu -Zbinary-dep-depinfo -j 192 -Zroot-dir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src --frozen --release --manifest-path /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check/Cargo.toml /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc [workdir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src] failed with exit code 101
Created at: src/bootstrap/src/core/build_steps/tool.rs:191:21
Executed at: src/bootstrap/src/core/build_steps/test.rs:3436:55
Are you sure nothing is missing between test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 15.90µs and 1 command(s) did not execute successfully:? There should be a platform support check message in between at the very least.
Yes, there's no info/message between the 2 lines.
I have attached the complete log file for reference. x86_64.log
Weird. The exit code indicates a panic, but no panic message is printed either.
Are there any changes that should be done by downstream projects using rust after the tier-check PR in v1.91?
Not that I am aware of.
Could you run it with -v to see if there's more information available?
Sure, I have triggered the test. It would another 1.5 hrs to finish. I will share the log here, once it's completed.
Verbose log. No information between the lines yet.
Testing stage2 with compiletest suite=run-make-cargo mode=run-make (x86_64-oe-linux-gnu)
running: env -u CARGO DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.91.1" LD_LIBRARY_PATH="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/deps" RUSTC="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc" RUSTC_BOOTSTRAP="1" RUSTC_FORCE_RUSTC_VERSION="compiletest" RUST_TEST_THREADS="192" RUST_TEST_TMPDIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/tmp" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage1-tools-bin/compiletest" "--stage" "2" "--stage-id" "stage2-x86_64-oe-linux-gnu" "--compile-lib-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-oe-linux-gnu/lib" "--rustc-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--minicore-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/tests/auxiliary/minicore.rs" "--stage0-rustc-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc" "--cargo-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage2-tools-bin/cargo" "--rustdoc-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "--src-root" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src" "--src-test-suite-root" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/tests/run-make-cargo" "--build-root" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build" "--build-test-suite-root" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/test/run-make-cargo" "--sysroot-base" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage2" "--suite" "run-make-cargo" "--mode" "run-make" "--target" "x86_64-oe-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/FileCheck" "--default-codegen-backend" "llvm" "--bless" "--optimize-tests" "--target-linker" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/target-rust-ccld" "--host-linker" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" "--host-rustcflags" "-Crpath" "--host-rustcflags" "-Cdebuginfo=0" "--target-rustcflags" "-Crpath" "--target-rustcflags" "-Cdebuginfo=0" "--python" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/python3-native/python3" "--gdb" "/usr/bin/gdb" "--skip" "src/bootstrap" "--skip" "src/doc/rustc" "--skip" "src/doc/rustdoc" "--skip" "src/doc/unstable-book" "--skip" "src/etc/test-float-parse" "--skip" "src/librustdoc" "--skip" "src/rustdoc-json-types" "--skip" "src/tools/coverage-dump" "--skip" "src/tools/jsondoclint" "--skip" "src/tools/lint-docs" "--skip" "src/tools/replace-version-placeholder" "--skip" "src/tools/rust-analyzer" "--skip" "src/tools/rustdoc-themes" "--skip" "src/tools/rust-installer" "--skip" "src/tools/test-float-parse" "--skip" "src/tools/suggest-tests" "--skip" "src/tools/tidy" "--skip" "tests/assembly-llvm/asm/aarch64-outline-atomics.rs" "--skip" "tests/codegen-llvm/thread-local.rs" "--skip" "tests/mir-opt/" "--skip" "tests/run-make" "--skip" "tests/run-make-fulldeps" "--skip" "tests/rustdoc" "--skip" "tests/rustdoc-json" "--skip" "tests/rustdoc-js-std" "--skip" "tests/ui/abi/stack-probes-lto.rs" "--skip" "tests/ui/abi/stack-probes.rs" "--skip" "tests/ui/codegen/mismatched-data-layouts.rs" "--skip" "tests/codegen-llvm/rust-abi-arch-specific-adjustment.rs" "--skip" "tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs" "--skip" "tests/ui/feature-gates/version_check.rs" "--skip" "tests/ui-fulldeps/" "--skip" "tests/ui/process/nofile-limit.rs" "--skip" "tidyselftest" "--verbose" "--llvm-version" "21.1.5" "--llvm-components" "aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage debuginfobtf debuginfocodeview debuginfodwarf debuginfodwarflowlevel debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarfcfichecker dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddirective frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser native nativecodegen objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag support symbolize tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray" "--system-llvm" "--llvm-bin-dir" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin" "--cc" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/target-rust-cc" "--cxx" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/target-rust-cxx" "--cflags" "-ffunction-sections -fdata-sections -fPIC -m64" "--cxxflags" "-ffunction-sections -fdata-sections -fPIC -m64" "--ar" "ar" "--remote-test-client" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage1-tools-bin/remote-test-client" "--adb-path" "adb" "--adb-test-dir" "/data/local/tmp/work" "--android-cross-path" "" "--channel" "stable" "--git-hash" "--nightly-branch" "master" "--git-merge-commit-email" "[email protected]" (failure_mode=Exit)
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 8 filtered out; finished in 39.38µs
1 command(s) did not execute successfully:
- Command `cd "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src" && env -u MAKEFLAGS -u MFLAGS AR_x86_64_unknown_linux_gnu="ar" CARGO_BUILD_BUILD_DIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools" CARGO_INCREMENTAL="0" CARGO_LOG="cargo::core::compiler::fingerprint=info" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_PROFILE_RELEASE_STRIP="false" CARGO_TARGET_DIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools" CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" CC_x86_64_unknown_linux_gnu="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-cc" CFG_COMPILER_BUILD_TRIPLE="x86_64-unknown-linux-gnu" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu" CFG_RELEASE="1.91.1" CFG_RELEASE_CHANNEL="stable" CFG_RELEASE_NUM="1.91.1" CFG_VERSION="1.91.1 (ed61e7d7e 2025-11-07) (built from a source tarball)" CFG_VER_DATE="2025-11-07" CFG_VER_DESCRIPTION="built from a source tarball" CFG_VER_HASH="ed61e7d7e242494fb7057f2657300d9e77bb4fcb" CFLAGS_x86_64_unknown_linux_gnu="" CXXFLAGS_x86_64_unknown_linux_gnu="" CXX_x86_64_unknown_linux_gnu="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-cxx" DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.91.1" FORCE_ON_BROKEN_PIPE_KILL="-Zon-broken-pipe=kill" LIBC_CHECK_CFG="1" LZMA_API_STATIC="1" RANLIB_x86_64_unknown_linux_gnu="ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/native" RUSTC="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustc" RUSTC_ALLOW_FEATURES="binary-dep-depinfo,proc_macro_span,proc_macro_span_shrink,proc_macro_diagnostic" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_CARGO_REGISTRY_SRC_TO_REMAP="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/vendor=/rust/deps" RUSTC_DEBUGINFO_MAP="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src=/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb" RUSTC_ERROR_METADATA_DST="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/tmp/extended-error-metadata" RUSTC_HOST_FLAGS="-Clinker=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/lib" RUSTC_LINK_STD_INTO_RUSTC_DRIVER="1" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Dwarnings" RUSTC_REAL="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc" RUSTC_SNAPSHOT="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/lib" RUSTC_STAGE="1" RUSTC_SYSROOT="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1" RUSTC_WRAPPER="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustc" RUSTDOC="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-C strip=debuginfo --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.91.1\t(ed61e7d7e\t2025-11-07)\t(built\tfrom\ta\tsource\ttarball) -Clinker=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-C strip=debuginfo --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,$ORIGIN/../lib -Alinker-messages -Zunstable-options" RUST_TEST_THREADS="192" SYSROOT="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage0-sysroot" UPDATE_EXPECT="1" __CARGO_DEFAULT_LIB_METADATA="bootstrap1.91.1" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/cargo" "run" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "192" "-Zroot-dir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src" "-v" "--frozen" "--release" "--manifest-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check/Cargo.toml" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc" "--verbose" (failure_mode=DelayFail)` failed with exit code 101
Created at: src/bootstrap/src/core/build_steps/tool.rs:174:21
Executed at: src/bootstrap/src/core/build_steps/test.rs:3436:55
That looks like a different error than the tier-check one? Not really sure what is going on. You can check out the lines printed in the log and play around with the bootstrap commands execution to see if you can get more context out of it..
Perhaps the reason for failure is the missing of tier-check bin when executing the platform support check.
There was no tier-check file at given path, build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/tier-check and the check thus fails.
The log says (line 44035):
Testing stage2 platform support check (x86_64-oe-linux-gnu)
running: cd "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src" && env -u MAKEFLAGS -u MFLAGS AR_x86_64_unknown_linux_gnu="ar" CARGO_BUILD_BUILD_DIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools" CARGO_INCREMENTAL="0" CARGO_LOG="cargo::core::compiler::fingerprint=info" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_PROFILE_RELEASE_STRIP="false" CARGO_TARGET_DIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools" CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" CC_x86_64_unknown_linux_gnu="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-cc" CFG_COMPILER_BUILD_TRIPLE="x86_64-unknown-linux-gnu" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu" CFG_RELEASE="1.91.1" CFG_RELEASE_CHANNEL="stable" CFG_RELEASE_NUM="1.91.1" CFG_VERSION="1.91.1 (ed61e7d7e 2025-11-07) (built from a source tarball)" CFG_VER_DATE="2025-11-07" CFG_VER_DESCRIPTION="built from a source tarball" CFG_VER_HASH="ed61e7d7e242494fb7057f2657300d9e77bb4fcb" CFLAGS_x86_64_unknown_linux_gnu="" CXXFLAGS_x86_64_unknown_linux_gnu="" CXX_x86_64_unknown_linux_gnu="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-cxx" DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.91.1" FORCE_ON_BROKEN_PIPE_KILL="-Zon-broken-pipe=kill" LIBC_CHECK_CFG="1" LZMA_API_STATIC="1" RANLIB_x86_64_unknown_linux_gnu="ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/native" RUSTC="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustc" RUSTC_ALLOW_FEATURES="binary-dep-depinfo,proc_macro_span,proc_macro_span_shrink,proc_macro_diagnostic" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_CARGO_REGISTRY_SRC_TO_REMAP="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/vendor=/rust/deps" RUSTC_DEBUGINFO_MAP="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src=/rustc/ed61e7d7e242494fb7057f2657300d9e77bb4fcb" RUSTC_ERROR_METADATA_DST="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/tmp/extended-error-metadata" RUSTC_HOST_FLAGS="-Clinker=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/lib" RUSTC_LINK_STD_INTO_RUSTC_DRIVER="1" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Dwarnings" RUSTC_REAL="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc" RUSTC_SNAPSHOT="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/lib" RUSTC_STAGE="1" RUSTC_SYSROOT="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="1" RUSTC_WRAPPER="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustc" RUSTDOC="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-C strip=debuginfo --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.91.1\t(ed61e7d7e\t2025-11-07)\t(built\tfrom\ta\tsource\ttarball) -Clinker=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-C strip=debuginfo --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,$ORIGIN/../lib -Alinker-messages -Zunstable-options" RUST_TEST_THREADS="192" SYSROOT="/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/stage0-sysroot" UPDATE_EXPECT="1" __CARGO_DEFAULT_LIB_METADATA="bootstrap1.91.1" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/recipe-sysroot-native/usr/bin/cargo" "run" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "192" "-Zroot-dir=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src" "-v" "--frozen" "--release" "--manifest-path" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check/Cargo.toml" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md" "/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc" "--verbose" (failure_mode=DelayFail) (created at src/bootstrap/src/core/build_steps/tool.rs:174:21, executed at src/bootstrap/src/core/build_steps/test.rs:3436:55)
0.788087023s INFO prepare_target{force=false package_id=tier-check v0.1.0 (/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check) target="tier-check"}: cargo::core::compiler::fingerprint: fingerprint error for tier-check v0.1.0 (/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check)/Build/TargetInner { name: "tier-check", doc: true, ..: with_path("/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check/src/main.rs", Edition2024) }
0.788118309s INFO prepare_target{force=false package_id=tier-check v0.1.0 (/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check) target="tier-check"}: cargo::core::compiler::fingerprint: err: failed to read `/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/.fingerprint/tier-check-abd7dab00c546008/bin-tier-check`
Caused by:
No such file or directory (os error 2)
Compiling tier-check v0.1.0 (/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/tools/tier-check)
Running `/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustc /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/bootstrap/debug/rustc --crate-name tier_check --edition=2024 src/tools/tier-check/src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C opt-level=3 -C embed-bitcode=no --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' -C metadata=824c7d6ed0d005ba -C extra-filename=-abd7dab00c546008 --out-dir /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/deps --target x86_64-unknown-linux-gnu -C linker=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/wrapper/build-rust-ccld -L dependency=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-unknown-linux-gnu/bootstrap-tools/release/deps -C strip=debuginfo --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options -Zmacro-backtrace -Csplit-debuginfo=off -Clink-args=-Wl,-z,origin '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Alinker-messages -Zunstable-options -Z binary-dep-depinfo`
Finished `release` profile [optimized] target(s) in 1.48s
Running `build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/tier-check /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md /home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc --verbose`
thread 'main' (417726) panicked at src/tools/tier-check/src/main.rs:16:10:
rustc should run: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ fd tier-check rust/1.91.1/sources/rustc-1.91.1-src/build/
$
With v1.90.0, it was generated in stage1-tools dir as follows:
$ fd tier-check rust/1.90.0/sources/rustc-1.90.0-src/build/
x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/tier-check
x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/tier-check.d
Is there any reason/commit that tier-check bin isn't generated in v1.91?
tier-check was changed somewhat in https://github.com/rust-lang/rust/pull/145663/commits/65b7cde18ca7c331e323ace7b5f4f78b8cca4c33.
From the error message that you posted, it looks like tier-check was built, but then it failed during execution. It failed to find rustc, specifically. It would be useful to print what the passed rustc path to tier-check was.
I think rustc was build and found as expected (verified from built sources).
Rustc path according to the log (last line before panic message):
tier-check bin path(binary not found in generated build artifacts)
Running build/x86_64-unknown-linux-gnu/bootstrap-tools/x86_64-unknown-linux-gnu/release/tier-check
platform-support.md file path (present):
/home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/src/doc/rustc/src/platform-support.md
rustc bin path (present):
home/user/rust91/openembedded-core/build-st/tmp/work/x86-64-v3-oe-linux/rust/1.91.1/sources/rustc-1.91.1-src/build/x86_64-oe-linux-gnu/stage2/bin/rustc --verbose
thread 'main' (417726) panicked at src/tools/tier-check/src/main.rs:16:10: rustc should run: Os { code: 2, kind: NotFound, message: "No such file or directory" } note: run with
RUST_BACKTRACE=1environment variable to display a backtrace
This is the error that I meant. It clearly shows that tier-check was built and executed, but it could not run a rustc command.
$ fd tier-check rust/1.91.1/sources/rustc-1.91.1-src/build/ $With v1.90.0, it was generated in
stage1-toolsdir as follows:$ fd tier-check rust/1.90.0/sources/rustc-1.90.0-src/build/ x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/tier-check x86_64-unknown-linux-gnu/stage1-tools/x86_64-unknown-linux-gnu/release/tier-check.dIs there any reason/commit that tier-check bin isn't generated in v1.91?
As mentioned here, unable to find tier-check in build artifact in v.1.91. Even the rust native build didn't have it.
However, it was present in v1.90
I am not sure why this is happening.