Repository navigation
rust + go: bootstrap both language toolchains from the hex0-rooted, CS-attested chains - #667
Conversation
|
Important Review skippedToo many files! This PR contains 244 files, which is 94 over the limit of 150. To get a review, reduce the PR to 150 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to Team to raise the limit. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. ⚙️ Run configurationConfiguration used: Repository: gominimal/pkgs/.coderabbit.yaml Review profile: CHILL Plan: Essentials Run ID: 📥 CommitsReviewing files th 8000 at changed from the base of the PR and between 79d15b4 and d9cbb47. 📒 Files selected for processing (244)
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
…ader lists, s1 comment corrected
Consumer-verified (PR comment 5500513628): no rung reads R4a's or R4b's merged /usr copies any
more — s3 (-nostdinc/-nostdlib vs the §E sysroot), s4/R5 (-nostdinc -I $MB/include), gcc-4.0.4
(CPATH/LIBRARY_PATH/LIBGCC2_INCLUDES already at /usr/lib/musl-bedrock; its comment said
-I/usr/include and was stale). Dropping usr/include/** + usr/lib/{libc.a,*.o,*.a} from both
removes two contenders from the first-writer-wins header draw in every downstream sandbox.
binutils-2.30/2.41: headers = explicit bfd.h-class brace list (absent names match nothing).
s1: the mes-first -I comment overclaimed — mes ships its libc headers at the TOP level and only
9 names under /usr/include/mes/, so s1 is still draw-dependent; mesl_roll is the real mitigation.
Each narrowed pkg gets a build.sh RE-CAPTURE BUMP (outputs are not in the spec hash).
Spec-hash diff via minimal dump: arm64 0 changed; amd64 158 changed = everything above R4a
(expected: one cold amd64 round).
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
hex0 (sha-pinned seed) -> hex1 -> kaem -> mes -> mescc -> tcc 0.9.26/0.9.27 -> musl 1.1.24 -> binutils 2.30 -> gcc 4.0.4 -> 4.7.4 -> 10.4.0 -> 15.2.0, with gmp/mpfr/mpc, linux-headers, binutils 2.41, musl 1.2.5 and the tcc/musl relink steps as intermediate rungs. Each package builds only with what the previous rung installed. amd64-only; the packages export empty collections on arm64.
…15.2.0-glibc Built by the top of the stage0 ladder and installed under versioned prefixes so they never collide with the distro toolchain. Binaries they produce are linked with an explicit dynamic linker and rpath into that prefix. gcc ships C and C++; each package carries a compile-and-run gate.
mrustc at a pinned upstream commit plus a patch series (aarch64 and shared-library fixes, each documented in its header) builds rustc 1.90.0 with cargo and std from the rustc-1.90.0 source tarball, fully offline, into /usr/lib/mrustc-rust-1.90.0. Functional gates compile and run programs covering generics, trait objects, unwinding, TLS, proc-macros and cargo.
Standard ./x.py build with bootstrap.toml [build] rustc/cargo pinned at the previous rung's install prefix, so the stage0 snapshot download never happens; network tools are stubbed to fail closed and vendored *-sys crates get empty .git markers. Each rung installs to /usr/lib/rustc-<version> and ships the same functional gate set. The directories differ only in versions and stage0 pointers.
…14 -> 1.22.6 -> 1.24.9 rungs go-1.4 (C-only root) is built with the glibc-hosted gcc; each later rung uses the previous one as GOROOT_BOOTSTRAP. packages/go bootstraps from go-1.24.9 on amd64 and from the sealed arm ladder artifact on arm64; the go.dev bindist Source is removed and a missing bootstrap is fatal. Version 1.26.6 -> 1.27.0, with source bridges in otel-collector and trivy for go 1.27 API removals.
bootstrap.toml [build] rustc/cargo point at the rustc-1.96.0 package's prefix; the seed tarball Sources and the download fallback are removed, the stage0 is asserted by --version before the build, and cargo runs with CARGO_NET_OFFLINE=true. On arm64 the stage0 is the sealed arm ladder artifact. Runtime deps and outputs are unchanged.
2f2f8bc to
336bba3
Compare
There was a problem hiding this comment.
Review: rust + go hex0-rooted bootstrap chains
Reviewed the full branch. CI is green (minimal-check and a full minimal build pass); note CodeRabbit skipped this PR entirely — 236 files exceed its 150-file limit — so this needs human eyes.
Verified correct
- Ladder consistency. Every
GOROOT_BOOTSTRAP/ stage0 prefix resolves to a package present in that file'sbuild_deps; no dependency cycles. Min-bootstrap versions line up: go1.27 needs ≥1.24.6, the 1.24.9 rung's ownminBootstrapis exactly its predecessor 1.22.6, earlier rungs still accept thego1.4default. - Hashes. Source shas recomputed against upstream for go 1.17.13/1.20.14/1.22.6/1.24.9/1.27.0, glibc-2.42, binutils 2.30/2.41/2.46, gcc 4.0.4/4.7.4/10.4.0/15.2.0, musl, gmp/mpfr/mpc, mes, tcc, linux-6.12.43 — all match. Arch prebuilt shas are pinned and match their URL path segments.
- Stage0 pinning.
--version/--print sysroot/src/version+src/stage0assertions abort on mismatch; stub PATH dirs are genuinely prepended with the curl/git shadowing asserted;CARGO_NET_OFFLINE=true; thevendor.rssed patch fails closed (grep before and after,exit 1). - Gates. Pass values are computed from guarded sums, never literals; each gated command is
rc-captured soset -ecan't short-circuit. - go-1.27 bridges. trivy 0.74.0 has exactly the two
json.SkipFuncsites the rewrite targets anderrors.ErrUnsupportedis the documented replacement; otel 0.159.0's manifest has areplaces:block and no swiss mention, and the pinned swiss pseudo-version carries the right build guard.
Findings
- Dead arm64 prebuilt branches —
glibc-bedrock-2.42/build.ncl,binutils-2.46-glibc/build.ncl,gcc-15.2.0-glibc/build.ncl: the innermatchsupplies an'Arm64prebuiltSource, but the outermatchcollapses arm64 to an emptyBuildSpec. Those Sources are never fetched and thebuild.shaarch64 blocks are unreachable. Harmless functionally (arm64 doesn't consume these), but the comments claiming "on aarch64 the prebuilt is extracted instead" are false. stage0-tcc-0.9.27-musl-s1/build.sh:38— on extract/cdfailure it copies/usr/bin/tcc-0.9.26to$OUTPUT_DIR/usr/bin/tcc-musland exits 0, so a failure mode installs a mislabeled binary that would be cached. Every other path in this PR fails shut; this one should too.- s1/s3 are retry-driven, not gated — they run under
set +ewith an env-layout perturbation loop (4–6 tries) and ship nostage0.answers. A first-try success is deterministic, but nothing pins that it happened. - Reproducibility seals are inert — most later rungs'
sha256sum -cgates are commented out /SEAL_FATAL=0,*.answersare# UNPINNED, and the six rustc rungs don't declare.answersas aLocaldep at all, so the seal check atrustc-1.95.0/build.sh:604is dead code. The PR body discloses pinning as a follow-up — this is just a request to track it somewhere concrete. packages/rustdiverges from the chain's own claims — unlike every rung it has no curl/wget/git stubs and no network tripwire, andbuild.nclstill declaresneeds = { dns, internet }, while the headline is "no recipe in the chain touches the network at build time." Either add the tripwire or state in the PR why the top-level package is deliberately exempt.- Comment drift —
rustc-1.94.1/build.ncl:3says its stage0 is "the rustc-1.94.1 package" (should be 1.93.1);binutils-2.46-glibc/build.ncl:3says "same sha as packages/binutils" but that package is now 2.47;glibc-bedrock-2.42/build.nclsimilarly vs glibc 2.44. - Nits — the "OutputBin's checker rejects the interpreter" rationale is inaccurate (
OutputBinonly special-cases shebang scripts, never ELF interpreters); thefind ./*/ -deleteclean-state blocks are safe only because everySourceisextract=false; a few import identifiers don't match package names (stage0-tcc-r2,stage0-cc,stage0-binutils-r10, …).
The ladder machinery is solid and the central claims hold. Findings 1–2 are quick fixes and 3–5 are worth addressing or explicitly waiving before this lands. Not blocking on my side, but I didn't want it to merge on a green CI + bot-skip alone.
|
Thanks for the careful read. Fixes for 1, 2, 4, 5, 6 and 7 are in b638f0a; 3 and part of 4 are waived below with the reasoning.
Note for the merge: the s1 and |
…t offline tripwire, seal answers declared, comment drift, package-name imports - stage0-tcc-0.9.27-musl-s1: an extract failure exits 1 instead of shipping tcc-0.9.26 as tcc-musl - glibc-bedrock-2.42 / binutils-2.46-glibc / gcc-15.2.0-glibc: the arm64 Source arm and the aarch64 build.sh block were unreachable (the outer match makes arm64 an empty spec); removed - rust: the rungs' curl/wget/git stub harness and NETWORK-TRIPWIRE check; `needs` dropped - rustc-1.91.1..1.96.0: the .answers file is a declared Local input, so the seal check can read it - comments: rustc-1.94.1's stage0 is 1.93.1; the -glibc trio no longer claims parity with the production binutils/glibc versions; OutputData rationale for the binutils programs - stage0 imports named after their packages instead of ladder-rung labels Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… so build.rs never calls git submodule The tripwire added in the previous commit fired on `git submodule update --init curl` from the vendored curl-sys build.rs: the rungs pre-empt that call with an empty .git marker in the bundled submodule dir. Same block, same rationale. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Follow-up 318d00c: the new |
The build failed on both arches in seconds:
error: rustc 1.97.1 is not supported by the following packages:
atuin@18.22.0 requires rustc 1.98.0
packages/rust is on 1.97.1; latest stable is 1.98.1. Bumping the Rust
toolchain rotates spec hashes for the 121 packages that import rust or go, and
packages/rust/build.ncl is also rewritten by the in-flight hex0 bootstrap work
(#667), so that bump wants to be a deliberate, scheduled change rather than a
side effect of a routine version sweep.
Dropping this one package lets the other six updates in this stack land. atuin
comes back with the Rust bump.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ess from it The builder ORs `needs` over a package's dependencies; the Rust programs that depend on rust fetch their crates during their own builds and were getting network through this flag. rust's own build stays offline: build.sh stubs curl/wget/git and fails on any attempt (NETWORK-TRIPWIRE). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
32d7df3 restores |
…0; rust stays 1.97.1, the attested chain's top)
…l still the 1.96.0 bundle)
…nfig_library (as packages/rust already does)
…ude-code bump)
- packages/go/build.ncl: keep main's hex0-bootstrapped, source-built shape (#667); bump it to 1.27.1 with the 1.27.1 source sha256 (verified against go.dev's published checksum and by hashing the tarball). The branch's prebuilt amd64 url/sha is obsolete under #667. - packages/otel-collector/build.sh: take main's Go-1.27 swiss pin; drop the branch's duplicate (main's guard exits if swiss is already pinned). - packages/trivy/build.sh (semantic conflict git didn't flag): keep this branch's upstream json/v2 patch (trivy dc3c56eed5, also handles json:",inline") and drop #667's sed SkipFunc bridge, which deliberately exits 1 when no json.SkipFunc is left, i.e. after the patch has run. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
croc >= 11.5.2 declares go 1.27.0; this branch last built against go 1.26 and failed. Main is now on go 1.27.0 (hex0-bootstrapped, #667), so the bump no longer waits on #758. No conflicts; vs main the branch still changes only packages/croc/build.ncl. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ak each other (gominimal#671) * fix(pnpm): depend on node, not node-lts — two npms in one sandbox breaks both pnpm only needs *a* node for its `#!/usr/bin/env node` shebang, but whichever one it names enters the closure of every package built with pnpm. `next` and `agent-browser` both declare `node` themselves, so each sandbox held TWO npm installs at the same paths. The sandbox hardlinks closure members first-writer-wins PER FILE, so /usr/lib/node_modules/npm came out a blend: minipass-flush/index.js from npm 11.17.0 (named `{ Minipass }` import) beside a nested minipass@3.3.6 from npm 11.11.1 (default export only). That tree never existed upstream and cannot load — `class Flush extends undefined` throws and every `npm install` dies. It broke `next` for two days and blocked gominimal#665, gominimal#667, gominimal#669 and gominimal#659. Verified: closure of next 75->74 and agent-browser 114->113 with node-lts gone, capy (the only other node-lts consumer) untouched; next, pnpm and agent-browser each build --rebuild clean and pass min check 15/15. Supersedes gominimal#670, whose fix was a no-op against node-lts's own output. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * refine: take only the node BINARY, not the whole package Review point from Bryan: pnpm should not be dictating a node version to its consumers at all. The spec language cannot express that today — RuntimeDep is BuildSpec | Subset | UpstreamPkg, all concrete, with no "consumer provides it" form — but `subsetOf` gets most of the way there. pnpm needs a node to interpret `#!/usr/bin/env node` and nothing else. Taking `subsetOf node ["node"]` instead of the whole package means pnpm can never contribute an npm tree to any closure, so the two-npms-merged-per-file failure is structurally impossible rather than merely absent from today's fleet. Residual, and worth stating: pnpm still names a version, so a future node-lts consumer adding pnpm would collide on the `node` binary. That is a much smaller failure than an unloadable module graph, and the real fix is a virtual/provided dependency in the spec language. Verified with the subset: next, pnpm and agent-browser all build --rebuild clean and pass min check, including pnpm's `missing runtime_deps` — which independently confirms the bare binary satisfies the shebang. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Update age to 1.3.2
* Update ast-grep to 0.45.3
* Update atuin to 18.22.0
* Update bash-completions to 2.18.0
* Update bash-language-server to 5.8.0
* Update bzip3 to 1.5.4
* Update chezmoi to 2.72.2
* Hold atuin at 18.19.0: 18.22.0 needs rustc 1.98.0, we ship 1.97.1
The build failed on both arches in seconds:
error: rustc 1.97.1 is not supported by the following packages:
atuin@18.22.0 requires rustc 1.98.0
packages/rust is on 1.97.1; latest stable is 1.98.1. Bumping the Rust
toolchain rotates spec hashes for the 121 packages that import rust or go, and
packages/rust/build.ncl is also rewritten by the in-flight hex0 bootstrap work
(gominimal#667), so that bump wants to be a deliberate, scheduled change rather than a
side effect of a routine version sweep.
Dropping this one package lets the other six updates in this stack land. atuin
comes back with the Rust bump.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: gominimal-pkgmgr-mgr[bot] <285843623+gominimal-pkgmgr-mgr[bot]@users.noreply.github.com>
Co-authored-by: bryan <bryan@minimal.dev>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Mirrors gominimal#727's go 1.26.6 -> 1.26.8. Both bumps exist for the same reason: the routine package sweeps have started landing upstream releases whose toolchain floor is above what we ship. pkgs#725 failed on error: rustc 1.97.1 is not supported by the following packages: atuin@18.22.0 requires rustc 1.98.0 atuin is held at 18.19.0 on that branch until this lands. 1.98.1 is current stable and one patch above atuin's floor. Source tarball mirrored to gs://minimal-staging-archives/rustc-1.98.1-src.tar.xz: downloaded from static.rust-lang.org, sha256 verified against the upstream .sha256 file (be1816e7...), uploaded, then re-read back out of the bucket and re-hashed to confirm the round trip. That matches the existing convention — the mirrored 1.97.1 object hashes to exactly the sha256 upstream publishes. Only the version and source hash change. pins with no version, and carries no version references, so nothing else in the recipe moves. Note for scheduling: this rotates spec hashes for the packages that import rust, and packages/rust/build.ncl is also rewritten by the hex0 bootstrap work in gominimal#667 — expect a conflict there whichever lands second. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…al#734) Every cold bun build on res-server-arm64 (c4a-standard-72) stalls at the same line — 'zig obj -> bun-zig.{0..71}.o' — and sits there with zero cache writes until the 6h watchdog kills the run. Three sandboxes, 2026-09-19/20/21, two of them on gominimal#667 (which rotates bun's spec hash via rust). amd64 with 144 shards completes in ~4 min. The fast arm64 'successes' in the run history are cache hydrations, not compiles. bun's local profile sets -Dllvm_codegen_threads=availableParallelism() (scripts/build/zig.ts codegenThreads); upstream CI never exceeds 8 shards and shipped releases use 1. Pin arm64 to 8 with the same sed+verify-grep pattern as the lol-html patch (gominimal#228). This PR's own build is the experiment: a cold arm64 bun build either completes, or hangs again and we capture the process tree live. Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…ea, openjdk-9..25) (gominimal#775) * jvm: bootstrap OpenJDK from source (jikes/jamvm/classpath root, icedtea, openjdk-9..25) Clean re-cut of bryan/jvm-ladder onto main d0b0026: only the ladder package directories, none of the stale pre-gominimal#667 chain that branch carried. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm: the base packages the ladder imports (zip, fastjar, which, ant-bootstrap, giflib, libICE/libSM/libXt) The clean re-cut carried only the rung directories; these eight are imported by classpath, ecj4-bootstrap, icedtea and the openjdk rungs and were left on the test branch. Sources are all mirrored in the staging bucket. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * which: keep main's 2.25 (the ladder only needs the package, not its 2.21 copy) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm: nickel format Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm: import aliases named after their folders minimal's imports checker requires a bare-word import alias to equal the folder it imports; dashed aliases follow the ghc-9-6-7 convention (dots become dashes). Variable references only; record keys and strings are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm rungs: pkgmgr freeze marker Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * giflib, fastjar: build in the sandbox giflib: build the library targets only; `all` also builds the utilities and runs doc/ through ImageMagick's convert, which the sandbox does not have. fastjar: the bundled 2008 config.guess/config.sub predate aarch64, so the modern GNU pair comes in as Sources (as libtecla does); zlib was an undeclared dependency. Both verified with a bare PATH on amd64 and arm64 lab VMs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm ladder: re-run the buildbot Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm ladder: re-run the buildbot with the upload retry deployed Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * zip: bzip2 is a build and runtime dependency unix/configure finds bzlib.h (bzip2 rides in through base at build time) and links -lbz2, so the binary needs libbz2.so.1.0 wherever it runs; classpath-0.93's sandbox had no bzip2 and `zip -r glibj.zip` failed to load. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm rungs: declare runtime_deps None of the rungs declared any. The lab VM is one filesystem, the sandbox is not: icedtea-7's configure ran classpath-devel's javah wrapper, which execs /usr/lib/jamvm-1.5.1/bin/jamvm, in a closure without jamvm-1.5.1. Each rung now names what its installed files exec or load: the VMs their class library and libz (libffi for jamvm-2.0.0), the Classpath tool wrappers and ecj javac wrappers their VM and class library, the JDKs libz. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jvm rungs: sysroot link flags before the caller's arguments OpenJDK's freetype_versioncheck link line carries its own -Wl,-rpath,/usr/lib; with the wrapper's flags appended after it, /usr/lib came first in RPATH and the sysroot's ld.so loaded the system libc.so.6 (symbol lookup error: __pointer_chk_guard, GLIBC_PRIVATE). The lab VM has no /usr/lib/libc.so.6, so it never showed. The wrapper now puts its -L/-B/--dynamic-linker/-rpath flags ahead of the arguments. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * mrustc: restore main's build.sh (touched by the wrapper reorder glob by mistake) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * icedtea, openjdk rungs: compile C as gnu17 gcc 15 defaults to C23, where hotspot's serviceability agent (`typedef int bool;` in agent/src/os/linux/libproc.h) no longer compiles; the lab's gcc 14 defaulted to gnu17. The Classpath and jamvm-2.0.0 rungs already pinned it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * icedtea-8, openjdk rungs: rename hotspot's uabs glibc 2.42's <stdlib.h> declares `unsigned int uabs(int)`; hotspot's inline overloads of the same name (utilities/globalDefinitions.hpp) then fail to compile against the bedrock sysroot. Rename hotspot's to hs_uabs after unpacking; the openjdk rungs apply the same rename conditionally, as a no-op where their hotspot has none. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * openjdk-23..25: the uabs rename too (these rungs apply no patches, so the anchor differs) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * openjdk rungs: gnu17 and a warning demotion in the JDK's own CFLAGS The wrapper's -std=gnu17 does not survive the JDK's flag handling for libnet's gio shims (K&R `()` prototypes, "too many arguments" under gcc 15's C23), so it goes into --with-extra-cflags, which the JDK appends last. jtreg's libTestJNI.c trips gcc 14's incompatible-pointer-types error; it is a warning again. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * openjdk rungs: --with-build-user=minimal The sandbox runs as a uid with no passwd entry, so `whoami` fails; JDK 21+'s configure refuses an empty build user ("Value cannot be empty"). Naming it also keeps the recorded build user identical between the lab and the sandbox. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * openjdk-24, 25: make images, not all JDK 24 added a static-launcher target to `all`; it links the launcher statically and fails against the versioned sysroot. The rung ships the jdk image only. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jdk rungs: runtime_deps from an audit of the installed trees bin/runtime-deps-audit.py (minimermetic) walks every ELF's DT_NEEDED/PT_INTERP and every script's exec targets and resolves them against the declared runtime closure. On the lab rehearsal trees the JDK images load the X libraries, alsa, fontconfig, lcms2, freetype, libpng, giflib and libjpeg from AWT, sound, font and image code; jikes' interpreter is the sysroot's ld.so. All were build deps only. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * openjdk-15..22: libawt_xawt loads libXcursor too (audit) Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * jdk rungs: address CR review (BUILDINFO newline, dead flags/deps, orphan patches) - openjdk-9..25: BUILDINFO heredoc wrote a literal "\n" between the source and boot fields; split it onto its own line. - jamvm-1.5.1: drop --enable-runtime-reloc. 1.5.1's configure.ac only defines runtime-reloc-checks and its autoconf-2.61 configure ignores unknown options silently, so the flag never did anything (JVMFLAGS passes -Xnoinlining, so reloc mode is moot anyway). - openjdk-23..25: drop the libxcursor build dep; these rungs do not apply the xcursor-no-dynamic patch, so nothing links it. - openjdk-15/16: remove three classlist patches build.ncl never applies. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * jvm ladder: drop duplicate gawk/diffutils deps; trim jikes narration - all 17 openjdk rungs listed gawk and diffutils twice in build_deps. - jikes-1.22: replace the lab-notebook banner and private-infra references with the classpath-0.93-style header. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * openjdk rungs: stop re-setting SOURCE_DATE_EPOCH 9-14: the export was a no-op (nothing under make/ in 12/13/14 reads it), so drop it. 15-25: pass configure's own --with-source-date=315532802 (jmod rejects the sandbox's pre-1980 0) instead of overriding the sandbox variable, the nspr pattern pkgs' CLAUDE.md asks for. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: report why the bedrock gcc does not run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: run the bedrock toolchain against the sysroot's libc The B5 gcc and B4 binutils have no RUNPATH; their loader is the sysroot's ld.so, which searches /usr/lib and found production glibc 2.44 there (symbol lookup error: __pointer_chk_guard, GLIBC_PRIVATE). Wrap every executable that loads through that ld.so with LD_LIBRARY_PATH=$SR/lib and put the wrappers first on PATH. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: no trace for the wrapper scan; list the wrapped tools Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: print config.log's tail when configure fails Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: print the failing compiler test from config.log Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: assemble and link with production binutils The sealed binutils-2.46-glibc and production binutils 2.47 both put libsframe.so.3 in /usr/lib; whichever wins, as from one loads the other's library and aborts (stack smashing). Production binutils is consistent with the production glibc it runs on; the bedrock gcc keeps its sysroot-libc wrapper and still links against the 2.42 sysroot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: production as and ld run without the sysroot library path The bedrock gcc wrapper exports LD_LIBRARY_PATH for gcc and its cc1; the production as it spawned inherited it, loaded the 2.42 libc and aborted. Give as/ld wrappers that unset it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: point the bedrock gcc drivers at the wrapped as/ld with -B gcc looks for as in its own tool dirs before PATH and found an unwrapped copy, which inherited the sysroot library path and aborted. -B is searched first, for the driver and for collect2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: on configure failure, report which as gcc runs and how each loads Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jikes-1.22: bind the sysroot libc per process, not through the environment LD_LIBRARY_PATH leaked from the bedrock gcc into the production /bin/sh and as it ran, which then aborted on the 2.42 libc. Start each bedrock program (drivers, cc1, cc1plus, collect2, lto1) through the sysroot's ld.so with --library-path; the drivers find the wrapped internals via -B. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder: run the bedrock gcc against its sysroot libc, link with production binutils On main the amd64 bedrock roots are sealed tarballs and /usr/lib holds production glibc 2.44. The B5 gcc has no RUNPATH, so its 2.42 loader picked up the 2.44 libc and nothing ran. Every rung now starts each bedrock program through the sysroot's ld.so with --library-path (per process, so the production as, ld and /bin/sh it runs keep their own libc), and assembles and links with production binutils 2.47 instead of the sealed 2.46, whose libsframe.so.3 collides with 2.47's in /usr/lib. Proven on jikes-1.22 in the sandbox. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…reaker from one generation (gominimal#1242) * ghc: bootstrap GHC from source (hc-boot 7.6.3 root, ladder to 9.10.3 on amd64) Clean re-cut of bryan/ghc-ladder onto main d0b0026: only the ladder package directories, none of the stale pre-gominimal#667 chain that branch carried. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ghc: nickel format Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ghc rungs: pkgmgr freeze marker Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ghc ladder: re-run the buildbot Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ghc ladder: root 7.6.3 in a from-source lineage (amd64) microhs-0.16 -> ghc-4.08.2 -> ghc-5.04.3 -> ghc-6.6.1 -> ghc-6.10.4 -> ghc-7.0.4 -> ghc-7.6.3. MicroHs ships its compiled form as portable C, so gcc alone yields a Haskell compiler; GHC 4.08.2's compiler runs on it (first-party overlay: desugared modules, shims, patches, tests), compiles itself to C, and each later GHC is booted by the one before. ghc-7.6.3 is now built from source by 7.0.4 (registerised) and keeps the install layout 7.8.4 consumes; the .hc bundle Source is gone. All rungs use the bedrock gcc/binutils/glibc through a sysroot gcc wrapper; every Source is in gs://minimal-staging-archives. Rehearsed on a lab VM: the lineage and the unchanged 7.8.4..9.6.7 rungs on top of it all build and pass their gates. arm64 sides remain stubs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * microhs-0.16: one prefix output (src/runtime, mhs.conf ship too); amd64 only like the other rungs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * microhs-0.16: patch is a build dep Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: arch-aware toolchain for every rung; aarch64 lineage x86_64 rungs keep the bedrock sysroot wrapper; aarch64 rungs compile with the toolchain gcc. microhs..7.0.4 gain aarch64 configure/driver patches, the hand-passed triple for pre-2010 config.guess, and libffi 3.5.2 where the bundled one has no aarch64 port. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: aarch64 treatments for 7.6.3..9.2.8 Platform tables and checkArch, libffi, gold via --with-ld.gold, unregisterised builds through 8.10.7, the boot compiler's RTS headers first, lld for the registerised 9.2.8 link, and genapply built against the target's registers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc: boot from the ghc-9.6.7 ladder rung on both arches ghc-bootstrap leaves the closure; hadrian bootstraps from hadrian-bootstrap-sources-9.6.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc lineage: give aarch64 a cc MicroHs invokes cc; the aarch64 toolchain ships gcc only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-4.08.2: larger MicroHs heap for the gen1 parsers and Lex The happy-generated parsers and Lex collect garbage constantly in the default 50M-cell heap. 600M cells gives byte-identical .hc about 3x faster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-4.08.2: compile the libraries and gen1 in import order, in parallel dagbuild.py starts a module once its imports have compiled, largest remaining work first, instead of the overlay's retry rounds (std and lang ran one module at a time; gen1 serialized Parser and ParseIface behind a round barrier). The per-module commands are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: re-run the ladder (watchdog idle limit is now 6 h, build-servers#364) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc lineage: check installed trees for the build tree's paths, not a bare build root In the sandbox the build root is /build, so grepping for it matched GHC's foldr/build rewrite rule in sources, interfaces and docs. 4.08.2, 5.04.3, 6.6.1 and 6.10.4 now look for their own tree and bin paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-4.08.2: overlay repacked without macOS xattrs The overlay was packed on macOS, so every member carried a com.apple.provenance pax header and GNU tar warned once per file. v2 holds the same tree (contents, modes, links), packed deterministically with GNU tar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc lineage: rewrite installed paths only in files that hold them, NUL-separated In the sandbox the build root is /build, so selecting files by a bare build-root grep matched far more than the tree's paths, including 5.04.3's "ghc/InstallShield/Setup Files/...", which xargs split at the spaces. Select by the tree, bin and boot paths with grep -F, and pass names with -Z / xargs -0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-6.6.1, 6.10.4: drop symlinks left dangling by the install's pruning 6.6.1 deletes compiler/stage1, so compiler/ghc-inplace -> stage1/ghc-inplace dangled and the sandbox rejected the output (link outside the output dir). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-6.10.4, ghc-9.6.7, ghc: sandbox fixes found by auditing against the sandbox's rules - 6.10.4 (aarch64): libffi 3.5.2 builds in a per-subdir build/ tree, so build/*/ expanded to several dirs and the sandbox's bash cd rejected them (Debian's dash took the first). Name the host dir; fail if cd fails. - 9.6.7 (aarch64): the ghc-9.2.8 boot's settings link with ld.lld; add llvm to the arm build closure (the lab had lld from apt). - ghc (aarch64): the same for its 9.6.7 boot, configured with --disable-ld-override so the shipped settings do not need lld, and checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-6.10.4: print the build log's tail when make fails buildbot keeps only the last ~4 KiB of stderr, and the bootstrapping.conf failure's message matched none of the grep patterns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-6.10.4: take hsc2hs from the boot tree The bootstrapping Cabal needs hsc2hs for hpc and looks it up on PATH; the sandbox has none. Use the 6.6.1 rung's in-tree hsc2hs-inplace. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-6.10.4: libffi headers where the rts looks; a C++ preprocessor for libffi's libtool aarch64: libffi 3.5.2 builds in build/<host>/, but rts/Makefile adds -I../libffi/build/include; copy ffi.h and ffitarget.h there too. x86_64: libffi 3.0.8's libtool sanity-checks a C++ preprocessor; bare g++ -E lacks the sysroot and the sandbox has no /lib/cpp. Use the gcc wrapper with -x c++. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-7.0.4, 7.6.3, 7.8.4: configure without libbfd These configures probe bfd.h, libiberty and libbfd unconditionally. The sandbox closure has binutils' bfd.h, which then breaks the debug rts (bfd.h insists on config.h first), and the lib probes would add -lbfd -liberty to every link. Pin the three results to no. 7.10.3+ probe only under --enable-bfd-debug. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-7.0.4: on x86_64, report the make log before the first failure build.sh's error grep misses the compiler's message for ghctags, and the sandbox returns only ~4 KiB of stderr. Wrap build.sh on x86_64 only and print the 22 lines before make's first "] Error". aarch64's spec is unchanged, so its built rungs stay cached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc: keep lld out of the shipped settings on aarch64 through hadrian install hadrian install runs the bindist's configure without our flags, and it picked ld.lld from the build closure. Export enable_ld_override=no (the environment form of --disable-ld-override) so both configures see it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: run the bedrock gcc against its sysroot libc, link with production binutils Same fix as the jvm ladder (pkgs#775): with the amd64 bedrock roots sealed and production glibc 2.44 in /usr/lib, the bedrock gcc (no RUNPATH) cannot start. On x86_64 each rung starts every bedrock program through the sysroot's ld.so with --library-path (per process; the drivers find the wrapped cc1/collect2 via -B), and assembles and links with production binutils 2.47 instead of the sealed 2.46. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: regenerate the sysroot's libm.so linker script too The bedrock sysroot's libm.so is a linker script naming /usr/lib/libm.so.6, which in the sandbox is production glibc 2.44's. -lm therefore bound 2.44 symbol versions (mhs: GLIBC_2.43 not found at run time against the 2.42 sysroot). Rewrite it into fixlib next to libc.so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: rebuild (the previous run was cancelled when it started) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: rebuild (previous run cancelled for other merges) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder (x86_64): the sysroot's iconv modules for GHC's text encodings ghc-stage2 (7.0.4) failed with mkTextEncoding: invalid argument. The bedrock sysroot's libc looks for its gconv modules in /usr/lib/gconv, which in the sandbox holds production glibc 2.44's. On x86_64, 7.0.4's build-with-context.sh and a new amd64-env.sh entry point for 7.6.3 through 9.6.7 export GCONV_PATH to the sysroot's own modules. aarch64 specs are unchanged, so its built rungs stay cached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: jikes, classpath-0.93, jamvm-1.5.1 The first three rungs get an aarch64 spec next to the x86_64 one, which is unchanged (same spec hashes). On aarch64 each builds with the toolchain gcc against the system glibc through build-aarch64.sh, derived from build.sh: SR=/usr and the system loader instead of the bedrock sysroot, no per-process loader wrappers, and config.sub / config.guess refreshed from automake (the tarballs predate aarch64). JamVM has no aarch64 port upstream; jamvm-1.5.1 applies Simon South's (2020, carried by Guix) and regenerates its build system. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: ant, ecj, classpath-0.99, classpath-devel, jamvm-2.0.0, ecj4 Same treatment as the first three rungs (x86_64 spec hashes unchanged). jamvm-2.0.0 adds Simon South's aarch64 port ahead of the two Guix fixes it already carries, and regenerates its build system. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: icedtea-7, icedtea-8 icedtea-7's HotSpot drop already carries the AArch64 port; aarch64 adds Guix's c++98 patch for sharedRuntime_aarch64.cpp. icedtea-8 drops the duplicate call_VM_leaf_base using-declaration in interp_masm_aarch64.hpp that gcc 11+ rejects (Guix's patch-for-aarch64). x86_64 specs unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: openjdk-9 through openjdk-25 Same treatment as the earlier rungs (x86_64 spec hashes unchanged, checked for all 17). OpenJDK knows aarch64, so no config.sub refresh; each aarch64 build drops the duplicate call_VM_leaf_base using-declaration in interp_masm_aarch64.hpp where a release has it (gcc 11+ rejects it; Guix's patch-for-aarch64). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: declare aarch64 endianness in classpath's fdlibm ieeefp.h predates aarch64 and fails with 'Endianess not declared'; classpath-0.93/0.99/devel add the __aarch64__ case on aarch64 (Guix's classpath-aarch64-support.patch, inserted with python3 since the rungs carry no patch tool). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: icedtea-7 renames HotSpot's uabs glibc 2.42+ declares uabs(int) in <stdlib.h>, which collides with HotSpot's own overloads in the aarch64 build; rename them to hs_uabs as icedtea-8 already does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: bundled libpng without NEON On aarch64 the bundled libpng enables its ARM NEON paths, but the JDK build never compiles libpng's neon sources, so libsplashscreen fails to link (png_init_filter_functions_neon). Prepend PNG_ARM_NEON_OPT=0 to every bundled pngpriv.h in icedtea-7/8 and openjdk-9..25 on aarch64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder on aarch64: no -XX:UseAVX=2 for openjdk-10/11 The x86_64 recipes pin the boot JVM to AVX2 against an AVX-512 miscompile; the option does not exist on aarch64, so every java step of the build failed. Drop it from the aarch64 recipes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jvm ladder: nickel formatting for the aarch64 specs mip check --fix; spec hashes unchanged on both arches. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jdk-25, jdk-21: build OpenJDK from source on the JVM ladder instead of shipping Temurin Same upstream tags Temurin builds from (jdk25u jdk-25.0.4.1-ga, jdk21u jdk-21.0.12.1-ga), booted by the openjdk-25 / openjdk-21 rungs and compiled by the production toolchain on both arches. Same /usr/lib/jvm layout, outputs and tests; CDS archives and src.zip are left out because they do not reproduce. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * jdk-25, jdk-21: drop --enable-reproducible-build (gone from JDK 25's configure; --with-source-date implies it) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * openjdk-26 rung; jdk-27 from source on the JVM ladder instead of Temurin openjdk-26 (jdk26u jdk-26.0.2.1-ga) is the openjdk-25 rung moved up one, booted by openjdk-25 on both arches. jdk-27 (jdk27u jdk-27-ga, Temurin's jdk-27+35) is booted by it, same recipe as jdk-25. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * openjdk-26 (amd64): libsplashscreen without LTO; lto-wrapper runs the bedrock gcc outside its loader wrapper Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder (x86_64): take the glibc-bedrock-2.42 sysroot via gominimal#941's collection On amd64 the whole glibc-bedrock-2.42 brings its plain /usr tree, a full glibc 2.42 that collides with production glibc 2.44 path for path; whichever lands first wins (pkgs#895's GLIBC_2.43 failure). The rungs now import glibc-bedrock-2.42-sysroot, which carries only usr/lib/glibc-bedrock-2.42/{lib,include}: in cc_build in place of the bare bedrock, in cc_runtime in place of the sysroot_lib subset, and in ghc's amd64 boot list. arm64 spec hashes are unchanged (the rungs never import the bedrock there); amd64 rebuilds 15 of the 16 GHC-ladder specs. Replaces gominimal#939. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * amd64 toolchain roots: linux_headers, binutils and gcc from bootstrap gen-1 The amd64 prebuilts of linux_headers, binutils (and binutils-2.46-glibc) and gcc (and gcc-15.2.0-glibc) now point at gen-1 of gominimal/bootstrap in gs://minimal-bootstrap: built from the hex0 seed, every package reproduced byte for byte on two independent machines (AMD EPYC and Intel), and checked against the published manifest after upload. Against the gen-0 tarballs they replace, file by file: - linux_headers: all 2050 entries identical. - binutils-2.46-glibc: the same 193 entries; libraries, scripts and headers identical, the 46 programs rebuilt by gen-1's gcc. - gcc-15.2.0-glibc: the same 1782 entries; 73 differ (the compilers and runtime libraries). glibc stays on gen-0: glibc's cycle-breaker takes the top-level usr/lib libraries and crt objects from the bedrock tarball, and gen-1's glibc-bedrock-2.42 ships only its declared outputs (the versioned sysroot). arm64 is unchanged (0 spec hashes move); amd64 rebuilds 564 of 624. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc ladder: document the trust root; no host-GHC fallback; amd64 sysroot guard; cost weights Review fixes for gominimal#774: - microhs-0.16 / ghc-4.08.2 build.ncl: state what the chain starts from (MicroHs's generated mhs.c; the 4.08.2 overlay's pre-desugared D/, the happy-generated Parser.hs/ParseIface.hs and seed parsers, never regenerated or compared), and the 7.6.3 diverse-roots mitigation. - ghc-4.08.2 build.ncl: why build.sh uses an x86_64 triple on aarch64 (unregisterised C; the triple only selects 64-bit LE layout). Kept out of build.sh, which is a hashed input. - 8 rungs: replace the stale "amd64 only" header with the real arch split. - build_cost_multiple on microhs-0.16 and ghc-4.08.2..7.0.4, scaled from run 71b01d25's measured times against the existing rungs. Attrs do not change spec hashes. - ghc/build.sh: fail instead of falling back to a ghc on PATH; drop the stale 9.8.1 bindist note; add the amd64 twin of the arm64 lld check (no shipped settings, ELF interpreter, RPATH or RUNPATH may name /usr/lib/glibc-bedrock-2.42). Only ghc/build.sh is a hashed input here: no ladder rung rebuilds (ghc and its 5 consumers do). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * amd64 roots: gen-3, and glibc linux_headers, binutils and gcc move from gen-1 to gen-3's names (the same artifacts: gen-3's amd64 rebuild reproduced them byte for byte). glibc (and glibc-bedrock-2.42) now flips too: gen-3's glibc-bedrock-2.42 carries its top-level usr/lib libraries and crt objects, which glibc's cycle-breaker reads, in gen-0's 4087-entry layout. arm64 is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * toolchain roots from bootstrap gen-4 on both arches amd64 moves from gen-3 to gen-4; the objects are the same bytes, re-listed under the new generation. arm64 leaves the July bedrock tarballs: linux_headers, binutils, glibc and gcc now pin gen-4, where arm builds its own kernel UAPI headers and the toolchain roots install at /usr like the slots they replace. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * go: bootstrap from gen-6's go-1.24.9 on both arches; the ladder leaves pkgs go-1.24.9 is the gen-6 tarball of gominimal/bootstrap, where the Go ladder (go-1.4 to 1.24.9 on amd64, gccgo-15.2.0 to 1.24.9 on arm64) was built from source on the hex0-rooted toolchain and reproduced byte for byte on two independent machines per arch. It replaces both the amd64 ladder rungs (go-1.4, go-1.17.13, go-1.20.14, go-1.22.6 removed) and arm64's hand-sealed bedrock GOROOT tarball; build.sh already took /usr/lib/go-1.24.9 first. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ghc-9.6.7: the gen-7 prebuilt from gominimal/bootstrap; the ladder below it leaves pkgs ghc-9.6.7 is now a prebuilt Source on both arches, the ghc-9.6.7 published in gen-7 (built there on the hex0-rooted toolchain and reproduced on two independent machines per arch). microhs-0.16 and the twelve rungs ghc-4.08.2 .. ghc-9.2.8 are removed; only ghc-9.6.7 imported them. The ghc 9.10.3 recipe is unchanged apart from comments: it still boots from /usr/lib/ghc-9.6.7 and keeps its sysroot and lld checks. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * rustc-1.98.1: the gen-8 prebuilt from gominimal/bootstrap; the Rust ladder below it leaves pkgs rustc-1.98.1 is now a prebuilt Source on both arches, the rustc-1.98.1 published in gen-8 (built there on the hex0-rooted toolchain from mrustc and reproduced on two independent machines per arch). mrustc, mrustc-rustc-1.90.0 and rustc-1.91.1 .. rustc-1.97.1 are removed; only the next rung imported each. `rust` is unchanged apart from comments: it still boots from /usr/lib/rustc-1.98.1. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * rustc-1.98.1: the arm64 object's published name Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ocaml: boot from ocaml-5.5.2 as published in bootstrap gen-9 (camlboot ladder), not the tarball's boot/ocamlc A new prebuilt package ocaml-5.5.2 on both arches; ocaml/build.sh deletes the shipped bytecode and copies the gen-9 compiler's ocamlc.byte and ocamllex.byte into boot/ before the stock world.opt. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ocaml: nickel format Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * bootstrap pins -> gen-11: every root, ladder top and userland cycle breaker from one generation 75 pins in 39 packages now name gominimal/bootstrap gen-11 objects (generations/gen-11/manifest.json): 57 flipped to a new sha, 18 relisted under the gen-11 url with the sha unchanged. - 25 userland cycle breakers (acl attr bash-bootstrap bison bzip2 coreutils diffutils file findutils gawk-bootstrap gmp grep gzip libcap lz4 m4 make mpc mpfr pcre2 sed tar xz zlib zstd), both arches: replace_on_cycle Sources move off the bedrock prebuilts in staging-archives. - 4 toolchain roots (linux_headers binutils gcc glibc), both arches, plus the amd64-only binutils-2.46-glibc gcc-15.2.0-glibc glibc-bedrock-2.42 aliases: amd64 and arm64 binutils/glibc/headers relist, arm64 gcc flips. - 7 ladder tops (ghc-9.6.7 go-1.24.9 ocaml-5.5.2 openjdk-21/25/26 rustc-1.98.1): amd64 relists, arm64 flips. Pin comments collapse to one line naming the generation; header comments in the ladder tops and their consumers (ghc go ocaml rust) name gen-11 instead of the generation each was first pinned at. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * gcc (prebuilt): carry glibc's bedrock sysroot slice at runtime; the seed's loader lives there The amd64 seed gcc's interpreter and RUNPATH name /usr/lib/glibc-bedrock-2.42/lib. In a cycle pass that pairs the seed with a from-source glibc (nginx), nothing else supplies that tree and gcc cannot exec: "C compiler gcc is not found". The glibc seed ships the tree as its bedrock_sysroot_lib output; the gcc seed now depends on exactly that A36E subset, so nothing at top-level /usr/lib collides. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * gcc (prebuilt): take the loader tree from the standalone bedrock sysroot package In the cycle pass `glibc` resolves to whichever glibc that pass holds, and the from-source one has no bedrock_sysroot_lib output, so the subset could name nothing. The glibc-bedrock-2.42-sysroot package is the pinned tree itself, with no cycle through gcc, as go-1.24.9 and the JDKs use it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * bootstrap pins -> gen-12: the validation rebuild of the polished tree 113 of 117 objects are the same bytes as gen-11, so most pins change url only; go-1.24.9 (amd64) moves to a new sha (its BUILDINFO text changed). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ci: retrigger the build-bot (no-op; the run on 75050e9 was cancelled) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * bootstrap pins -> gen-13; drop the bedrock-loader workarounds the self-contained gcc seed retires Every gominimal/bootstrap pin moves from gen-12 to gen-13. gen-13's amd64 gcc-15.2.0-glibc seed is installed with PT_INTERP /usr/lib/ld-linux-x86-64.so.2 and no RUNPATH (bootstrap a6bef0c), so it no longer needs /usr/lib/glibc-bedrock-2.42/lib at run time. Removed: - gcc (prebuilt): the glibc-bedrock-2.42-sysroot runtime dep, its comment and import. - glibc (prebuilt): the bedrock_sysroot_lib output and its comment; outputs are all_outputs again. - go-1.24.9: runtime_deps are [glibc] on both arches. The amd64 go is built with cgo off and has no interpreter. Kept: glibc-bedrock-2.42-sysroot on amd64 for openjdk-21/25/26, ghc-9.6.7 and ghc. Their published amd64 binaries are byte-identical to the earlier generations and were linked with --dynamic-linker set to the bedrock loader and an rpath into the sysroot, and ghc-9.6.7's ghc-cc compiles against that sysroot. The JDK recipes now say so in a comment. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * ci: re-run the gen-12 build after the build-bot reboot (no-op) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: re-run after the artifact handoff failed on arm64 (infra, build-servers#292); every package built Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * Split the from-source jdk-21/25/27 out of this PR; standalone tests for the bootstrap prebuilts - jdk-21, jdk-25, jdk-27: back to main's recipes (Temurin with the CVE-2026-111943 step and test, jdk-27 at 27.0.1.0.2). The from-source builds move to their own PR. - openjdk-21/25/26, ghc-9.6.7, ocaml-5.5.2, go-1.24.9, rustc-1.98.1: a standalone version test each, run from the package's own runtime closure. - ghc-9.6.7: arm64 declares llvm at runtime; its settings name ld.lld. - go: bootstrap only from the go-1.24.9 rung; the ./go and bindist fallbacks are gone. - gcc-15.2.0-glibc: drop a stale reference to the JVM ladder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ghc-9.6.7: compare the version in the shell; the test root has no grep Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * rustc-1.98.1 stays the gen-13 prebuilt, on llvm-21; rust reaches its stage0's libLLVM through LD_LIBRARY_PATH The merge of main (llvm 23 default, LLVM 21 frozen as llvm-21) deleted this directory with the retired ladder rungs; the prebuilt is restored. Its librustc_driver needs libLLVM.so.21.1 with only an $ORIGIN/../lib RUNPATH on both arches, so the stage0 depends on llvm-21 and rust's build.sh exports the path to it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * rustc-1.98.1: the version test names llvm-21's library path Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
rust + go: bootstrap both toolchains from source, starting at hex0
packages/rustandpackages/gocurrently start from a downloaded binary compiler (rust's stage0 snapshot from static.rust-lang.org, go's bootstrap toolchain from go.dev). This PR replaces both with chains of in-tree packages that begin at the 229-bytehex0seed and end at the compilersrustandgobuild with today. No recipe in the chain touches the network at build time.What is in the PR
38 new packages, 4 modified. They form four ladders plus two flips.
stage0-*, amd64):hex0 → hex1 → kaem → mes → mescc → tcc 0.9.26 → tcc 0.9.27 → musl 1.1.24 → binutils 2.30 → gcc 4.0.4 → gcc 4.7.4 → gcc 10.4.0 → gcc 15.2.0, withgmp-mpfr-mpc,linux-headers,binutils-2.41,musl-1.2.5and three tcc/musl relink steps (-s1/-s3/-s4) as the intermediate rungs. Each package builds only with what the previous rung installed. The early rungs arekaemscripts (*.kaem), the rest arebuild.sh.glibc-bedrock-2.42,binutils-2.46-glibc,gcc-15.2.0-glibc(C and C++). Built by the top of the stage0 ladder, installed under versioned prefixes (/usr/lib/glibc-bedrock-2.42, …) so they never collide with the distro toolchain. Every binary they produce is linked with an explicit dynamic linker and rpath into that prefix.mrustc(pinned upstream commit plus a patch series for aarch64 and shared-library builds, each patch documented in its header) buildsmrustc-rustc-1.90.0(rustc 1.90.0 + cargo + std). From thererustc-1.91.1 → 1.92.0 → 1.93.1 → 1.94.1 → 1.95.0 → 1.96.0, each rung a standard./x.py buildwhose stage0 is the previous rung's install prefix. Each rung installs to/usr/lib/rustc-<version>and ships a functional gate (compile and run a program that exercises generics, trait objects, unwinding, TLS, proc-macros and cargo; the pass value is computed, never a literal).go-1.4(C-only root, built with the glibc-hosted gcc)→ go-1.17.13 → go-1.20.14 → go-1.22.6 → go-1.24.9, each using the previous rung asGOROOT_BOOTSTRAP.packages/rust: stage0 is now therustc-1.96.0rung (bootstrap.toml [build] rustc/cargopoint at its prefix, so x.py skips the snapshot download); the seed tarball Sources and the download fallback are gone, the stage0 is asserted by--versionbefore the build starts, and cargo runs withCARGO_NET_OFFLINE=true. Runtime deps a 8000 nd outputs are unchanged.packages/go: bootstraps fromgo-1.24.9on amd64 and from the sealed arm ladder artifact on arm64; the go.dev bindist Source is gone and a missing bootstrap is fatal. Version moves 1.26.6 → 1.27.0, which needed two small source bridges inotel-collectorandtrivyfor go 1.27 API removals.hex0is the single binary trust root: a sha-pinned Source (amd64 seed and the sealed aarch64 seed).How to review it efficiently
rustc-1.93.1,go-1.20.14,stage0-musl-1.1.24) anddiff -rit against its siblings; the diffs are a few lines each.packages/rustc-*/build.sh(and, for stage0 pinning,packages/rust/build.sh): (a) stage0 pinning viabootstrap.toml, asserted at start by--versionand--print sysrootagainst the expected prefix; (b) the rungs' offline harness: network tools on PATH replaced by stubs that exit non-zero,CARGO_NET_OFFLINE=true, and empty.gitmarkers inside vendored*-syscrates so theirbuild.rsnever runsgit submodule update.OutputDataglob). Ladder packages that legitimately ship ELF files as data (loaders, crt objects, musl's emptycrti.o) useallow_executable/allow_dataexplicitly.rustandgoon arm64 consume the sealed arm-ladder artifacts as pinned Sources; the arm64 rust rungs above 1.90 are not built from source yet and are the next tranche.Build cost
Ladder rungs take minutes each;
mrustc-rustc-1.90.0about an hour; each rustc rung 30 to 60 minutes;rustandgoabout an hour each. Cold, the whole chain is roughly a day of sequential build time; with a warm artifact cache only changed links rebuild. Byte-seal.answersfiles are present but unpinned; pinning is a data-only follow-up once each rung has two identical cold builds.Follow-ups (not in this PR)
attrsmetadata (license_spdx,upstream_version) for the stage0 and rung packages.-s1/-s3/-s4inputs as pristine source plus patch files instead of prepared tarballs.