Skip to content

windows-package: error STL1000: Unexpected compiler version, expected Clang 22 or newer — unpinned LLVM in windows-package.yml reds every PR regardless of content #692

Closed

Description

@pt-act

windows-package / windows-x64 (clang-cl, Release, /MT, zip) currently fails on every PR with:

text
error STL1000: Unexpected compiler version, expected Clang 22 or newer
This is runner-image drift, not a content regression — the evidence:

PR #691 (comment-only: two src/ comments + a changelog fragment, +28/−4, no code, no build config) fails the identical error: run 44396283711, job windows-package / windows-x64 (clang-cl, Release, /MT, zip). A comment-only diff cannot produce a compiler-version static assertion.
PR #687 (an unrelated lane) hits the same error, as do recent runs at 82ed4c8, cf0e88f, 54ca8ef and 7253fb7.
The main ci.yml windows legs (windows (clang-cl, ninja) and windows (cl, ninja)) pass on the same commits — the failure is specific to the windows-package.yml workflow.
The failure cascades to a second job. windows-package.yml builds the packaged exe's outputs and uploads them as the xplat-windows artifact (windows-package.yml:373–374); ci.yml's xplat-diff (Windows packaged exe vs Linux, same verbs, same bytes) job — needs: [plan, release, windows-package], if: !cancelled() — downloads that artifact (ci.yml:1145) to diff against xplat-linux. With the build failing at STL1000, the upload step skips, and the consumer fails with Error: Unable to download artifact(s): Artifact not found for name: xplat-windows (run 44396283711, job 135175784558). So one root cause reds two jobs on every PR: the packager and its diff consumer. Run 44396283711 at read time: 34 pass / 2 fail (both this cascade) / 3 skipping — every other leg green on a comment-only diff.
Root cause: windows-package.yml provisions LLVM from %VSINSTALL%\VC\Tools\Llvm\x64\bin — whatever the runner image ships — and does not pin a version. The current runner image's MSVC STL headers hard-require Clang ≥22 (_MSVC_STL_VERSION gate → STL1000), and the image's bundled LLVM is older, so clang-cl + the image's STL no longer compose. Every PR pays for this regardless of what it changes, and the red masks real signals in that workflow — including the xplat-diff consumer, which is doing real cross-platform determinism work and is now blind on every PR.

Suggested fix (either, maintainer's call):

Pin the LLVM version the workflow uses — install a known-good version explicitly (e.g. choco install llvm --version= or a pinned nuget/zip) instead of taking whatever %VSINSTALL%\VC\Tools\Llvm\x64\bin holds; the pin moves only by deliberate bump, and the STL1000 gate then says so loudly when a bump is actually needed. This is the drift-proof option.
Or provision LLVM ≥22 for this workflow so the version matches what the image's STL requires — a one-line bump today that re-opens the same class on the next image rollout.
Option 1 is the one that stops the bleed permanently; option 2 is the one-line unblock. Either way it deserves its own change — folding it into any feature lane would couple a CI-infrastructure fix to unrelated review.

Provenance note: measured from our fork's PR rounds on 2026-11-18 (#691 run 44396283711; #687 and the four SHAs above read the same way). Happy to test a candidate fix on a branch.

Activity

  1. pt-act commented on Nov 19, 2026

    @pt-act
    ContributorAuthor

    Fixed upstream — independently of this issue: #693 (merged 2026-11-19T05:05:42Z) inverted the LLVM
    selection in windows-package.yml to bundled-first, with the same diagnosis in the workflow comment —
    "clang-cl is Visual Studio's bundled one, the standalone C:\Program Files\LLVM only a fallback: the MSVC STL
    static_asserts a minimum clang (STL1000) and only the bundled clang ships in lockstep with it" — citing run
    44390371541 (image win25-vs2026/20261116.315 pairing MSVC 14.52.37025, which requires Clang ≥22, with a
    standalone LLVM 20.1.8).

    Verified green after the fix on three PRs whose full matrices completed — #694, #697, #698:
    windows-package / windows-x64 (clang-cl, Release, /MT, zip) and the downstream
    xplat-diff (Windows packaged exe vs Linux…) job (this issue's cascade half) are success on all three.

    Closing as completed. One note for whoever meets this class again: the bundled-first bet ("ships in
    lockstep") is reasonable but unpinned — if a future image ever ships a mismatched bundled pair, the
    drift-proof variant is to pin the LLVM version explicitly and let STL1000 announce when a deliberate bump is
    needed.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions