Package Details: python-llvmlite 0.30.0-1

Git Clone URL: https://aur.archlinux.org/python-llvmlite.git (read-only)
Package Base: python-llvmlite
Description: Lightweight LLVM python binding for writing JIT compilers
Upstream URL: https://github.com/numba/llvmlite
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 https://aur.archlinux.org/packages/python-numba/#comment-698043.

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/libllvmlite.so
/usr/lib/python3.7/site-packages/llvmlite/binding/libllvmlite.so 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 "fast_functions.py", line 6, in <module>
    import numba
  File "/usr/lib/python3.7/site-packages/numba/__init__.py", line 11, in <module>
    from . import config, errors, _runtests as runtests, types
  File "/usr/lib/python3.7/site-packages/numba/config.py", line 18, in <module>
    import llvmlite.binding as ll
  File "/usr/lib/python3.7/site-packages/llvmlite/binding/__init__.py", line 6, in <module>
    from .dylib import *
  File "/usr/lib/python3.7/site-packages/llvmlite/binding/dylib.py", line 4, in <module>
    from . import ffi
  File "/usr/lib/python3.7/site-packages/llvmlite/binding/ffi.py", line 154, in <module>
    raise OSError("Could not load shared object file: {}".format(_lib_name))
OSError: Could not load shared object file: libllvmlite.so

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: libllvmlite.so

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,27 @@
 # Maintainer: Michael Schubert <mschu.dev at gmail>
+
+# Permit building against LLVM 7.1.0
+# see https://github.com/numba/llvmlite/pull/481
+_commit=f9230dd07330ed989a47956c9db898cc5c7a8525
+
 pkgname=python-llvmlite
 pkgver=0.28.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Lightweight LLVM python binding for writing JIT compilers"
 url="https://github.com/numba/llvmlite"
 arch=('i686' 'x86_64')
 license=('BSD')
 depends=('python' 'llvm7-libs')
-makedepends=('cython' 'llvm7<7.1.0')
-source=("https://github.com/numba/llvmlite/archive/v$pkgver.tar.gz")
-sha256sums=('39868fd2d86cb724ceaac4a34773e47e3b3ba6eeb445b9ac0abaf17a620e74dc')
+makedepends=('cython' 'llvm7')
+source=("https://github.com/numba/llvmlite/archive/v$pkgver.tar.gz"
+        "https://github.com/numba/llvmlite/pull/481/commits/${_commit}.patch")
+sha256sums=('39868fd2d86cb724ceaac4a34773e47e3b3ba6eeb445b9ac0abaf17a620e74dc'
+            '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