Skip to content

seed.lock: linux-x86_64 and windows-x86_64 seeds and SDKs from main 2e8defaa - #1805

Merged
ehartford merged 3 commits into
mainfrom
linux-seed-2e8defaa
Sep 27, 2026
Merged

ehartford merged 3 commits into
mainfrom
linux-seed-2e8defaa

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

This pins new linux-x86_64 and windows-x86_64 seeds and LLVM SDKs, built from main 2e8defa. No published compiler can build main on either platform: the pinned v0.15.2.0 (Linux) and v0.15.2.1 (Windows) seeds fail on it, and selfhost-linux has been red at its build step since 09-22.

Release: nightly-20260926-local-1-2e8defaa18ef

Asset sha256
with-linux-x86_64 ce5c3c4729650b215fb166ac8078fe7c7982b094bc4a1e31401e04eb7e7460d0
with-windows-x86_64.exe 52ae948ab3f7a677daf950b45f34fd9fa4b398081c8593519540f78c898d02f4
with-llvm-sdk-22.1.6-linux-x86_64.tar.gz 25b49ef5520cf2e94e1b80eebf019174cb313cadfee881cd6d4c9752e97aad0d
with-llvm-sdk-22.1.6-windows-x86_64.tar.gz 8eb0ec5de7a338e777fa85a33b366aa632498d6b20e9d12ab831d5b3085be945

Commits

  1. SDK: ship llvm-dwarfdump in the Unix package. :fixpoint's stage2-debug-lines runs $LLVM_PREFIX/bin/llvm-dwarfdump. The LLVM build installs it, but the package's bin/ selection dropped it, so an SDK built from main's own recipe failed :fixpoint. The v0.15.1 SDK the Linux lane fetches lacks it for the same reason.
  2. SDK: pin CMAKE_RC_COMPILER_INIT to the Kit's rc.exe on Windows. For clang-cl, CMake defaults CMAKE_RC_COMPILER_INIT to llvm-rc whenever rc.exe isn't on PATH, and then takes the llvm-rc rule even though CMAKE_RC_COMPILER names rc.exe. rc.exe reads the rule's -clang:-MD as a code page: fatal error RC1205: invalid code page compiling CMakeVersion.rc. The SDK build no longer depends on the host's PATH.
  3. seed.lock and pins.
    • with-linux-x86_64 and with-windows-x86_64.exe point at the new release; tools/bump_seed_pins.w rewrote the workflow seed pins.
    • selfhost-linux, selfhost-windows and nightly-release (linux-x86_64) fetch the new .tar.gz SDKs, check them against their .sha256 sidecars and extract with tar -xzf.
    • linux-aarch64, windows-aarch64 and darwin-aarch64 are unchanged.

How the seeds were made

Both were bootstrapped locally through the same ladder: v0.15.2.1 → 8c859a7 → 37f3a99 → 8e55d67 → fb6753b with the 4f00495 field-move fix applied → 8db10d1 → a stage1 of a5c6f43 embedding 607a52f's lib/ (the darwin seed's hop) → 607a52f → 2e8defa. Compilers before 4f00495 reject later src/main.w depending on source position, which is why that fix had to be applied.

Verification

Both platforms:

  • with build then :fixpoint: stage2 == stage3 over all 16 units.
  • The published binary, used as the seed, builds main from a fresh checkout to the same fixpoint.
  • The same holds with each new SDK and CI's exact fetch and build steps. On Linux that includes stage2-debug-lines, with no LD_LIBRARY_PATH shims: the new SDK's lld no longer links libxml2.
  • Packaging checks as :package-current-host does them, applied by hand because that target needs a last-green manifest:
    • version runs;
    • dynamic dependencies are only libc, libm and the loader on Linux, and only Windows system DLLs with a static CRT on Windows;
    • static libclang is present (Linux; the action skips this check on PE);
    • the binary is stripped with the SDK's llvm-strip.

