Repository navigation
Conversation
The cross-compiled aarch64 prebuilt libwee8.a is runtime-broken: it makes wee8_compile_tool segfault when compiling .wasm fixtures, which fails Envoy's arm64 release CI (native arm64 run, same --config as x64, so there is no per-cpu .bazelrc hook to scope a fallback downstream). Point the //v8:wee8 alias' :linux_aarch64 case at @v8//:wee8 so aarch64 builds V8 from source (like //conditions:default) until the artifact is repaired. The x86_64 libcxx/libstdcxx prebuilts are unaffected. The prior line is preserved in a comment for easy restoration once the aarch64 artifact is fixed. Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: Dario Cillerai <[email protected]>
✅ Deploy Preview for nifty-bassi-e26446 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Root cause confirmed: the aarch64 prebuilt embeds an x86-64 builtins snapshotFollowing up on "until the artifact is repaired" — I ran static ELF forensics on the published aarch64 artifact and the defect is now pinned down. Artifact: Finding: the library is not arch-contaminated at the object level — all 1154 Whole-blob (2 MB) instruction-set fingerprint:
So it's arm64 C++ objects wrapping an x86-64 embedded-builtins blob. On real arm64 hardware V8 finishes Isolate/snapshot setup and, on the first call into a builtin (which happens while compiling the Why it shipped: the cross-build compiled V8's C++ for arm64 ( To repair the artifact (so aarch64 can go back to the prebuilt):
Until that lands, this PR's from-source fallback on aarch64 is the correct fix. |
|
Superseded by #5179, which fixes the underlying build defect (the wee8 transition now sets |
Summary
The cross-compiled aarch64 prebuilt
libwee8.ais currently runtime-broken: it makeswee8_compile_toolsegfault when compiling.wasmfixtures. This surfaces in Envoy's arm64 release CI:There is no downstream lever to scope a fallback: arm64 release runs natively under the same
--configas x64, so the consumer (Envoy) has no per-cpu.bazelrchook to redirect the engine only on aarch64. The fix has to live here.Change
Point the
//v8:wee8alias':linux_aarch64case at@v8//:wee8(build V8 from source, like//conditions:default) until the aarch64 artifact is repaired. The x86_64 libcxx/libstdcxx prebuilts are unaffected. The prior line is preserved in a comment for easy restoration once the artifact is fixed.Verification
bazel query --enable_bzlmod --noenable_workspace 'labels(actual, //v8:wee8)'now resolves to:— the aarch64 prebuilt is no longer referenced; aarch64 falls back to from-source.
Follow-up
Repair the cross-compiled aarch64
libwee8.asowee8_compile_toolruns correctly on arm64, then restore the commented:linux_aarch64prebuilt line.🤖 Generated with Claude Code