Repository navigation
ghc ladder (x86_64): take only the glibc-bedrock-2.42 sysroot slice, through runtime_deps - #939
bryan-minimal wants to merge 2 commits into
Conversation
…d time
Same hazard pkgs#937 fixes for the JVM ladder. glibc-bedrock-2.42 is
prebuilt, and a prebuilt lands its whole tarball, which ignores the
output globs. That tarball holds a complete glibc 2.42 at /usr/lib
besides the versioned sysroot. When two deps ship the same path, the
sandbox keeps the one whose spec hash sorts lowest. Production glibc
(15dae0..) currently sorts below glibc-bedrock-2.42 (3ae053..), so the
rungs build. A glibc rehash that sorts above it would put libc 2.42 at
/usr/lib and break every production tool in the build (GLIBC_2.43 not
found).
microhs-0.16, ghc-4.08.2 through ghc-9.6.7, and ghc's amd64 boot now
take subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"] as the
build dep. The build scripts only use /usr/lib/glibc-bedrock-2.42/
{lib,include}. Runtime deps already took the sysroot_lib slice. The
arm64 spec hashes do not change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a build-dep subsetOf A subsetOf in build_deps panics the builder. SpecBuild::build_deps_mapped (minimal crates/op/src/specs.rs) skips only BuildDep::Build and hits todo!() on BuildDep::Subset. This is the panic pkgs#937 got on build-bot (run aa4add24, "not yet implemented: input: Subset(...)"). A spec's own runtime_deps are mounted in its build sandbox (Transitives::new starts from them). So each rung now drops glibc-bedrock from build_deps and takes subsetOf glibc-bedrock ["sysroot_lib", "sysroot_include"] in runtime_deps: - microhs-0.16 through ghc-7.0.4 widen their existing sysroot_lib slice. - ghc-7.6.3 through ghc-9.6.7 had no runtime_deps; they gain the slice (x86_64 only). - ghc gets the slice through its ghc-9.6.7 boot. No ladder package keeps a bare glibc-bedrock-2.42 anywhere in its closure. A bare reference would widen the slice back to the whole tarball, because Transitives::upsert unions to the full build. The arm64 spec hashes are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
There was a problem hiding this comment.
The change looks right, but there's no completed build. The only check, minimal build, was cancelled after 1.5 min, and the PR body says "Untested until this build". The base is #774's branch, so minimal-check, closure, reports and CodeRabbit didn't run either. Please get a full build on both arches before this goes into #774.
On the code:
- No second glibc reaches users. Each rung pulls the previous one only via
build_deps, andpackages/ghc/build.ncl'sruntime_depsare unchanged. The slice lives at the versioned path, and the rung binaries really do use$SR(loader and rpath), soruntime_depsis the honest place for it. - arm64 is unchanged, with
runtime_deps = []from 7.6.3 up, consistent with yourmip dump --arch arm64diff. - libm and gconv are covered by the existing fixlib
libm.sorewrite andGCONV_PATH=$SR/lib/gconv, both of which sit inside the slice. - The slice holds only 9 relative same-directory
.sosymlinks, so subset copying should be fine. #941's green build is partial evidence of that.
Once #940 lands and reaches #774's branch, bare imports of the bedrock become safe, so this is defence in depth rather than a fix. It's worth deciding whether its full amd64 GHC-ladder rebuild is worth it, or whether to fold it into #774 instead of landing it separately.
Generated by Claude Code
|
Closing in favour of #941's shape. #941 (merged) added the 🤖 Generated with Claude Code |
…ollection
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 #939.
Co-Authored-By: Claude Opus 5.5 <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 8000 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 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>
Stacked on #774 (base
bryan/ghc-ladder-clean-20260928). The GHC ladder is not on main yet. Do not merge before #774. This can also be folded into #774.What
On x86_64, no GHC-ladder package depends on the whole
glibc-bedrock-2.42any more. Each one takes only the sysroot slice, throughruntime_deps:microhs-0.16throughghc-7.0.4:glibc-bedrockis gone frombuild_deps. Their existingruntime_depsslice["sysroot_lib"]gainssysroot_include.ghc-7.6.3throughghc-9.6.7:glibc-bedrockis gone frombuild_deps. These rungs had noruntime_deps; they now have the slice, on x86_64 only.ghc: the bareglibc-bedrockis gone from the amd64 boot list. The slice now comes throughghc-9.6.7'sruntime_deps.Why runtime_deps and not
subsetOfin build_deps (the #937 shape)A
subsetOfinbuild_depscrashes the builder.SpecBuild::build_deps_mapped(minimalcrates/op/src/specs.rs) ski 8000 psBuildDep::Buildand sends every other variant totodo!("input: {:?}"). #937 failed this way on build-bot (run aa4add24):A spec's own
runtime_depsare mounted in its build sandbox, becauseTransitives::newstarts from them. So the slice reaches the build without that code path.The slice must be the only reference.
Transitives::upsertturns a subset into the full build as soon as any bare reference to the same package appears in the closure. That is why every bare import is removed, not just most of them. I checkedmip dump: no ladder package keeps a bareglibc-bedrock-2.42dependency, and no package anywhere has one inruntime_deps.Why
glibc-bedrock-2.42isprebuilt = true, and a prebuilt lands its whole tarball, ignoring its output globs. The tarball holds a complete glibc 2.42 at/usr/lib(libc.so.6,libm.so.6, the loader, headers) besides/usr/lib/glibc-bedrock-2.42/. When two deps ship the same path, the sandbox keeps the one whose spec hash sorts lowest.On #774's head, production
glibchashes to15dae0…and the prebuiltglibcto296c15…. Both sort belowglibc-bedrock-2.42at3ae053…, so production glibc wins/usr/libtoday. That is hash luck. When a glibc rehash sorts above3ae053…(about 77% odds per rehash), libc 2.42 takes/usr/lib, and every production tool in a rung's build (make, bash, patch, binutils 2.47) fails withGLIBC_2.43 not found. That is the classpath-0.93 failure on #895.The rung scripts only use
/usr/lib/glibc-bedrock-2.42/{lib,include}:$SR/lib,$SR/include, andGCONV_PATH=$SR/lib/gconv. Both are inside the slice.The 10-16 microhs failure (build 2210effb) is a different bug, already fixed
That build ran at 17b6cac. The sysroot's
libm.solinker script names/usr/lib/libm.so.6, which in the sandbox is production libm 2.44. So-lmrecorded 2.43+ symbol versions, and at run time the wrapper's-rpath $SR/lib:/usr/libloaded the 2.42 libm. 76a95be fixed it five minutes later by regeneratinglibm.sointofixlib. #774 then built green on both arches at 17bee18 (run f8c7e787, 10-17), every rung included.Blast radius
mip dump --packages --arch arm64before and after: 596 packages, all identical.nickel format --checkis clean.Untested until this build
No package has used a runtime
subsetOfof a prebuilt in a real sandbox yet. Every existing consumer also had a bare import, which widened the slice back to the whole tarball.SubsetBuildcopies the matched files withstd::fs::copy. If the sysroot'slib/contains a symlink that copy cannot follow, this build is where it will show up.🤖 Generated with Claude Code