-
Notifications
You must be signed in to change notification settings - Fork 10
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
Compile error on M2 pro chip #52
Comments
Hi, I just installed it on Mac with M2 chip (don't have a simulator for M1 though, not even the real thing) and successfully run. Best, |
Hi, I'm also using a Mac with a M2 chip, however the error mentions M1 (I guess its just about the ARM arch). Edit:
-arch is used twice, once with arm64, once with x86_64. Best, |
OK, please send an update if it wokrs
I literally just installed
these x-tools and pip install in
a virtualenv.
*Mateusz Krzysztof Łącki*
tel. +49 159 01681376
GitHub: MatteoLacki <https://github.com/MatteoLacki>
…On Thu, Feb 22, 2024 at 12:19 PM Manuel ***@***.***> wrote:
Hi,
I'm also using a Mac with a M2 chip, however the error mentions M1 (I
guess its just about the ARM arch).
xcode is installed and up to date, I'll assume its a issue of my
machine/setup/whatever and try to fix it somehow.
Best,
Manuel
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6H2AA6TZ5RMMYO7QDO52TYU4SUFAVCNFSM6AAAAABDPQBDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJZGI2DAOBWGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Okay, it definitely looks like some sort of compiler misconfiguration. We definitely didn't code the build system to deal with Rosetta, so that'll probably need to be fixed. But: what exactly are you trying to achieve, that is what's the use-case here? Are you trying to compile it natively on Apple silicon (which should work BTW) and Rosetta (apparently) is getting in the way, or are you trying to produce something that can work inside Rosetta? |
I'm simply trying to install IsoSpecPy via pip (and via setup.py after cloning this repo)
|
Maybe the version of python you have is not for ARM but x86 and that is why rosetta kicks in? |
Guess its both
I'll see when I have time to fix this, when I'll do, I'll make sure to post the fix and the reasons why this happened to me |
On my wife's mac:
***@***.*** ~ % file `which python3`
/opt/homebrew/bin/python3: Mach-O 64-bit executable arm64
best,
*Mateusz Krzysztof Łącki*
tel. +49 159 01681376
GitHub: MatteoLacki <https://github.com/MatteoLacki>
…On Fri, Feb 23, 2024 at 7:11 PM Manuel ***@***.***> wrote:
Maybe the version of python you have is not for ARM but x86 and that is
why rosetta kicks in?
Guess its both
(IsoSpecPy) ➜ ~ file `which python`
/Users/manuel/.virtualenvs/IsoSpecPy/bin/python: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
/Users/manuel/.virtualenvs/IsoSpecPy/bin/python (for architecture x86_64): Mach-O 64-bit executable x86_64
/Users/manuel/.virtualenvs/IsoSpecPy/bin/python (for architecture arm64): Mach-O 64-bit executable arm64
I'll see when I have time to fix this, when I'll do, I'll make sure to
post the fix and the reasons why this happened to me
—
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6H2ACWMNXJ4EZZBM3QK2TYVDLUPAVCNFSM6AAAAABDPQBDWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRRG43TQMZYGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
OK, I think I see what's going on now: the build system is trying to produce a multiarch binary, and the march/mtune=native messes up the cross-compilation for x86. I've removed these flags on MacOS: well, it's not exactly a server system so squeezing every last bit of performance isn't as important there. Can you try checking out the current version2_2 branch, and seeing if it works now? |
Yes, that branch works without any problems. |
Hi,
I'm trying to install IsoSpecPy from pypi.
It errors out with:
I get the same error when downloading the source and compiling.
Is IsoSpecPy even supported on Apples ARM chips?
Best,
Manuel
The text was updated successfully, but these errors were encountered: