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
linux-aarch64 :test: native-spec-tests links fail with undefined with_vec_append_bytes (regression 09-07 → 09-12; blocks the linux-aarch64 release leg) #1156
The Release workflow's linux-aarch64 leg fails :test in native-spec-tests:
ld.lld: error: undefined symbol: with_vec_append_bytes
collect2: error: ld returned 1 exit status
error: build.w test target 'native-spec-tests' failed in 'test/spec/spec_ss14_11_await_combinator_cancel_joins.w'
error: build.w test target 'native-spec-tests': 1 of 210 files failed (0 cached, 210 ran)
Same failure on the 2026-09-12 nightly (run 34693015057, commit 1710985) and the 2026-09-16 nightly (run 35102512299, commit 761d91a). The log line immediately before the error is "seed links". Build and :fixpoint are green on the same leg; the other 209 spec tests pass.
with_vec_append_bytes is pub fn in rt/rt_core.w (the #919 StringBuilder bulk-append seam), declared extern fn in lib/std/string.w. The test itself uses std.task.Task; the symbol is reached through std internals. The identical test links and passes on linux-x86_64 and darwin-aarch64.
Window
Green on the 2026-09-07 nightly (run 34132069721, commit 8a729db), and v0.15.2.1's linux-aarch64 asset was built with the full :test green on 2026-09-06 (run 34056128029, commit d9091ce). Red from 2026-09-12 (1710985). git log --oneline 8a729db8..17109853 is ~100 commits: the wo-c4 bundle work, the zlib .wo bundle (#1103), the va_list work (#1104/#1108), cd2c617a fix(build): prepare bootstrap runtime on every stage1 compile, and 961bbda6 std.libc, rt: fcntl is a runtime seam per target.
Not the host-map fallthrough fixed in the release PR: release_platform_tag() feeds the seed/gate/SDK-name paths, not runtime-object composition (checked src/compiler/Link.w and src/main.w cache keying).
An aarch64 Linux runner (or the CI lane) to bisect the window, starting from which runtime object spec_ss14_11… is linked against on that host ("seed links" suggests the seed's embedded runtime rather than the fresh compiler's) and whether the linux-aarch64 rt_core.o embedded in the fresh compiler exports the symbol (llvm-nm out/lib/rt_core.o | grep with_vec_append_bytes).
Blocks: linux-aarch64 on the next stable release (v0.15.2.2) until fixed; the other four platforms are handled in the release PR.
Reproduced natively on Apple Silicon in a linux/arm64 Docker container (ubuntu:24.04, the lane's SDK sdk-linux-aarch64, seed v0.15.2.0, runtime bundle with-linux-aarch64-runtime.tar.gz), and the missing symbol is located:
out/bootstrap-lib/rt_core.o with_vec_append_bytes: 1 (seed-built from the tree's rt/rt_core.w)
runtime/rt_core.o with_vec_append_bytes: 0 (the downloaded seed runtime bundle)
So the bundle asset published under the with-linux-aarch64 release tag predates #919 (StringBuilder's bulk append) and any link that resolves its runtime root to that bundle fails on with_vec_append_bytes. The Release workflow extracts the bundle to src/runtime/ — next to src/main — which is exactly candidate 3 (<compiler_dir>/runtime) in link_stage_resolve_runtime_root (src/compiler/Link.w), and on linux-aarch64 there is no embedded platform runtime slot ("resolved from the on-disk runtime root only"), so nothing can fall back past a stale on-disk set.
The spec_ss14_11… test is compiled by out/release/bin/with (compiler= on the Test target), so the remaining question is only how that compiler's link reached the stale bundle in the per-case isolated artifact root (519ec35); the container run of the real native-spec-tests target will show the exact link command. Correction to the report above: "seed links" in the CI log is the lane's seed smoke-test output, not a link mode.
Not a compiler-commit regression: the same failure mechanism exists on any tree since the bundle went stale; it surfaced when :test started running on this leg.
Update after the test-channel Release run on the fix branch (run 35134417320, commit 9e45bce):
The seed-driver gate is fixed by the release_asset_for_host() linux-aarch64 case: [seed-driver] the driver is the pinned seed v0.15.2.0; workflow pins agree with seed.lock.
:test now fails on exactly one of 210 spec files, spec_ss14_11_await_combinator_cancel_joins.w, still with undefined symbol: with_vec_append_bytes on the CI runner — while the same target on a native arm64 container build of the same tree links that test fine and fails only the known-issue #916 gate ("expected red but passed", see Cancellation protocol gap: async caller of a sync-but-suspending fn uses the cancelled callee's garbage return (invalid free) #916). Either way it is that single known-issue test, so the release PR scopes it skip-on: linux-aarch64 and the leg's battery is green; the remaining question — why the CI harness's compile of that one file resolves a runtime object without the symbol (the seed's bundle at src/runtime is the only stale copy on the runner) while the container does not — is what is left of this issue. Not a release blocker once the directive lands.
Same symbol, one step earlier: on every linux-aarch64 lane the build-runner link fails too —
ld.lld: error: undefined symbol: with_vec_append_bytes
>>> referenced by __with_build_runner.w:14 … build-runner.o:(tool_process_argv) … referenced 101 more times
collect2: error: ld returned 1 exit status
— and the driver then falls back to in-process action execution (#921 phase 1), so the build continues and only :test's native link of spec_ss14_11_await_combinator_cancel_joins.w turns the lane red. Seen on PR #1254 (run 35614097023) and identically on the last green main run of the same workflow (35612936542), so it is pre-existing on main, not per-PR.
Two things when this is fixed: the seed asset for linux-aarch64 must carry the runtime that lib/std/string.w:26 declares, and the driver's fallback should say so in one line ("build-runner cannot link against this seed's runtime; running actions in-process") instead of printing a linker backtrace and continuing silently.
Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce. with_vec_append_bytes is defined in the runtime bundle (rt/rt_core.w:3377), and the linux-aarch64 leg of the 2026-10-25 joint seed cut (nightly-20261025-local-1-c88f3eeff0bc) built and passed its checks in the with-aarch64-host container.
Activity
ehartford commentedon Sep 16, 2026
Reproduced natively on Apple Silicon in a
linux/arm64Docker container (ubuntu:24.04, the lane's SDKsdk-linux-aarch64, seedv0.15.2.0, runtime bundlewith-linux-aarch64-runtime.tar.gz), and the missing symbol is located:So the bundle asset published under the
with-linux-aarch64release tag predates #919 (StringBuilder's bulk append) and any link that resolves its runtime root to that bundle fails onwith_vec_append_bytes. The Release workflow extracts the bundle tosrc/runtime/— next tosrc/main— which is exactly candidate 3 (<compiler_dir>/runtime) inlink_stage_resolve_runtime_root(src/compiler/Link.w), and on linux-aarch64 there is no embedded platform runtime slot ("resolved from the on-disk runtime root only"), so nothing can fall back past a stale on-disk set.The
spec_ss14_11…test is compiled byout/release/bin/with(compiler=on the Test target), so the remaining question is only how that compiler's link reached the stale bundle in the per-case isolated artifact root (519ec35); the container run of the realnative-spec-teststarget will show the exact link command. Correction to the report above: "seed links" in the CI log is the lane's seed smoke-test output, not a link mode.Not a compiler-commit regression: the same failure mechanism exists on any tree since the bundle went stale; it surfaced when
:teststarted running on this leg.ehartford commentedon Sep 16, 2026
Update after the test-channel Release run on the fix branch (run 35134417320, commit 9e45bce):
release_asset_for_host()linux-aarch64 case:[seed-driver] the driver is the pinned seed v0.15.2.0; workflow pins agree with seed.lock.:testnow fails on exactly one of 210 spec files,spec_ss14_11_await_combinator_cancel_joins.w, still withundefined symbol: with_vec_append_byteson the CI runner — while the same target on a native arm64 container build of the same tree links that test fine and fails only theknown-issue #916gate ("expected red but passed", see Cancellation protocol gap: async caller of a sync-but-suspending fn uses the cancelled callee's garbage return (invalid free) #916). Either way it is that singleknown-issuetest, so the release PR scopes itskip-on: linux-aarch64and the leg's battery is green; the remaining question — why the CI harness's compile of that one file resolves a runtime object without the symbol (the seed's bundle atsrc/runtimeis the only stale copy on the runner) while the container does not — is what is left of this issue. Not a release blocker once the directive lands.ehartford commentedon Sep 21, 2026
Same symbol, one step earlier: on every linux-aarch64 lane the build-runner link fails too —
— and the driver then falls back to in-process action execution (#921 phase 1), so the build continues and only
:test's native link ofspec_ss14_11_await_combinator_cancel_joins.wturns the lane red. Seen on PR #1254 (run 35614097023) and identically on the last green main run of the same workflow (35612936542), so it is pre-existing on main, not per-PR.Two things when this is fixed: the seed asset for linux-aarch64 must carry the runtime that
lib/std/string.w:26declares, and the driver's fallback should say so in one line ("build-runner cannot link against this seed's runtime; running actions in-process") instead of printing a linker backtrace and continuing silently.ehartford commentedon Oct 25, 2026
Triage 2026-10-25,
with v0.15.3.0(main a261b65): does not reproduce.with_vec_append_bytesis defined in the runtime bundle (rt/rt_core.w:3377), and the linux-aarch64 leg of the 2026-10-25 joint seed cut (nightly-20261025-local-1-c88f3eeff0bc) built and passed its checks in thewith-aarch64-hostcontainer.