This branch: with build :seed-driver, driven by the published Linux seed: "the driver is the pinned seed nightly-20260926-local-1-2e8defaa18ef; workflow pins agree with seed.lock".

SDKs: built from source with :sdk-package, and the packager's validation passed, including the WebAssembly backend check.

  • Linux bootstraps from the v0.15.2.1 SDK.
  • Windows bootstraps from the host's LLVM 22.1.8 plus a standalone CMake 3.31.12, the generation-zero seeding .github/actions/source-sdk does. VS 2026's bundled CMake 4.3.1 hit the same rc.exe failure as 3.31 before commit 2.

Known, not addressed here

:test on linux-x86_64 is red on causes that predate this PR:

  • The zlib, bzip2, sqlite3 and libcurl facade tests need those libraries' headers on the host. That's 21 tests across behavior, compile-error and debug-alloc.
  • test/uat/expected.txt hardcodes darwin not listed, so it fails on any Linux host.
  • behav_1372_two_modules_c_import is a real Linux bug: abs(-3) and labs(-3) from <stdlib.h> return -3 on linux-x86_64, even in a one-module program.

src/version still reads 0.15.2.1, so with version prints v0.15.2.1.

🤖 Generated with Claude Code

ehartford and others added 3 commits September 27, 2026 00:18
stage2-debug-lines, a :fixpoint dependency, reads ELF and Mach-O line tables
with $LLVM_PREFIX/bin/llvm-dwarfdump (build/compiler.w
comp_llvm_dwarfdump_tool). The LLVM build installs it, but the package's bin/
selection did not keep it, so an SDK built from this recipe fails :fixpoint:

    error: stage2-debug-lines: missing llvm-dwarfdump: .deps/llvm-22.1.6-linux-x86_64/bin/llvm-dwarfdump

The published v0.15.1 linux SDK, which CI extracts, lacks it for the same
reason. Keep it in the package and require it when validating an SDK on
Linux and macOS. On PE the same target uses llvm-readobj, so the Windows
list is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
sdk.w names the Windows Kit's rc.exe as CMAKE_RC_COMPILER for the cmake and
LLVM builds, which compile with clang-cl. CMake's Platform/Windows-Clang
module picks its resource rule from CMAKE_RC_COMPILER_INIT as well: when
rc.exe is not on PATH it defaults that to llvm-rc and takes the llvm-rc rule
(clang preprocess, then `-clang:-MD -clang:-MF` depfile flags passed to the
resource compiler). rc.exe reads `-clang:-MD` as a code page:

    fatal error RC1205: invalid code page     (CMakeVersion.rc)

The build then depended on the host's PATH. Set CMAKE_RC_COMPILER_INIT to
the same rc.exe so the plain rc rule, with cmcldeps as its dependency
scanner, is chosen on every host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e8defa

No published compiler builds main on linux-x86_64 or windows-x86_64: the
pinned v0.15.2.0 / v0.15.2.1 seeds fail on it, and the Linux lane has been
red at its build step since 09-22. Both seeds are main 2e8defa,
bootstrapped locally through the same ladder from v0.15.2.1 (8c859a7,
37f3a99, 8e55d67, fb6753b + the 4f00495 field-move fix, 8db10d1, and
the 607a52f hop), published as nightly-20260926-local-1-2e8defaa18ef. Each
binary builds main from a fresh checkout to a stage2 == stage3 fixpoint.

The same release carries LLVM 22.1.6 SDKs built from source with
:sdk-package (this branch's sdk.w). They include the WebAssembly backend
main has required since #1210 and, on Linux, llvm-dwarfdump for
stage2-debug-lines; the v0.15.1 SDKs the self-host lanes pinned have
neither. The lanes now fetch the .tar.gz assets, check them against their
.sha256 sidecars, and extract with tar -xzf. The seed pins in the
workflows were rewritten by tools/bump_seed_pins.w.

linux-aarch64, windows-aarch64 and darwin-aarch64 are unchanged.

Co-Authored-By: Claude Opus 5.5 <[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