Repository navigation
cross windows link: use the target SDK from llvm_ld.rsp - #2470
Merged
Merged
Conversation
Seed cross run 39212329480 failed at the final compiler link because Link.w derived the Windows SDK from the host lld-link path and looked for the aarch64 C runtime in the Linux host SDK. A compiler link now takes its SDK from the libclang archive its llvm_ld.rsp names, so the C runtime and compiler-rt builtins come from the target SDK whose archives are being linked. The cross Windows metadata also records a windows-gnu SDK's libc++/libunwind, as the native metadata does. New internals fixture link_windows_cross_sdk_test.w fails before the fix with the run's exact missing-crt2.o diagnostic and passes after. Gate green under the pinned seed.
Contributor
Author
|
Battery GREEN on 29d57a8.
Marking ready and merging; the windows-aarch64 seed cross will be re-dispatched from the merged source_ref next. |
ehartford
marked this pull request as ready for review
October 19, 2026 08:02
This was referenced Oct 19, 2026
ehartford
added a commit
that referenced
this pull request
Oct 19, 2026
Seed cross run 39288117180 is green from main 35afb3a (#2470/#2471) against the windows-gnu SDK f137ee12. It published with-windows-aarch64.exe sha256 f27e7459c0039682e6b228e60abfbbcc750eb2a1dd61531269f08cb65380c967 to the seed-windows-aarch64 prerelease; the same bytes are promoted to the pinned nightly-20261015-local-1-efcb91c30a6a release the lanes fetch from. seed.lock and the three workflow pins (via tools/bump_seed_pins.w) now name that digest. The native windows-aarch64 lane verifies it next; #2305 closes only on that green. Co-authored-by: Eric Hartford <[email protected]>
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seed cross run 39212329480 failed at the final windows-aarch64 compiler link:
error: the LLVM SDK at /home/runner/work/with/with/.deps/llvm-22.1.6-linux-x86_64 carries no Windows C runtime (.../libc/windows/aarch64-w64-mingw32/lib/crt2.o)Root cause:
link_stage_make_windows_llvm_link_commandderived the SDK from the hostlld-linkpath. A cross compiler link runs the host linker over the target SDK's archives, so its C runtime and compiler-rt builtins must come from the SDK named byllvm_ld.rsp, not the host SDK. A compiler link now reads that SDK from the rsp's libclang archive. The cross Windows metadata generators also record a windows-gnu SDK'slibc++.a/libunwind.a, as the native metadata generator does; a Visual Studio-built SDK is unchanged.Evidence at the iterate tier:
test/internals/link_windows_cross_sdk_test.wfails before the fix with the run's exact missing-crt2.o diagnostic and passes after;with check src/main.w,with build :dev, ceremony census diff: green;build.wandlib/std/build.wcheck under the pinned seed, the installed compiler, and the fresh release compiler;:gategreen (run with the build store disabled after it restored installed-generation bootstrap objects into the seed gate; the gate itself completed all fixed targets).Battery evidence will be posted on this PR before it is marked ready. After merge: re-dispatch the windows-aarch64 seed cross with the new source_ref; on green, bump the seed pins and re-run the native lane. #2305 stays open until that lane is green.