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

Fix building in Linux on ARM #8

Merged
merged 16 commits into from
Jan 12, 2023
Merged

Conversation

ax0
Copy link

@ax0 ax0 commented Jan 2, 2023

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 in barretenberg for compatibility with more recent toolchains (cf. AztecProtocol#13). Tested on both Ubuntu 22.04 and Arch Linux on ARM.

@phated
Copy link

phated commented Jan 12, 2023

We'll want to rebase this on kw/noir-dsl, as I added some CI. We also probably need to add an entry similar to https://github.com/noir-lang/aztec-connect/pull/14/files#r1067480911 but for ARM

@ax0 Are you available to do that or should I look into it?

@phated phated changed the title QOL improvements for Linux on ARM and additional includes for compatibility Fix building in Linux on ARM Jan 12, 2023
Copy link

@phated phated left a 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

@phated phated merged commit 2ef8be4 into noir-lang:kw/noir-dsl Jan 12, 2023
phated pushed a commit that referenced this pull request Feb 9, 2023
feat(wrapper): Flake bindgen cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants