-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fix building in Linux on ARM #8
Conversation
We'll want to rebase this on @ax0 Are you available to do that or should I look into it? |
* Cargo format * Clippy fixes * Update tests to match tests in aztec_backend * Add cargo config to set clang as linker when target is x86_64-unknown-linux-gnu
* Cargo format * Clippy fixes * Update tests to match tests in aztec_backend * Add cargo config to set clang as linker when target is x86_64-unknown-linux-gnu
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this @ax0 🎉 I've tested it on Ubuntu ARM (using Canonical multipass
on Mac M1) and everything works.
We need to note that this requires clang
and lld
to be installed on the system to ensure it works. It seems that ubuntu doesn't install these alongside llvm by default, so I needed to run sudo apt install clang lld
feat(wrapper): Flake bindgen cleanup
This PR replaces the current build scripts for Linux on ARM so that Barretenberg builds natively using Clang, bringing it in line with the build scripts for Linux on x86_64 and Mac OS on ARM. Some additional
#include
statements were added inbarretenberg
for compatibility with more recent toolchains (cf. AztecProtocol#13). Tested on both Ubuntu 22.04 and Arch Linux on ARM.