Skip to content

installation problem on intel Mac #25

@borondics

Description

@borondics

I have an issue with the installation on an older Mac.

The problem, even if SRW is compiled from source is the llvmlite package.

This is the error:

> pip install llvmlite

Collecting llvmlite
  Using cached llvmlite-0.46.0.tar.gz (193 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: llvmlite
  Building wheel for llvmlite (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for llvmlite (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [42 lines of output]
      running bdist_wheel
      /Users/borondics/miniforge3/envs/barc4sr/bin/python3.11 /private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi/build.py
      -- The C compiler identification is AppleClang 16.0.0.16000026
      -- The CXX compiler identification is AppleClang 16.0.0.16000026
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      CMake Error at CMakeLists.txt:21 (find_package):
        Could not find a package configuration file provided by "LLVM" with any of
        the following names:

          LLVMConfig.cmake
          llvm-config.cmake

        Add the installation prefix of "LLVM" to CMAKE_PREFIX_PATH or set
        "LLVM_DIR" to a directory containing one of the above files.  If "LLVM"
        provides a separate development package or SDK, be sure it has been
        installed.


      -- Configuring incomplete, errors occurred!
      Running: cmake -G Unix Makefiles /private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi
      Traceback (most recent call last):
        File "/private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi/build.py", line 209, in <module>
          main()
        File "/private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi/build.py", line 203, in main
          main_posix('.dylib')
        File "/private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi/build.py", line 189, in main_posix
          try_cmake(here_dir, build_dir, generator)
        File "/private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi/build.py", line 127, in try_cmake
          subprocess.check_call(args)
        File "/Users/borondics/miniforge3/envs/barc4sr/lib/python3.11/subprocess.py", line 413, in check_call
          raise CalledProcessError(retcode, cmd)
      subprocess.CalledProcessError: Command '['cmake', '-G', 'Unix Makefiles', '/private/var/folders/tt/s6sbh8hn1ysbvb2bxgr5cbm40000gn/T/pip-install-t7ud3ryt/llvmlite_fbb377a3ee3141ceb4e5de46b3b112d4/ffi']' returned non-zero exit status 1.
      error: command '/Users/borondics/miniforge3/envs/barc4sr/bin/python3.11' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for llvmlite
Failed to build llvmlite
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> llvmlite

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions