Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

barretenberg: aarm64 binaries are mislabelled #2518

Closed
Maddiaa0 opened this issue Sep 25, 2023 · 2 comments · Fixed by #3456
Closed

barretenberg: aarm64 binaries are mislabelled #2518

Maddiaa0 opened this issue Sep 25, 2023 · 2 comments · Fixed by #3456
Assignees
Labels
C-bb-bin Component: Barretenberg executable binary

Comments

@Maddiaa0
Copy link
Member

Compiled binaries for aarm64 are actually x86_64 under the hood.

This is likely a mislabeling in the github actions and should be a small fix

repro:

install the mac amd64 bin

% nargo backend install acvm-backend-barretenberg-2 https://github.com/AztecProtocol/barretenberg/releases/download/barretenberg-v0.5.1/barretenberg-aarch64-apple-
darwin.tar.gz                 

# Go to dir
% cd ~/.nargo/backends                                                                                                                                                                           
% cd acvm-backend-barretenberg-2                                                                                                                                                 ~/.nargo/backends 

# describe the file
% file backend_binary                                                                                                                                ~/.nargo/backends/acvm-backend-barretenberg-2 mainframe
backend_binary: Mach-O 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|WEAK_DEFINES|BINDS_TO_WEAK|PIE>
@github-project-automation github-project-automation bot moved this to Todo in A3 Sep 25, 2023
@Maddiaa0 Maddiaa0 added the C-bb-bin Component: Barretenberg executable binary label Sep 25, 2023
@Savio-Sou Savio-Sou added this to Noir Jan 17, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Noir Jan 17, 2024
@Savio-Sou Savio-Sou linked a pull request Jan 22, 2024 that will close this issue
4 tasks
@Savio-Sou
Copy link
Member

Workaround:
The community has been compiling barretenberg from source for better performance on ARM-based Macs.

@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in Noir Jan 31, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in A3 Jan 31, 2024
@Savio-Sou
Copy link
Member

Savio-Sou commented Jan 31, 2024

Noir users would have to wait for:

  1. A new barretenberg version is released with the new aarm64 binary
  2. A new Noir version that integrates and makes use of the new bb bin is released

to fully enjoy an aarm64 barretenberg proving experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bb-bin Component: Barretenberg executable binary
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants