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

Add support for Linux aarch64 architecture (ARM) #1100

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

markphip
Copy link

This adds support for building on Linux aarch64

I was specifically testing in Docker on MacOS with Apple Silicon. I tested with Debian and Ubuntu base images.

  • HEN_HOUSE/scripts/config.guess: Added a new case for aarch64 in the Linux environment to return the machine type as aarch64-unknown-linux-gnu.
  • HEN_HOUSE/scripts/configure: Set the memory_model to an empty string if the canonical_system is aarch64.
  • HEN_HOUSE/scripts/configure_c++: Set the memory_model to an empty string if the canonical_system is aarch64. Also, added a new case for aarch64 in the Linux environment to set the fpic flag to -fPIC and add -Wno-narrowing to opt. [1] [2]

The -mcmodel=medium option is not available on ARM architecture
Some of the programs fail to build on aarch64 without setting -Wno-narrowing
compiler option
@markphip markphip requested a review from a team as a code owner February 24, 2024 23:07
@markphip markphip requested review from ftessier, mainegra and blakewalters and removed request for a team February 24, 2024 23:07
@rtownson rtownson added this to the Release 2024 milestone Jun 12, 2024
@rtownson rtownson self-requested a review June 12, 2024 17:56
@ftessier ftessier changed the base branch from master to develop June 12, 2024 18:49
@markphip
Copy link
Author

Just ran into this again setting up a new Windows laptop with the Snapdragon CPU since this makes WSL use aarch64 version of Linux. Would probably help people if this were merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants