Skip to content

build graph: zero-fill the linux_aarch64 runtime slot in embedded objects (windows-aarch64 cross seed) - #1089

Merged
ehartford merged 2 commits into
mainfrom
cross-embed-linux-aarch64-slot
Sep 7, 2026
Merged

ehartford merged 2 commits into
mainfrom
cross-embed-linux-aarch64-slot

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

The embed action's zero-fill list stopped at four platforms; the cross-rt-windows-* targets rely on it for every platform but their own, so the windows-aarch64 cross seed failed at the COFF link on with_embedded_rt_linux_aarch64_o_start/_end (run 34055417973). Fifth slot added. Verification: seed-windows-aarch64.yml dispatched from this branch's SHA. Refs #1081.

…ects

Every platform slot src/compiler/Link.w declares (with_embedded_rt_<p>_o_
start/_end) must exist in every embedded-objects blob. The native targets
pass each other platform's zero-length blob as an explicit input; the
cross-rt-windows-* targets pass only their own platform object and rely
on the embed action's zero-fill for the rest -- and that list in
BuildGraphOps.w stopped at four platforms. The windows-aarch64 cross seed
(seed-windows-aarch64.yml) therefore died at the COFF link:

  lld-link: error: undefined symbol: with_embedded_rt_linux_aarch64_o_start
  lld-link: error: undefined symbol: with_embedded_rt_linux_aarch64_o_end

(run 34055417973, source 4e6666d). Fifth slot added; the comment names
the two other copies of the list (build.w embedded_platform_symbols,
Link.w externs) so the next platform lands in all three.

Refs #1081
ehartford added a commit that referenced this pull request Sep 7, 2026
v0.15.2.1 now carries with-windows-aarch64.exe: cross-built
(aarch64-pc-windows-msvc) on the native windows-x86_64 box from
ea37727 -- v0.15.2.1 plus the #1089 embedded-slot fix the cross link
needs -- with the published sdk-windows-aarch64 SDK and xwin's arm64
import libs; llvm-readobj: IMAGE_FILE_MACHINE_ARM64. An intermediate
seed, not fixpoint-verified: this pin's own windows-aarch64 lane is the
native stage1 -> stage2 -> stage3 bootstrap that verifies it. Both
aarch64 pins follow the lock (tools/bump_seed_pins.w).
@ehartford
ehartford merged commit e47e307 into main Sep 7, 2026
4 of 6 checks passed
…compiler

The `:cross-rt-windows-aarch64` step ran under WITH=with-seed, the
downloaded host seed. The embed action (EmbedObjectFiles,
src/BuildGraphOps.w) executes inside whichever driver runs that target,
so the platform-slot zero-fill was the seed's list, not this tree's --
which is why run 34058556059 still failed at the COFF link on
with_embedded_rt_linux_aarch64_o_start after ea37727 added the slot.
The cross-emit step already uses out/release/bin/with; the cross-rt
step now does too.
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