-
Notifications
You must be signed in to change notification settings - Fork 157
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
Error building ARCH=arm #186
Comments
Apple arm platforms like the M2 is aarch64, not "arm". Pretty sure you don't have to pass arch on apple if you're building native only. |
Oh, I checked the Makefile and it used both so I just picked one: ifeq ($(ARCH),arm)
HAVE_VM_COMPILED = true
endif
ifeq ($(ARCH),aarch64)
HAVE_VM_COMPILED = true
endif I get a similar error:
|
Oops, missed this comment. By default it builds x86_64:
|
Sounds like your terminal or build process is being run through rosetta then. In terms of the error still presenting in vm_aarch64.c, there still could be a bug there with regards to the function availability. But its probably not actually present due to trying to be as x86_64? |
Hmm, I don't think it is, but if you know of another way I can check let me know:
I'm not sure I understand what you're saying here. FYI it does build an x86_64 binary without error. |
Check |
Wow, @ec- You're right!
I have no idea why this is happening! It must be my Terminal / ZSH setup.... if you have any ideas what might be causing this I'd be very curious to know because it's causing problems with other projects too.. |
I figured it out! Transitioning Homebrew from an Intel machine to Apple Silicon resulted me with an x86 version of zsh. So to fix this I had to uninstall Homebrew and re-install it. Thanks for your help! It now builds the binary as arm64, although I can't run it, will open a separate issue for that. EDIT: there's an existing issue: #183 |
Tried on an M2:
make USE_VULKAN=1 RENDERER_DEFAULT=vulkan USE_RENDERER_DLOPEN=0 ARCH=arm -j 8
and got:The text was updated successfully, but these errors were encountered: