aguinet / dragonffi

C Foreign Function Interface and JIT using Clang/LLVM
Apache License 2.0
548 stars 23 forks source link

Running on macos #74

Open DangerMouseB opened 2 years ago

DangerMouseB commented 2 years ago

Firstly - thx for sharing this project, must have been a large amount of work!

I'm on Monterey with an M1 - python 3.9 running in Pycharm.

I think I've built it okay - I end up a single .so .../dragonffi/build/bindings/python/pydffi.so.

I export LLVM_CONFIG=/opt/homebrew/opt/llvm@11/bin/llvm-config but when I call import pydffi I get:

Fatal Python error: take_gil: PyMUTEX_LOCK(gil->mutex) failed
Python runtime state: unknown

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)

Looking for some help getting this working if poss. Thx