-
Notifications
You must be signed in to change notification settings - Fork 160
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: unknown FP unit 'sse' (on MacBook M1) #457
Comments
Hashlink JIT is only x86 / x86_64, we don't support ARM atm. Try compiling using emulation mode (not sure how to do that on OSX). |
Ok will do. Thanks for the reply |
note that while the jit doesn't work, hl/c works fine on arm (my game is running perfectly well with this on my m1 mac mini). i think i had to dummy out some mdbg stuff but that's about all. |
@kewp Did you have any luck getting hashlink to run on m1 or is it a lost cause for now? I'm curious if I have to fire up my old laptop to build a game or not :P |
Hi @tgienger i can't remember. I did experiment with Rosetta but not sure how that went. I'll try again when I can and will let you know |
if you run |
now it has the 'png.h' file not found error. libpng is in the brewfile and it did install so I'm kind of stuck again it seems. Thanks for that though, make did at least start :) |
I changed the Makefile's mac specific sections to: and Now the current issue I'm getting is: Undefined symbols for architecture x86_64: |
I'm new to this, but assume it's because the libraries are compiled for Arm. :( |
I tried @shakesoda's suggestion (I ran
|
That is with x86_64 libraries? |
Not sure what you mean? I didn't specify different libraries, I just ran |
When you install the plugins through the Brewfile, it will install arm64 plugins by default. That's what I did. Then when I finally got to make file figured out, I ran into an issue where it was trying to build for x86 from an arm64 plugin. And that's where I left off. I haven't had time to mess with it since. |
Yes when I try to run
|
Hi Guys Did a brew bundle with the arm homebrew. getting the same issue as a bit above:
However have confirmed this is installed with brew install libpng Going to try installing homebrew again under rosetta and see how that goes. ( not exactly ideal ) Is arm support planned? |
Hi! Next steps should help
same manual with updated Makefile https://gist.github.com/profelis/9bd8851237d3da4b00a42b3e8a4f07c2 |
Late to the party but adding something :
The reason I had to do this on my machine is because I started clean, wiping out the old homebrew instance. Starting fresh with the M1 version installed in Running
As you can see, the Hope it may help someone wondering what sorcery is happening with homebrew on M1 + hashlink. |
@FlorianB-playdigious this is correct behaviour, in result you have 2 versions of homebrew setups. One (arm64 version) installed in /opt/homebrew, and (rosetta/x64 version) in /usr/local/homebrew. And hashlink should be compiled using x86 version. Currently on my macbook
hashlink correct compiles only with rosetta setup, always switch to x64 brew version ( |
Thanks for clarifying.
I don't see why the prefix could not be /usr/local given the arm64 version
does not use it either? The homebrew documentation strongly suggests to use
the default homebrew prefix to avoid issues, so I assumed it should be
/usr/local.
It would be far easier if homebrew installed libs and formulae would end in
/use/local/include (and so forth). But if it worked for you without having
to change the homebrew prefix, then my assumption was wrong.
Le lun. 26 sept. 2022 à 22:09, Dima Granetchi ***@***.***> a
écrit :
… As you can see, the HOMEBREW_PREFIX and HOMEBREW_CELLAR do not point to
/usr/local but /usr/local/homebrew. I don't know why,
@FlorianB-playdigious <https://github.com/FlorianB-playdigious> this is
correct behaviour, in result you have 2 versions of homebrew setups. One
(arm64 version) installed in /opt/homebrew, and (rosetta/x64 version) in
/usr/local/homebrew. And hashlink should be compiled using x86 version.
Take a look at last line in your brew config Rosetta 2: true
Currently on my macbook
> brew config | grep HOMEBREW_PREFIX
HOMEBREW_PREFIX: /opt/homebrew // <-- arm64 home
> arch -x86_64 zsh
> brew config | grep HOMEBREW_PREFIX
HOMEBREW_PREFIX: /usr/local/homebrew // <-- rosetta/x64 home
hashlink correct compiles only with rosetta setup, always switch to x64
brew version (> arch -x86_64 zsh) before (3rd step from my instruction)
—
Reply to this email directly, view it on GitHub
<#457 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS2NKF6MKLQEFRIU3YTMFQLWAH7HBANCNFSM452LKBIQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Tried building this on my MacBook Air M1. Assuming this doesn't work for that processor?
The text was updated successfully, but these errors were encountered: