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

CMake scripts fail to detect Arm - cannot build aarch64 out of the box #49

Open
dslarm opened this issue Oct 22, 2024 · 0 comments · May be fixed by #50
Open

CMake scripts fail to detect Arm - cannot build aarch64 out of the box #49

dslarm opened this issue Oct 22, 2024 · 0 comments · May be fixed by #50

Comments

@dslarm
Copy link

dslarm commented Oct 22, 2024

With GCC and Rocky-9 Linux, and cmake 3.26.5, the path for building pufferfish on Arm is not being followed.

Adding a 'message' to dump out the CMAKE_SYSTEM_PROCESSOR shows it to be empty at the point of the if statement in CMakeLists.txt.

According to: https://stackoverflow.com/questions/51024294/cmake-system-processor-seems-to-be-empty-whats-the-best-strategy-for-os-agnost - this value is only set after the project() declaration. However, Pufferfish puts this logic before the "project" declaration.

Fix: move the project("pufferfish") to line 1 of CMakeLists.txt.

dslarm added a commit to dslarm/pufferfish that referenced this issue Dec 12, 2024
@dslarm dslarm linked a pull request Dec 12, 2024 that will close this issue
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 a pull request may close this issue.

1 participant