Skip to content

Cannot build pywhispercpp due to an error in the OpenMP condition/check in cmake #94

@Brainiarc7

Description

@Brainiarc7

Following the wiki's instructions, namely building from source with pip on a CUDA-enabled environment, I run into the error(s):

       -- Found Git: /usr/bin/git (found version "2.34.1")
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
       -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
       -- Found Threads: TRUE
       -- Found OpenMP_C: -fopenmp (found version "4.5")
       CMake Error at /tmp/pip-build-env-h39djzmn/overlay/local/lib/python3.10/dist-packages/cmake/data/share/cmake-3.31/Modules/FindOpenMP.cmake:644 (if):
         if given arguments:
       
           "CMAKE_C_COMPILER_ID" "STREQUAL" "Fujitsu" "OR" "STREQUAL" "IntelLLVM"
       
         Unknown arguments specified
       Call Stack (most recent call first):
         whisper.cpp/ggml/src/CMakeLists.txt:154 (find_package)
       
       
       -- Configuring incomplete, errors occurred!

This happens on both the main and the current release tag.

This is an Ubuntu 22.04LTS machine, with CUDA and the relevant developer-related packages installed.
For sanity checks, I've also installed the OpenMP-related packages:

sudo apt install openmpi-bin openmpi-common libopenmpi-dev libomp-dev

To no avail.

Any pointers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions