Repository navigation
windows link: a gnu SDK links from its own libc on aarch64 too (#2305) - #2467
Merged
Merged
Conversation
added 2 commits
October 18, 2026 23:09
Lane run 39207156698 linked stage1 through the Visual Studio recipe and died on dllimport UCRT symbols (_aligned_malloc, _setjmpex, lseek64, __cxa_thread_atexit): sdk_libc was gated to x86_64 from when the aarch64 SDK was Visual Studio-built. The rebuilt aarch64 SDK is a windows-gnu build carrying its own libc (crt2.o, libc++, builtins all in the manifest), detected by lib/libclang.a like x86_64's. The gate now reads (x86_64 or gnu SDK) and (program link or gnu SDK), so a VS-built aarch64 SDK keeps the old path and the pinned gnu one links from the SDK only.
…2305) Run 39207158866's windows-aarch64 SDK job died at its own Fetch step on the libclang.lib presence test - the same naming #2466 fixed in the lane and nightly workflows, at its two remaining sites (sdk-release's fetch and the cross seed job's guard). The asset it fetches is the rebuilt gnu SDK, whose archives are .a.
Contributor
Author
ehartford
marked this pull request as ready for review
October 19, 2026 06:23
This was referenced Oct 19, 2026
ehartford
added a commit
that referenced
this pull request
Oct 19, 2026
…elects (#2469) Both cross llvm_ld.rsp generators still required libclang.lib and selected only *.lib - against a windows-gnu SDK (the rebuilt aarch64 one, and x86_64's since #1915) they found nothing. They now take libclang by whichever naming the SDK used and select .a or .lib with lib-prefixed or bare names, exactly as build/compiler.w's native selection does. This is step 1 of cutting the new windows-aarch64 seed the lane needs: its stage1 is linked by the pinned seed, whose Link predates the gnu-SDK gate (#2467). Co-authored-by: Eric Hartford <[email protected]>
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.
Lane run 39207156698 got past Fetch SDK and failed linking stage1: dllimport UCRT symbols undefined (_aligned_malloc, _setjmpex, setlocale, lseek64, __cxa_thread_atexit). Root line:
link_stage_make_windows_llvm_link_commandgates the SDK-libc recipe toarch == "x86_64"from when the aarch64 SDK was Visual Studio-built. The rebuilt aarch64 SDK is a windows-gnu build carrying its own libc (crt2.o, libc++, libclang_rt.builtins-aarch64.a all in its manifest), detected bylib/libclang.aexactly as x86_64's is. The gate now reads(x86_64 or gnu SDK) and (program link or gnu SDK), so a VS-built aarch64 SDK keeps the old path and the pinned gnu one links from the SDK only, in MinGW mode like x86_64.:dev green, stage1 check ok, ceremony diff ok, :gate rc=0. Battery result posted before ready. The lane re-dispatch after merge is the proof; #2305 stays open until it is green.