Skip to content

Python 3.14 MacOS x86_64 build errors #1357

@CloseChoice

Description

@CloseChoice

Reporting a bug

I am not quite sure if this is already captured in #1281.

We are receiving errors during the build of SHAP on Python 3.14 on MacOS with x86_64 architecture. We are using the beta release llvmlite==0.46.0b1 currently and receiving an error:

   Traceback (most recent call last):
    File "/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/ffi.py", line 141, in __getattr__
      return self._fntab[name]
             ~~~~~~~~~~~^^^^^^
  KeyError: 'LLVMPY_AddSymbol'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/ffi.py", line 122, in _load_lib
      self._lib_handle = ctypes.CDLL(str(lib_path))
                         ~~~~~~~~~~~^^^^^^^^^^^^^^^
    File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/ctypes/__init__.py", line 462, in __init__
      self._handle = _dlopen(self._name, mode)
                     ~~~~~~~^^^^^^^^^^^^^^^^^^
  OSError: dlopen(/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib, 0x0006): tried: '/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib' (no such file), '/private/var/folders/6c/pzd640_546q6_yfn24r65c_40000gn/T/cibw-run-8yjbefzk/cp314-macosx_x86_64/venv-test-x86_64/lib/python3.14/site-packages/llvmlite/binding/libllvmlite.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

during invocation of numba. See the complete pipeline here.

I checked on pypi and found this wheel:
llvmlite-0.46.0b1-cp314-cp314-macosx_11_0_universal2.whl (37.3 MB view details)
which suggest that they should work on x86_64 and arm64, but seems like they only work on arm64, or I am missing something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions