Repository navigation
Merged
Conversation
…d, as it links an explicit --link-bundle (#1330) A compiler linked as a program (`with-stage1 build out/gen/main.w`, the failure-diagnostics probe) carries the ABI slot's placeholder while the bundles it embeds carry the tree's digest. Link.link_stage_select_embedded_bundles compared the two and refused every link that needed a bundle: $ out/probe-main build re.w # use std.regex error: embedded bundle 'pcre2' was built for ABI 9f50ed35… but this compiler is WITHABISHASTAMPv1XXXX… (a .wo never links across ABI identities; rebuild the bundle) Compilation.load_link_bundles already skipped the comparison for an unstamped image, and a hand-linked compiler keeps no generation (#1815): an image with no identity has nothing to compare, and the bundles it embeds are the ones the link that produced it was given. The rule now has one owner, AbiStamp.abi_identity_refuses_bundle, read by both link paths; a stamped identity still refuses another ABI (#761). test/internals/link_embedded_bundle_abi_test.w pins the three cases; it fails under the old rule (the test binary is itself unstamped) and passes with this one. Reproduced and verified on darwin-aarch64 main 1688728 with a stage1-built probe image: before, the error above; after, the std.regex program links and prints "match".
Contributor
Author
|
Battery GREEN on stack top 7bdd704 (seed-driven, |
ehartford
marked this pull request as ready for review
October 2, 2026 22:30
This was referenced Oct 2, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1330. Link.w compared the bundle ABI to the compiler's stamp unconditionally while Compilation.load_link_bundles already exempted an unstamped (WITHABISHASTAMPv1XXXX…) image; now AbiStamp.abi_identity_refuses_bundle owns the rule and both paths read it. test/internals/link_embedded_bundle_abi_test.w red before, green after; the probe image links std.regex and runs on Mac and win10. Gate green on 30f89aa. Battery with the next batch.