Skip to content

seed: a stale seed links out/bootstrap-lib built from newer rt sources, so :seed cannot fetch the pinned seed #2360

Closed

Description

@ehartford

What happens

On eric-5090, after rebasing a worktree onto main across the seed.lock bump to
nightly-20261011-local-2-e4861e1d6997 (#2350) and the List-header change
(#2352), src/main build :seed cannot replace the stale seed
(nightly-20261009-local-2-1140e66035cc):

src/main is not the pinned seed; refetching
downloading seed from: .../nightly-20261011-local-2-e4861e1d6997/with-linux-x86_64
[driver-compile] seed-asset-https-fetch-helper compiler=src/main files=
ld.lld: error: undefined symbol: with_vec_push
>>> referenced by aes.w:41 (<embedded-std>/std/crypto/aes.w:41)
>>>               out/tmp/seed-download/https_fetch.o:(aes_sbox)
error: seed: could not compile build/https_fetch.w

The battery then runs under the stale seed. The worktree's gate went red
because of this, with src/main --version still reporting the old seed.

Why

strace of the helper's link shows that the stale seed links
out/bootstrap-lib/{rt_core,cimport_stubs,rt_linux_x86_64,...}.o from the
working directory. An earlier build, driven by that same seed, compiled
out/bootstrap-lib from the rebased tree's rt/ sources, which no longer
define with_vec_push (D115 Amendment 1). Its .producer names the seed's
generation, so the generation check (#1815,
link_stage_runtime_dir_is_this_generation) accepts it. But the seed's
embedded std is the old one, and it still calls with_vec_push.

The generation stamp identifies the compiler that built the objects. It does
not identify the runtime sources they came from. A tree runtime compiled by
the seed is correct for linking stage1, which compiles from those same
sources. It is wrong for a program that the seed compiles against its own
embedded std. The seed's fetch helper is such a program.

#1667 kept the stale seed alive long enough to compile the fetch helper. In
this state, it still can't link it.

Repro

  1. In a worktree on a commit before D115 Amendment 1 step 2: the List header's word 3 is start, an owned List's head comes off in O(1); #2289 guards after a take #2352, run src/main build so that
    out/bootstrap-lib exists.
  2. Check out a commit after seed.lock: nightly-20261011-local-2-e4861e1d6997 (the first seeds with the sized List helpers and ++) #2350 and D115 Amendment 1 step 2: the List header's word 3 is start, an owned List's head comes off in O(1); #2289 guards after a take #2352, then run src/main build :seed.

Expected

The fetch helper links against the runtime that matches the std it was
compiled with. That means the driver's embedded runtime, or a set whose
recorded producer covers both the generation and the runtime source digest.
The stale seed then fetches the pinned one.

Also

With out/bootstrap-lib removed, the stale seed's helper links, but it then ran at full CPU for the 300 s fetch limit and wrote nothing. The helper built from the current std downloads the same 215 MB asset in 60 s, nearly all of it CPU time, and its digest matches the lock. A seed one generation older cannot fetch its successor in time on this host.

Workaround used

rm -rf out/bootstrap-lib. Then I downloaded the asset with a fetch helper built by a current compiler, checked its sha256 against seed.lock, put it at src/main, and ran src/main build :seed to confirm the pin.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce. Two changes closed the path: D30 step 4 (#2500) made the runtime bundle the only lane, and D132 refuses to link a runtime that is not the linking compiler's own generation. The 2026-10-25 seed bump (#2622) moved every gating host from nightly-20261024-local-4-0cca9aee2744 to nightly-20261025-local-1-c88f3eeff0bc through src/main build :seed, which refetched the pinned asset over the older one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions