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

5.0.0post1 Mac universal wheel is invalid for AArch64 #2129

Closed
flit opened this issue Jul 29, 2023 · 2 comments
Closed

5.0.0post1 Mac universal wheel is invalid for AArch64 #2129

flit opened this issue Jul 29, 2023 · 2 comments

Comments

@flit
Copy link

flit commented Jul 29, 2023

The capstone-5.0.0.post1-py3-none-macosx_10_9_universal2.whl wheel seems to contain x86_64 but not AArch64 code. Thus, when loaded on an AArch64 Mac (M1 in my case), dlopen() returns an error.

This exception is from pyocd attempting to import capstone (newlines inserted):

 Error: dlopen(/VENV_DIR/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib, 0x0006): tried: 
'/VENV_DIR/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib' (mach-o file,
but is an incompatible architecture (have 'x86_64', need 'arm64')), 
'/System/Volumes/Preboot/Cryptexes/OS/VENV_DIR/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib' (no such file),
 '/VENV_DIR/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib' 
(mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))
@patryk4815
Copy link

Probably it will be fixed: #2066 (comment)

@flit
Copy link
Author

flit commented Jul 31, 2023

Closing as duplicate of #2066. (I did search for various terms related to MacOS and universal wheel, but still didn't manage to find it. 😓 )

@flit flit closed this as completed Jul 31, 2023
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

2 participants