Package Details: python-llvmlite 0.30.0-1

Git Clone URL: (read-only)
Package Base: python-llvmlite
Description: Lightweight LLVM python binding for writing JIT compilers
Upstream URL:
Licenses: BSD
Submitter: mschu
Maintainer: mschu
Last Packager: mschu
Votes: 24
Popularity: 1.48
First Submitted: 2014-12-29 17:23
Last Updated: 2019-10-11 08:41

Pinned Comments

mschu commented on 2019-10-27 15:03

Can anyone confirm if numba works for them with llvmlite patched like below?

I did a clean build for llvmlite+numba and "from numba import jit" gives an llvm error.

For now, the only workaround seems to not update & add in /etc/pacman.conf IgnorePkg = llvm llvm-libs

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

languitar commented on 2019-10-11 08:24

The latest package updates in the official repos make this package unusable:

error: failed to prepare transaction (could not satisfy dependencies) :: installing llvm-libs (9.0.0-3) breaks dependency 'llvm-libs<8.1.0' required by python-llvmlite

bogeyman2007 commented on 2019-06-23 04:37

When I reinstall LLVM 8 then recompile python-llvmlite, I can get the same result of pacman -Qo as yours. But, the same error still happen when I run numba. I think the issue might be in python-numba package so I post a question there

mschu commented on 2019-06-11 20:21

I can not reproduce this. The file should be there, owned by python-llvmlite:

pacman -Qo /usr/lib/python3.7/site-packages/llvmlite/binding/
/usr/lib/python3.7/site-packages/llvmlite/binding/ is owned by python-llvmlite 0.29.0-1

bogeyman2007 commented on 2019-06-10 08:57

I have recompile python-llvmlite but still got the same error. Here is the complete error message.

Traceback (most recent call last):
  File "", line 6, in <module>
    import numba
  File "/usr/lib/python3.7/site-packages/numba/", line 11, in <module>
    from . import config, errors, _runtests as runtests, types
  File "/usr/lib/python3.7/site-packages/numba/", line 18, in <module>
    import llvmlite.binding as ll
  File "/usr/lib/python3.7/site-packages/llvmlite/binding/", line 6, in <module>
    from .dylib import *
  File "/usr/lib/python3.7/site-packages/llvmlite/binding/", line 4, in <module>
    from . import ffi
  File "/usr/lib/python3.7/site-packages/llvmlite/binding/", line 154, in <module>
    raise OSError("Could not load shared object file: {}".format(_lib_name))
OSError: Could not load shared object file:

mschu commented on 2019-06-04 12:16

You need to compile python-llvmlite after upgrading llvm and llvm-libs.

Otherwise, you link to the old llvm-libs library, which no longer exists after your upgrade to llvm=8.

bogeyman2007 commented on 2019-06-04 01:26

When I upgrade llvm and llvm-libs to 8.0.0, I got the following error message when running Numba.

OSError: Could not load shared object file:

I decide to downgrade both llvm and llvm-libs to 7.0.1 and it's working fine again. The python-numba version is 0.44 and python-llvmlite version is 0.29.

Has anyone experienced the same issue?

petronny commented on 2019-05-23 05:53

@a821 @Cbhihe No, the TL;DR version should be

extra-x86_64-build -- -I /path/to/unofficial-dependency.pkg.tar.xz

if you want to build it yourself.

Or install the pre-built version from arch4edu. (also built with extra-x86_64-build)

a821 commented on 2019-05-15 08:12

With recent the update of llvm7 to 7.1.0, python-numba fails to load. Unfortunately, it is not possible to rebuild python-llvmlite because only llvm 7.0.x is supported. However there is a pull request which allows this. I have updated the PKGBUILD using the pull request so now it builds. See patch below.

diff --git a/PKGBUILD b/PKGBUILD
index 259c28e..fb5c866 100644
@@ -1,15 +1,27 @@
 # Maintainer: Michael Schubert < at gmail>
+# Permit building against LLVM 7.1.0
+# see
 pkgdesc="Lightweight LLVM python binding for writing JIT compilers"
 arch=('i686' 'x86_64')
 depends=('python' 'llvm7-libs')
-makedepends=('cython' 'llvm7<7.1.0')
+makedepends=('cython' 'llvm7')
+        "${_commit}.patch")
+            'de191a61499779c56fa85f39e894f24ec8270c6d53131ad92642ca041893cb70')
+prepare() {
+  cd "$srcdir/llvmlite-$pkgver"
+  patch -p1 -i "../${_commit}.patch"

 build() {
   cd "$srcdir/llvmlite-$pkgver"

Cbhihe commented on 2019-04-03 10:25

Installing devtools, setting up a minimal chroot configuration, and working with a clean chroot as advised by @a821, went smoothly. Thanks a821. Important stuff you showed me !

a821 commented on 2019-04-02 05:33

@Cbhihe check the wiki. Or install clean-chroot-manager.

The TL;DR version is install devtools and then

sudo mkarchroot $CHROOT/root base-devel
makechrootpkg -c -r $CHROOT

you can pass the option -I to makechrootpkg to add packages that are dependencies and not in the official repos. Necessary for python-numba