Skip to content

dist-x86_64-msvc job failure: "Cannot determine host target tuple" in PGO pipeline #166301

Open

Description

@jieyouxu

Incident thread: #t-infra > 20261121 rust-lang/rust dist-x86_64-msvc CI outage

Symptom

[2026-11-21T04:27:16.964Z INFO  opt_dist::exec] Executing `RUSTC=C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage0\bin\rustc.exe RUSTC_BOOTSTRAP=1 C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage0\bin\cargo.exe run -p collector --bin collector -- profile_local eprintln C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2\bin\rustc.exe --id Test --cargo C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2-tools-bin\cargo.exe --profiles Debug,Opt --scenarios Full --exact-match syn-2.0.101,cargo-0.87.1,serde-1.0.219,ripgrep-14.1.1,regex-automata-0.4.8,clap_derive-4.5.32,hyper-1.6.0 --frontend-threads 1 --jobs 4 [at C:\a\rust\rust\opt-artifacts\rustc-perf]`
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s
warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
     Running `target\debug\collector.exe profile_local eprintln 'C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2\bin\rustc.exe' --id Test --cargo 'C:\a\rust\rust\build\x86_64-pc-windows-msvc\stage2-tools-bin\cargo.exe' --profiles Debug,Opt --scenarios Full --exact-match syn-2.0.101,cargo-0.87.1,serde-1.0.219,ripgrep-14.1.1,regex-automata-0.4.8,clap_derive-4.5.32,hyper-1.6.0 --frontend-threads 1 --jobs 4`
Running with 4 job(s)
thread 'main' (5252) panicked at collector\src\bin\collector.rs:895:27:
Cannot determine host target tuple. Please make a `rustc` binary available in PATH.: expected success, got exit code: 0xc0000142

Seems that:

  • We get past rustc/rustdoc/clippy/cranelift PGO training steps
  • But we are failing at "Running benchmarks with PGO instrumented LLVM"
    • At this point I think we use stage 2 rustc linked against instrumented LLVM (which would have to be rebuilt with MSVC toolchain from the runner image).
  • We seem to be failing when we trying to query stage 2 rustc for version info, and the rustc process dies.
  • It seems that, only dist-x86_64-msvc is affected but not dist-i686-msvc or dist-aarch64-msvc.

Relevant runs

Failed

Runner: windows-2025-vs2026
Image: 20261116.315.1 (https://github.com/actions/runner-images/releases/tag/win25-vs2026%2F20261116.315)
MSVC: 14.52.37025

Successful

Runner: windows-2025-vs2026
Image: 20261103.298.1 (https://github.com/actions/runner-images/releases/tag/win25-vs2026%2F20261103.298)
MSVC: 14.51.36231

Experiments

Investigation log

TODO

Mitigations

Useful links

Activity

  1. added
    O-x86_64
    T-compiler
    O-windows-msvc
    T-infra
    C-bug
    T-release
    A-opt-dist
    on Nov 21, 2026
  2. added
    needs-triage
    on Nov 21, 2026
  3. added
    P-critical
    on Nov 21, 2026
  4. jieyouxu commented on Nov 21, 2026

    @jieyouxu
    MemberAuthor

    It's quite plausible this is linked to #165953 and we'd need to backport the LLVM fix #165953 (comment) to rule that cause out. AFAIK that UB is not arch-specific.

  5. added
    A-LLVM
    WG-llvm
    and removed
    needs-triage
    on Nov 21, 2026
  6. added 4 commits that reference this issue on Nov 21, 2026
  7. added 3 commits that reference this issue on Nov 21, 2026
  8. added a commit that references this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMA-opt-distC-bugO-windows-msvcO-x86_64P-criticalT-compilerT-infraT-releaseWG-llvm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions