Skip to content

SDK rebuild: the four host failures of run 39152082294, each at its line (#2305) - #2461

Merged
ehartford merged 1 commit into
mainfrom
sdk-rebuild-fixes
Oct 18, 2026
Merged

ehartford merged 1 commit into
mainfrom
sdk-rebuild-fixes

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

The SDK rebuild dispatched for the windows-aarch64 lane (run 39152082294) failed on four of five hosts (darwin-aarch64 green). Each failure, read from its job log and fixed at its line:

  • windows-aarch64 (117747635561): sdk-windows-libc: the SDK at .deps/bootstrap-windows-aarch64-msvc has no llvm-ar. The Visual Studio recipe's bootstrap_tools in source-sdk/action.yml lacked llvm-ar/llvm-ranlib, which the windows libc step archives with (the windows-gnu list already had them).
  • windows-x86_64 (117747635584): 'with_parse_i64_ref' has no With body to evaluate at compile time, reached through run_sdk_windows_libc_action -> sdk_compile_all -> par_run -> parse. build/par.w now parses the jobserver slot count with a With digit loop (string_to_int's exact rule); the evaluator gap is filed as comptime evaluator: std.string parse/string_to_int reaches extern with_parse_i64_ref and is not comptime-callable #2460.
  • linux-aarch64 (117747635616): sdk-ninja's configure found the pinned SDK's clang++ "broken" — cannot open crtbeginS.o / libclang_rt.builtins.a. The ninja/cmake/LLVM actions already apply the sysroot+libc++ toolchain flags for both Linux arches, but sdk-runtimes was registered and depended on only on linux-x86_64, and its output path hardcoded the x86_64 triple. build.w now wires it for either Linux arch.
  • linux-x86_64 (117747635275): linux-sysroot: … has no clang or ld.lld and sdk-build-tools-pack: … no CMake modules during :dev. The job's bootstrap SDK pin was v0.15.1's pre-packager .tar.zst (dangling bin/clang, no share/cmake, no sysroot). It now pins the same nightly-sdk-20261004-c4ddb7ddbef2 asset nightly-release builds with, sha-verified (89751749…, matches the release asset digest).

Evidence so far: src/main check build.w + lib/std/build.w ok under the pinned seed; with build :dev green; ceremony census diff ok; src/main build :gate rc=0. Battery running on 7958a3f; result posted here before ready.

After merge: re-dispatch the SDK release (gh workflow run "SDK release" --ref main -f tag=sdk-windows-aarch64), bump WITH_SDK_SHA256 for windows-aarch64 in selfhost-windows-aarch64.yml / nightly-release.yml / sdk-release.yml, re-dispatch the windows-aarch64 lane, then close #2305 (linux-aarch64 already green: run 39157940183).

…ine (#2305)

windows-aarch64: the Visual Studio bootstrap seed now carries llvm-ar/llvm-ranlib, which sdk-windows-libc archives with. windows-x86_64: build/par.w parses the jobserver slot count with a With digit loop - std's parse reaches the extern with_parse_i64_ref, which the comptime evaluator cannot call (#2460). linux-aarch64: sdk-runtimes is registered and depended on for either Linux arch (the ninja/cmake/LLVM actions already took the sysroot/libc++ toolchain flags for both; the target wiring was x86_64-only and its output triple hardcoded). linux-x86_64: the SDK job's bootstrap pin is nightly-release's nightly-sdk-20261004 asset with a sha check, not v0.15.1's pre-packager .tar.zst whose dangling bin/clang and missing cmake modules failed linux-sysroot and sdk-build-tools-pack during :dev.
@ehartford

Copy link
Copy Markdown
Contributor Author

Battery green on 7958a3f: battery rc=0 wall=591s, GREEN / BATTERY_DONE in out/battery/status.txt (gate, UAT and battery-checks all passed under the pinned seed). Pre-battery src/main build :gate also rc=0, :dev green, ceremony census diff ok. Marking ready and merging.

@ehartford
ehartford marked this pull request as ready for review October 18, 2026 22:20
@ehartford
ehartford merged commit 375ee8d into main Oct 18, 2026
@ehartford
ehartford deleted the sdk-rebuild-fixes branch October 18, 2026 22:20
ehartford added a commit that referenced this pull request Oct 19, 2026
… claim jobserver slots (#2460) (#2462)

The SDK rebuild's second round (run 39171886271): linux-aarch64 went green, and both Windows jobs failed one step deeper in build/par.w - par_slot_acquire -> pid -> extern with_getpid, which the evaluator refused. Three fixes at their owners: std.string's string_to_int is a With digit loop instead of the with_parse_i64_ref extern, so parse is comptime-evaluable everywhere (behav_2460_comptime_parse, shown failing before); eval_allowed_runtime_call answers with_getpid, with_fs_symlink and with_fs_remove_file in tool mode, where the evaluator is the build process and the jobserver slot pair is driver state outside any action's write scope; par_lane_critical reads the critical file through the ToolFs capability instead of std.fs's pointer out-param extern. The par_slots_from digit loop from #2461 is deleted - parse is the one spelling again.

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.

D118: linux-aarch64 and windows-aarch64 seeds that accept List

1 participant