Package Details: python-llvmlite 0.29.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: 22
Popularity: 0.712162
First Submitted: 2014-12-29 17:23
Last Updated: 2019-05-31 07:00

Latest Comments

1 2 3 4 5 6 Next › Last »

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

mschu commented on 2019-04-01 10:15

Working now with llvm7{,-libs} packages

Easiest way to install is to temporarily remote llvm>=8 (using -Rdd), install llvm7 and llvm7-libs, and install this package.