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

Does not build for Arm #233

Open
coderamen666 opened this issue Nov 8, 2022 · 2 comments
Open

Does not build for Arm #233

coderamen666 opened this issue Nov 8, 2022 · 2 comments

Comments

@coderamen666
Copy link

CMake does not seem to recognize aarch64 mac m1s during a build.

@ChrisHelmsC
Copy link

Think I may be seeing the same thing. Are you also getting an error that rsp.h cannot be found when running make?

@command-tab
Copy link

Same here on an M2 Pro:

[  2%] Building C object CMakeFiles/cen64.dir/ai/controller.c.o
/Users/callen/cen64/ai/controller.c:17:10: fatal error: 'rsp/rsp.h' file not found
#include "rsp/rsp.h"
         ^~~~~~~~~~~
1 error generated.
make[2]: *** [CMakeFiles/cen64.dir/ai/controller.c.o] Error 1
make[1]: *** [CMakeFiles/cen64.dir/all] Error 2
make: *** [all] Error 2

rsp.h is on disk here:

$ find .. -name rsp.h
../arch/arm/rsp/rsp.h
../arch/x86_64/rsp/rsp.h

Notably, the CMake generated Makefile has lots of references to x86_64 and none for arm or aarch64. My cmake is ARM native, though:

$ which cmake
/opt/homebrew/bin/cmake
$ file /opt/homebrew/bin/cmake
/opt/homebrew/bin/cmake: Mach-O 64-bit executable arm64

So maybe there's a missing architecture flag or detection somewhere?

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

No branches or pull requests

3 participants