Skip to content

Build faiss on Alpine in 2025 #4366

@synergiator

Description

@synergiator

Is it possible to build faiss on Alpine? In recent years there have been reports on issues with that.

I have some different approaches but something is missing:


0.239 Cloning into 'faiss'...                                                                                                                                      
31.60 -- The CXX compiler identification is GNU 14.2.0                                                                                                             
31.62 -- Detecting CXX compiler ABI info
31.72 -- Detecting CXX compiler ABI info - done
31.75 -- Check for working CXX compiler: /usr/bin/c++ - skipped
31.75 -- Detecting CXX compile features
31.75 -- Detecting CXX compile features - done
31.97 -- Found OpenMP_CXX: -fopenmp (found version "4.5")
31.97 -- Found OpenMP: TRUE (found version "4.5")
31.97 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
32.08 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
32.08 -- Found Threads: TRUE
32.09 -- Could NOT find MKL (missing: MKL_LIBRARIES) 
32.10 -- Looking for sgemm_
32.20 -- Looking for sgemm_ - not found
32.21 -- Looking for sgemm_
32.32 -- Looking for sgemm_ - found
32.32 -- Found BLAS: /usr/lib/libopenblas.so
32.34 -- Looking for cheev_
32.45 -- Looking for cheev_ - found
32.45 -- Found LAPACK: /usr/lib/libopenblas.so;-lm;-ldl
32.49 -- Found SWIG: /usr/bin/swig (found version "4.3.0") found components: python
32.95 CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
32.95   Could NOT find Python (missing: Python_INCLUDE_DIRS Python_LIBRARIES
32.95   Python_NumPy_INCLUDE_DIRS Development NumPy Development.Module
32.95   Development.Embed)
32.95 Call Stack (most recent call first):
32.95   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
32.95   /usr/share/cmake/Modules/FindPython.cmake:673 (find_package_handle_standard_args)
32.95   faiss/python/CMakeLists.txt:282 (find_package)
32.95 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions