You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build: stage-embedded-objects-object stays fresh when a .wo bundle is rebuilt (the .s only incbins paths); stage2 embeds stale bundles #1435
Found while re-verifying #1377 in its worktree after a rebase that changed the ABI identity. A stale stage2 is a staging artifact only; the release binary (link-compiler) was correct. But the p7 harness (test/behavior/lib/pre_d_build_runner.w, p7_compiler_path) prefers out/stage/bin/with-stage2, so behavior tests in a reused worktree run against a compiler whose embedded bundles are stale.
Sequence (seed-driven, WITH=$PWD/src/main src/main build :native-compile-error-tests, after a rebase):
[pcre2-wo-build] ... building pcre2 ... with out/bootstrap/bin/with-stage1 -> out/wo/pcre2.o rewritten (00:25:27)
[cutoff] 'stage-embedded-objects-asm' re-ran to identical outputs; its dependents stay fresh
[stage2] wrote out/stage/bin/with-stage2
out/stage/lib/embedded_objects.s references every blob by .incbin "<abs path>", so its text does not change when a bundle's bytes change.
The cutoff therefore leaves stage-embedded-objects-object fresh: out/stage/lib/embedded_objects.o still carried the previous run's bytes (mtime Sep 22 18:34, while out/wo/pcre2.o is Sep 23 00:25).
stage2 linked it: out/stage/bin/with-stage2 run <any program> → error: embedded bundle 'pcre2' was built for ABI 787e9ad4… but this compiler is b735dbd0….
A second src/main build :stage2 is a 4.5s no-op, so the red persists until the object is deleted.
Expected: the assembled object's cache key covers the bytes of every .incbin file, not only the .s text. The same holds for any CompileAsmObject whose source incbins (bootstrap-, stage-, release-embedded objects).
Same defect class as #1423 (stage-embedded-objects does not rebuild when its embedded bundles change; found independently during the #1394 work). Tracking both together; the workaround in every battery chain today is rm -f out/stage/lib/embedded_objects.o before the build.
Activity
ehartford commentedon Sep 23, 2026
Same defect class as #1423 (stage-embedded-objects does not rebuild when its embedded bundles change; found independently during the #1394 work). Tracking both together; the workaround in every battery chain today is
rm -f out/stage/lib/embedded_objects.obefore the build.Build: an assembled object keys on every file its source .incbin's; t…