Skip to content

SDK windows follow-ups: NATIVE tablegen args and libclang.a naming - #2466

Merged
ehartford merged 2 commits into
mainfrom
sdk-winx64-native
Oct 19, 2026
Merged

ehartford merged 2 commits into
mainfrom
sdk-winx64-native

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Two leftovers from SDK release run 39180949033 and lane run 39205559718, as two commits:

  1. windows-x86_64 SDK: NATIVE configure. Past sdk-windows-libc, the LLVM build died configuring its NATIVE tablegen sub-build: bare clang, unable to find library -lunwind. The gnu args name CMAKE_SYSTEM_NAME, so CMake calls the build crosscompiling; the NATIVE configure inherits none of the sysroot/INIT flags. The same args now travel through CROSS_TOOLCHAIN_FLAGS_NATIVE.
  2. windows-aarch64 SDK naming. The rebuilt SDK is a windows-gnu build whose archives are GNU-named; the lane died at Fetch SDK on libclang.lib missing. The :deps marker, the libclang fallback, and both fetch checks now name libclang.a (Link already detects the gnu SDK by that name).

Gate rc=0 on the two-commit top. Battery result posted before ready. After merge: SDK release re-dispatch (windows-x86_64 full green) and the windows-aarch64 lane re-dispatch for #2305.

Eric Hartford added 2 commits October 18, 2026 22:38
SDK run 39180949033, windows-x86_64 job: past sdk-windows-libc, the LLVM build died configuring its NATIVE sub-build - bare clang could not find -lunwind. The gnu args name CMAKE_SYSTEM_NAME, so CMake calls the build crosscompiling and LLVM configures NATIVE for its tablegens; that configure inherits none of the sysroot/INIT flags. The same args now travel through CROSS_TOOLCHAIN_FLAGS_NATIVE, LLVM's own channel for exactly this.
…clang.lib (#2305)

Lane run 39205559718 died at Fetch SDK: 'libclang.lib missing'. The sdk-release-built windows-aarch64 SDK is a windows-gnu build (#1915) whose archives are GNU-named; only the retired hand-built Visual Studio SDK shipped .lib. The :deps marker (compiler_default_libclang_archive_path), the libclang fallback, and both lane fetch checks now name libclang.a. Link already detects the gnu SDK by that name and needs no Visual Studio for it.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery green on edf4270 (two-commit top): battery rc=0 wall=292s, GREEN/BATTERY_DONE. Marking ready and merging; the windows-aarch64 lane and SDK release re-dispatches follow.

@ehartford
ehartford marked this pull request as ready for review October 19, 2026 05:53
@ehartford
ehartford merged commit 448921a into main Oct 19, 2026
@ehartford
ehartford deleted the sdk-winx64-native branch October 19, 2026 05:53
ehartford pushed a commit that referenced this pull request Oct 19, 2026
…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 added a commit that referenced this pull request Oct 19, 2026
#2467)

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

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.

* SDK fetch checks: the rebuilt windows-aarch64 SDK ships libclang.a (#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.

---------

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