-
Notifications
You must be signed in to change notification settings - Fork 88
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
Segfault importing pytrellis.so on Apple M1 #185
Comments
Same issue here. OSX Monterey 12.2.1 |
There's also an issue with dynamic linking of the executables:
Using
Hence this can be fixed using
Yielding:
|
Update: manually removing |
Works like a charm! I could finally install nextpnr for ECP5 |
Has anyone else tried the above solution without success? Could me using python3.11 instead of 3.9 prevent the fix from working? |
Apple Macbook Pro M1
OSX Monterey 12.2.1
Native arm64 Python 3.9.10 via Miniforge
Xcode 13.2.1
Apple clang version 13.0.0 (clang-1300.0.29.30)
boost 1.78.0_1 (Homebrew)
The library and executables build cleanly. No warnings of notice except for a few deprecations:
pytrellis.so
is very big (~8 Mb). On importing it from Python, it segfaults:Digging a bit deeper shows that this happens when calling
take_gil()
when importingpytrellis.so
.The text was updated successfully, but these errors were encountered: