-
Notifications
You must be signed in to change notification settings - Fork 316
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
llvmlite do not work with llvm 18.1.7 on MacOS Sonoma (Apple M1) #1062
Comments
@redradist thank you for reporting. The latest release of llvmlite -- 0.43.0 -- is only compatible with llvm 14 as documented here: https://github.com/numba/llvmlite?tab=readme-ov-file#compatibility We can't and don't always support the latest LLVM: Please also look at the issue tracker for open issues regarding future LLVM version support and their current state of implementation and how to help out there. |
n documentation is mentioned that llvmlite use static linkage and also I've tried to reinstall llvm using homebrew: |
The Numba team only have control over the package distribution across wheels on pypi.org and the numba channel on anaconda.org. Builds of llvmlite distributed through these channels will certainly have static linkage. Other distributors -- like homebrew -- may choose to distribute llvmlite differently and link it dynamically against LLVM, but I don't know exactly what homebrew did. If you believe that the llvmlite distributed via homebrew has not been compiled correctly I would recommend to reach out to the homebrew community. If you simply need Numba/llvmlite to work and don't care about where it came from, I would recommend using the packages we provide via
Or, if you need both Numba and llvmlite:
That should get you setup and going with the most recent versions, Numba 0.60.0 and llvmlite 0.43.0. Hope this helps? |
This is unfortunate. Having multiple versions of llvm/clang floating around the system wastes storage space. On my system I already have Apple's 15.0.0, MacPorts versions 16.0.6 snd 17.0.6. Never mind that it pulls in an older Python version (3.10), used to build llvm/clang-14. I guess I now need to add 14.0.6 to install py312-llvmlite and py312-nndescent. |
Sorry to hear that you are dissatisfied with the state of LLVM. There isn't anything you can do about it. Ideally, LLVM versions would be backwards compatible, but they are not. This means all dependents will be in a constant state of flux supporting only a subset of LLVM versions and you end up with copies of each LLVM version that is needed by the software you intend to run. |
My interpretation of the responses here is that this question has been sufficiently answered so I will close this issue accordingly. |
Reporting a bug
llvmlite do not work with llvm 18.1.7 on MacOS Sanoma (Apple M1).
Numba got the following error:
It failed already at import stage:
visible in the change log (https://github.com/numba/llvmlite/blob/main/CHANGE_LOG).
i.e. it's possible to run as 'python bug.py'.
The text was updated successfully, but these errors were encountered: