numba / llvmlite

A lightweight LLVM python binding for writing JIT compilers
https://llvmlite.pydata.org/
BSD 2-Clause "Simplified" License
1.94k stars 321 forks source link

conda-forge build failures related to PyPy's ctypes #944

Closed sklam closed 1 year ago

sklam commented 1 year ago

from: https://github.com/conda-forge/llvmlite-feedstock/pull/69#issuecomment-1532307374:

  File "/home/conda/feedstock_root/build_artifacts/llvmlite_1683058932597/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/pypy3.9/_ctypes/function.py", line 425, in _getfuncptr_fromaddress
    return _ffi.FuncPtr.fromaddr(address, '', ffiargs, ffires, self._flags_,
SystemError: not supported by libffi

and https://github.com/conda-forge/llvmlite-feedstock/pull/69#issuecomment-1533406310:

All the failing tests are those which rely on a custom LLVM compiler pass that is compiled and shipped from llvmlite's source. The error suggests _ffi.FuncPtr.fromaddr is not supported by libffi but I don't think llvmlite has changed the way this pass is loaded/accessed since llvmlite 0.39 which appears to have built successfully on PyPy. I wonder if the problem is maybe something link resolution related instead and the error just ends up at that point in FFI loading.