Skip to content

Fix #2390: cross embedded sets define the empty wo-wasm32 bundle slots - #2391

Merged
ehartford merged 1 commit into
d118-windows-seed-workflowfrom
cross-embed-wo-wasm32-slots
Oct 13, 2026
Merged

ehartford merged 1 commit into
d118-windows-seed-workflowfrom
cross-embed-wo-wasm32-slots

Conversation

@ehartford

@ehartford ehartford commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #2389; part of D118 (#2305). The generated EmbeddedBundlesData is shared by every compiler build and names the wasm32 bundle slots (wo_<name>_wasm32_{o,manifest,wi}); the bootstrap embedding defines them empty, but the three cross embedded sets — linux (add_cross_rt_targets), windows x86_64, windows aarch64 — never did, so cross-compiling the compiler has failed to link since the wasm32 bundle embedding landed.

Failure-first evidence: :cross-arm-compiler at e4861e1 on eric-5090 and windows CI run 38390412010 both fail only on these symbols (nm confirms the cross embedded_objects.o defines none while the native defines them). Fix mirrors the bootstrap treatment via the existing add_empty_wo_blob_targets/target_with_empty_wo_blobs helpers; an empty manifest is a slot this binary does not fill.

Ceremony: move-arg in build rises 163 → 169 and is granted in build/ceremony-allowances.tsv — the six new moves thread Build/Target through the existing consuming helpers at the three cross sites, spelling the ownership transfer those signatures declare, as every neighboring call does.

Verification: seed-driven release build green; :cross-arm-compiler rc=0 and the ARM aarch64 ELF runs natively in Docker (with v0.15.3.0); gate and the stack's single battery follow on this PR.

@ehartford
ehartford added this pull request to stack #2392 October 13, 2026 15:36
@ehartford ehartford changed the title cross embed wo wasm32 slots Fix #2390: cross embedded sets define the empty wo-wasm32 bundle slots Oct 13, 2026
@ehartford

Copy link
Copy Markdown
Contributor Author

Fix verified locally: seed-driven release build green, then out/release/bin/with build :cross-arm-compiler rc=0 (the link that failed at e4861e1 on eric-5090 and in windows CI run 38390412010). The product is a working ARM aarch64 ELF (sha256 044f6646…) that executes natively in the linux/arm64 Docker host: with v0.15.3.0. Gate and the stack battery follow.

The generated EmbeddedBundlesData is shared by every compiler build
and names the wasm32 bundle slots (wo_<name>_wasm32_{o,manifest,wi});
the bootstrap embedding defines them empty, but the three cross
embedded sets — linux (add_cross_rt_targets), windows x86_64 and
windows aarch64 — never did, so cross-compiling the compiler failed
to link (undefined with_embedded_wo_zlib_wasm32_wi_end and kin) on
every commit since the wasm32 bundle embedding landed. Proven before
the fix by :cross-arm-compiler failing to link at e4861e1 on
eric-5090 and by windows CI run 38390412010 failing on the same
symbols. Mirror the bootstrap treatment with the existing
add_empty_wo_blob_targets/target_with_empty_wo_blobs helpers; an
empty manifest is a slot this binary does not fill.
@ehartford
ehartford force-pushed the cross-embed-wo-wasm32-slots branch from d4062fa to 433ad0b Compare October 13, 2026 15:56
@ehartford

Copy link
Copy Markdown
Contributor Author

Stack battery GREEN at 433ad0b76: gate rc=0 (122s), uat rc=0 (29s), battery-checks rc=0 (1350s). Holding merge until the windows-aarch64 emit form is proven on eric-5090 (in progress): if #2389's emit step needs the env/--link-bundle amendment, the stack is amended and re-batteried before merging.

@ehartford

Copy link
Copy Markdown
Contributor Author

Per Eric: windows-aarch64 verification is out of scope for now (Mac, Linux-x64, Windows-x64 only), so the eric-5090 emit proof is stopped and its uncommitted workflow draft discarded — this stack merges on the GREEN battery at 433ad0b76 as-is. The windows-aarch64 emit step's remaining gap (env/--link-bundle for the manual cross-emit) is noted on #2305 for when that platform returns to scope.

@ehartford
ehartford marked this pull request as ready for review October 13, 2026 16:34
@ehartford
ehartford merged commit 5c31bf1 into main Oct 13, 2026
@ehartford
ehartford deleted the cross-embed-wo-wasm32-slots branch October 13, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant