Skip to content

windows-aarch64 lane roots: LF locks and the SDK libc parse - #2474

Merged
ehartford merged 1 commit into
mainfrom
winarm-lane-roots
Oct 19, 2026
Merged

ehartford merged 1 commit into
mainfrom
winarm-lane-roots

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Native lane run 39296788835 on the new seed built stage1→stage2→stage3, passed WebAssembly fixtures and the stage2==stage3 fixpoint, then failed :test. Two root causes, fixed here:

  1. seed-driver refused the pinned seed on Windows only: seed.lock has no version or no 64-hex digest for with-windows-aarch64.exe. lock_value splits on \n, so a CRLF checkout (autocrlf default on the Windows runners) leaves a trailing \r on every digest and the exact-64 check in ret_require_pinned_driver reads 65 chars. seed.lock/sdk.lock are now pinned to LF in .gitattributes, the same treatment as docs/with-abi.sha256.

  2. Every c_import header failed to parse on native aarch64 (stdlib.h: expected ';' after top level declarator, 69 behavior files plus spec/compile-error cascades): link_stage_windows_c_target_uses_sdk_libc still gated the SDK-libc parse to x86_64, so the parse read mingw-w64's headers as the host MSVC target with no SDK sysroot. aarch64 now uses the SDK libc when the SDK carries its crt2.o — the windows-gnu SDK does; a Visual Studio-built SDK keeps the WITH_WINDOWS_*_INCDIR fallback — mirroring the link recipe from cross windows link: use the target SDK from llvm_ld.rsp #2470/cross windows metadata: mangle clang_main for the target SDK #2471. The pure gate is factored as link_stage_windows_uses_sdk_libc_for and covered in link_windows_cross_sdk_test.w.

Evidence: :dev + fixture green, ceremony census diff ok, seed-driven :gate green. Battery evidence before ready. Remaining lane failures from that run (internals timeouts, fn_abi source path, stdlib-complexity timing) are separate roots to triage on the re-run; #2305 stays open until the lane is fully green.

Native lane run 39296788835 built stage2==stage3 on the new seed, then failed :test at two roots. seed-driver refused the pinned seed: a CRLF checkout leaves a trailing CR on every seed.lock digest, so the 64-hex check reads 65 chars; pin seed.lock/sdk.lock to LF in .gitattributes. And every c_import header failed to parse: link_stage_windows_c_target_uses_sdk_libc still gated the SDK-libc parse to x86_64, so a native aarch64 parse read mingw-w64 headers as the host MSVC target. aarch64 now uses the SDK libc when the SDK carries its crt (the windows-gnu SDK does; a Visual Studio-built one keeps the WITH_WINDOWS_*_INCDIR fallback), mirroring the link recipe. Extended link_windows_cross_sdk_test.w covers the gate.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery on 41039e9 is RED only at battery-uat (gate green inside it): all seven Conan-backed scenarios fail at with get c.<pkg> with could not resolve package <pkg>/ on Conan Center.

This reproduces outside the battery and outside this change: a fresh with init && with get c.zlib fails identically with both this branch's release compiler and the pre-change installed compiler, and curl https://center2.conan.io/v2/ping currently fails TLS verification (the connection is intercepted by a captive-portal certificate for secure-login.attwifi.com). So the red is the local network, not this diff — but per stack discipline the PR stays draft and unmerged until a battery runs green on a working network. Re-run with run tools/battery.w on this top commit once Conan Center is reachable again; no code change is expected.

@ehartford

Copy link
Copy Markdown
Contributor Author

Fresh recheck: the battery blocker is unchanged. curl -I https://center2.conan.io/v2/ping still fails TLS verification (no alternative certificate subject name matches target host name 'center2.conan.io', rc=60; the presented certificate is for secure-login.attwifi.com), DNS resolves correctly to 34.107.244.196, GitHub/raw.githubusercontent remain reachable, and a fresh with init && with get c.zlib with the installed compiler still fails could not resolve package zlib/ on Conan Center (rc=1). No battery re-run can go green from this network; the next step remains re-running with run tools/battery.w on 41039e9 once Conan Center is reachable without interception.

@ehartford

Copy link
Copy Markdown
Contributor Author

Battery re-run GREEN on 41039e9 (with run tools/battery.w, rc=0, wall=749s): gate, uat, and battery-checks all green. The earlier battery-uat red was the local network: Conan Center TLS was being intercepted by a captive portal. Now that network is clear, curl https://center2.conan.io/v2/ping returns HTTP and with get c.zlib resolves [email protected] in a fresh project.

@ehartford
ehartford marked this pull request as ready for review October 19, 2026 23:04
@ehartford
ehartford merged commit ff3e618 into main Oct 19, 2026
@ehartford
ehartford deleted the winarm-lane-roots branch October 19, 2026 23:04
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