fix: backport arm64-linux avm-transpiler cross-compilation (#20814, #20932)#21073
Closed
AztecBot wants to merge 1 commit intobackport-to-v4-stagingfrom
Closed
fix: backport arm64-linux avm-transpiler cross-compilation (#20814, #20932)#21073AztecBot wants to merge 1 commit intobackport-to-v4-stagingfrom
AztecBot wants to merge 1 commit intobackport-to-v4-stagingfrom
Conversation
ludamad
approved these changes
Mar 3, 2026
Collaborator
|
/claudebox iterate on this until CI is working, focus on the 'ci' task |
Collaborator
Author
|
ClaudeBox: iterate on this until CI is working, focus on the 'ci' task ... workflow run |
Collaborator
Author
|
Status: Session completed Progress
Response: Still running. Let me wait more. | PRs: updated #21073 Pull Requests |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
…20932) ## Summary Backports two fixes from `next` that enable the AVM transpiler for `linux/arm64` release builds, resolving [#20793](#20793) — `aztec compile` fails with "AVM Transpiler is not enabled" on `linux/arm64`. **Cherry-picked from:** - #20814 — added `arm64-linux` cross-compile to `avm-transpiler/bootstrap.sh` + wired `AVM_TRANSPILER_LIB` in `CMakePresets.json` - #20932 — fixed Makefile dependency (`bb-cpp-cross-arm64-linux` was depending on `avm-transpiler-native` instead of `avm-transpiler-cross-arm64-linux`), plus `barretenberg-rs` release fix **Root cause:** The `zig-arm64-linux` CMake preset was missing `AVM_TRANSPILER_LIB`, and `avm-transpiler/bootstrap.sh` had no `arm64-linux` case in `build_cross`. The arm64-linux bb binary was compiled without `ENABLE_AVM_TRANSPILER`. **Changes:** - `avm-transpiler/bootstrap.sh` — add `arm64-linux` case to `build_cross` - `barretenberg/cpp/CMakePresets.json` — wire `AVM_TRANSPILER_LIB` for `zig-arm64-linux` preset - `Makefile` — add `avm-transpiler-cross-arm64-linux` target, fix `bb-cpp-cross-arm64-linux` dependency - `barretenberg/rust/bootstrap.sh` — add `release` function with on-the-fly binding generation - `barretenberg/ts/scripts/copy_cross.sh` — relax arch check for release context **Conflict resolution:** `barretenberg/rust/bootstrap.sh` had a minor conflict — the `release` function didn't exist on v4. Resolved by accepting the full function. ## Test plan - [x] Native avm-transpiler build succeeds - [x] Makefile targets verified: `avm-transpiler-cross-arm64-linux`, `bb-cpp-cross-arm64-linux` dependency corrected - [x] CMake preset verified: `zig-arm64-linux` has `AVM_TRANSPILER_LIB` pointing to correct cross-compiled path - [ ] Full cross-compilation validated in release CI Closes #20793 ClaudeBox log: http://ci.aztec-labs.com/596d4a62f30fd2f0-2
71753ae to
67b4c9c
Compare
4ff264b to
2d467c9
Compare
Collaborator
|
Cherry-picked directly onto backport-to-v4-staging with conflicts resolved. |
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.
Summary
Backports two fixes from
nextthat enable the AVM transpiler forlinux/arm64release builds, resolving #20793 —aztec compilefails with "AVM Transpiler is not enabled" onlinux/arm64.Cherry-picked from:
arm64-linuxcross-compile toavm-transpiler/bootstrap.sh+ wiredAVM_TRANSPILER_LIBinCMakePresets.jsonbb-cpp-cross-arm64-linuxwas depending onavm-transpiler-nativeinstead ofavm-transpiler-cross-arm64-linux), plusbarretenberg-rsrelease fixRoot cause: The
zig-arm64-linuxCMake preset was missingAVM_TRANSPILER_LIB, andavm-transpiler/bootstrap.shhad noarm64-linuxcase inbuild_cross. The arm64-linux bb binary was compiled withoutENABLE_AVM_TRANSPILER.Changes:
avm-transpiler/bootstrap.sh— addarm64-linuxcase tobuild_crossbarretenberg/cpp/CMakePresets.json— wireAVM_TRANSPILER_LIBforzig-arm64-linuxpresetMakefile— addavm-transpiler-cross-arm64-linuxtarget, fixbb-cpp-cross-arm64-linuxdependencybarretenberg/rust/bootstrap.sh— addreleasefunction with on-the-fly binding generationbarretenberg/ts/scripts/copy_cross.sh— relax arch check for release contextConflict resolution:
barretenberg/rust/bootstrap.shhad a minor conflict — thereleasefunction didn't exist on v4. Resolved by accepting the full function.Test plan
avm-transpiler-cross-arm64-linux,bb-cpp-cross-arm64-linuxdependency correctedzig-arm64-linuxhasAVM_TRANSPILER_LIBpointing to correct cross-compiled pathCloses #20793
ClaudeBox log: http://ci.aztec-labs.com/596d4a62f30fd2f0-2