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
bundles: the .wo object embeds the checkout's absolute corpus path, so one key has a different object-sha per checkout #949
The pcre2 bundle object written by with build lib/std/re/bundle.w --emit-obj --bundle-corpus std/re … carries the checkout's absolute path in its debug info:
The .wi is path-free (interface-sha 99c2382a… in all three) and symbol names are canonical (<embedded-std>/std/re/…, D38 C0), so only DWARF differs. The key (corpus_sha | target | abi_sha) promises "same key, same object"; a slot published from one checkout and read by another will not be byte-identical, and the wo-drift lane's byte-identity check ("byte-identical to out/wo/pcre2.o") holds only within one checkout. A release-asset store (docs/wo_bundles.md, "each corpus version is also published as a release asset") makes this visible immediately.
Expected
A bundle build should not depend on where the tree is checked out: emit the canonical <embedded-std>/std/<corpus>/ spelling (or no absolute directory) as the DWARF compilation directory for bundle modules, the same identity the symbol mangling already uses.
Fixed on main: 92edfe7 — the DWARF compile unit names a stdlib-tree root by its canonical path (/std/re/bundle.w), so a .wo object is byte-identical from every checkout. Proof: the same stage1 building lib/std/re/bundle.w with --bundle-corpus std/re from /Users/eric/with and from a worktree gives byte-identical objects, zero absolute checkout paths, canonical directory in the DWARF. Battery green, pushed, reseeded.
Activity
codegen: the DWARF compile unit names a stdlib-tree root by its canon…
ehartford commentedon Sep 3, 2026
Fixed on main: 92edfe7 — the DWARF compile unit names a stdlib-tree root by its canonical path (/std/re/bundle.w), so a .wo object is byte-identical from every checkout. Proof: the same stage1 building lib/std/re/bundle.w with --bundle-corpus std/re from /Users/eric/with and from a worktree gives byte-identical objects, zero absolute checkout paths, canonical directory in the DWARF. Battery green, pushed, reseeded.
One tree, one compiler binary, in any worktree: WITH_FILE_PREFIX_MAP …