You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adapt the import-std wiring to the CMake 4.5 model (follow-up to #1855's 4.4.5 pin) #1865
Follow-up to #1855, which recovered the release pipeline by pinning CMake 4.4.5 after GitHub's windows-2025 image rolled to CMake 4.5.0 and every build-windows leg failed with LNK1181 (std.compat.ixx.obj missing).
Background (diagnosis on file with the captain): the repo's import-std wiring is built on CMake ≤4.4's experimental model — a UUID lookup table that stops at 4_4. CMake 4.5 removed that experimental model entirely (import std graduated), so the script's lookup misses, warns, and returns early, leaving a half-configured graph: the BMI edges exist but the std.compat object compile edge is missing, hence LNK1181 at link time. There is no '4.5 UUID' to add — the model itself is gone.
Scope of this issue (the root fix; #1855's B+C was the recovery):
Rework the import-std wiring for the CMake 4.5 model (native CXX_MODULES / import std support), keeping the build working on the pinned 4.4.5 as well, or deliberately raising the minimum and unpinning the CI CMake version in the same change.
Evidence bar: CI green on a runner image with CMake ≥4.5 (all four build-windows legs + the release job shape), and the 4.4.5 path either still green or explicitly dropped with the pin removed.
Until this lands, the 4.4.5 pin is load-bearing: do not bump the CI CMake version for any other reason without checking here first.
CAPTAIN UPDATE (2026-11-24): the wiring half of this issue is landed via PR #1867 (merged by the captain after review); the unpin half is blocked upstream and this issue stays OPEN for it.
What landed: cmake/enable_import_std.cmake gains a native >=4.5 branch (no UUID gate, the removed CMAKE_CXX_MODULE_STD no longer set); the 3.30-4.4 path and the FATAL_ERROR hardening are byte-unchanged. CMakeLists.txt's dialect-26 arm no longer derives levels from the removed CMAKE_CXX_COMPILER_IMPORT_STD on >=4.5 (the canary result is deliberately preserved). Script-mode five-shape verification: 3.29 refused, 3.31/4.4.5 legacy path, 4.5/4.6 native. Final CI: all four build-windows legs green, 28/28 jobs identical in name and conclusion to the main baseline, zero new reds.
Why the pin stays (proven, not assumed): the unpin experiment (run 45226913688, commit 9e16ca0, replayable from the PR branch history) configures fully green on the image's CMake 4.5.0 — 617 targets start building — then all four legs fail with the exact #1855 LNK1181 signature. Graph forensics: 6 BMI edges, 0 .obj compile edges for std.compat. That edge is synthesized by CMake from the MSVC 14.52 modules metadata; with the wiring in its documented 4.5 form there is no repo-side participation point left. This is diagnosis root cause #2 confirmed: an upstream graph defect, not repo wiring. The 4.4.5 pin therefore remains, with its workflow comment rewritten to state the upstream reason and the retry method.
Retry condition: when the windows-2025 image's CMake/MSVC combination rolls such that the generated graph carries the std.compat .obj edge, replay the unpin experiment; on four green legs, drop the pin and the dead -D flags together. Whether to file the graph evidence (run 45226913688) upstream with Kitware is left to the owner.
Activity
build(ci): restore the CMake 4.4.5 pins -- 4.5.0 graph defect confirmed
build(cmake): adapt import std wiring to the CMake 4.5 model, unpin C…
caomengxuan666 commentedon Nov 23, 2026
CAPTAIN UPDATE (2026-11-24): the wiring half of this issue is landed via PR #1867 (merged by the captain after review); the unpin half is blocked upstream and this issue stays OPEN for it.
What landed: cmake/enable_import_std.cmake gains a native >=4.5 branch (no UUID gate, the removed CMAKE_CXX_MODULE_STD no longer set); the 3.30-4.4 path and the FATAL_ERROR hardening are byte-unchanged. CMakeLists.txt's dialect-26 arm no longer derives levels from the removed CMAKE_CXX_COMPILER_IMPORT_STD on >=4.5 (the canary result is deliberately preserved). Script-mode five-shape verification: 3.29 refused, 3.31/4.4.5 legacy path, 4.5/4.6 native. Final CI: all four build-windows legs green, 28/28 jobs identical in name and conclusion to the main baseline, zero new reds.
Why the pin stays (proven, not assumed): the unpin experiment (run 45226913688, commit 9e16ca0, replayable from the PR branch history) configures fully green on the image's CMake 4.5.0 — 617 targets start building — then all four legs fail with the exact #1855 LNK1181 signature. Graph forensics: 6 BMI edges, 0 .obj compile edges for std.compat. That edge is synthesized by CMake from the MSVC 14.52 modules metadata; with the wiring in its documented 4.5 form there is no repo-side participation point left. This is diagnosis root cause #2 confirmed: an upstream graph defect, not repo wiring. The 4.4.5 pin therefore remains, with its workflow comment rewritten to state the upstream reason and the retry method.
Retry condition: when the windows-2025 image's CMake/MSVC combination rolls such that the generated graph carries the std.compat .obj edge, replay the unpin experiment; on four green legs, drop the pin and the dead -D flags together. Whether to file the graph evidence (run 45226913688) upstream with Kitware is left to the owner.