Skip to content

windows link: a gnu SDK links from its own libc on aarch64 too (#2305) - #2467

Merged
ehartford merged 2 commits into
mainfrom
sdk-winaarch64-gnu-link
Oct 19, 2026
Merged

ehartford merged 2 commits into
mainfrom
sdk-winaarch64-gnu-link

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

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_command gates the SDK-libc recipe to arch == "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 by lib/libclang.a exactly 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.

Eric Hartford 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.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery green on the two-commit top c8bce88: battery rc=0 wall=107s, GREEN/BATTERY_DONE (the first commit 0ddf443 also battery-green at 328s before the fetch-check commit joined). Marking ready and merging; lane re-dispatch follows.

@ehartford
ehartford marked this pull request as ready for review October 19, 2026 06:23
@ehartford
ehartford merged commit e7b303c into main Oct 19, 2026
@ehartford
ehartford deleted the sdk-winaarch64-gnu-link branch October 19, 2026 06:23
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant