Package Details: faiss-cuda 1.7.4-1

Git Clone URL: https://aur.archlinux.org/faiss.git (read-only, click to copy)
Package Base: faiss
Description: A library for efficient similarity search and clustering of dense vectors.
Upstream URL: https://github.com/facebookresearch/faiss
Licenses: MIT
Provides: faiss, python-faiss, python-faiss-cuda
Submitter: d4l3k
Maintainer: huyz
Last Packager: huyz
Votes: 1
Popularity: 0.000000
First Submitted: 2018-08-04 18:42 (UTC)
Last Updated: 2023-09-10 02:02 (UTC)

Latest Comments

fixman commented on 2024-08-02 13:08 (UTC)

The build for faiss-cpu is currently failing.

[ 93%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/distances_fused/distances_fused.cpp.o
[ 95%] Building CXX object faiss/CMakeFiles/faiss.dir/utils/distances_fused/simdlib_based.cpp.o
[ 95%] Building CXX object faiss/CMakeFiles/faiss.dir/invlists/OnDiskInvertedLists.cpp.o
[ 97%] Linking CXX static library libfaiss.a
[ 97%] Built target faiss
[ 97%] Building CXX object faiss/python/CMakeFiles/swigfaiss.dir/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx.o
/home/mfixman/.cache/yay/faiss/src/faiss/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx: In function ‘PyObject* swig_ptr(PyObject*)’:
/home/mfixman/.cache/yay/faiss/src/faiss/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:4943:41: error: ‘SWIGTYPE_p_unsigned_long_long’ was not declared in this scope; did you mean ‘SWIGTYPE_p_unsigned_long’?
 4943 |         return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long_long, 0);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mfixman/.cache/yay/faiss/src/faiss/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:1140:94: note: in definition of macro ‘SWIG_NewPointerObj’
 1140 | SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
      |                                                                                      ^~~~

/home/mfixman/.cache/yay/faiss/src/faiss/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:4950:41: error: ‘SWIGTYPE_p_long_long’ was not declared in this scope; did you mean ‘SWIGTYPE_p_long’?
 4950 |         return SWIG_NewPointerObj(data, SWIGTYPE_p_long_long, 0);
      |                                         ^~~~~~~~~~~~~~~~~~~~
/home/mfixman/.cache/yay/faiss/src/faiss/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:1140:94: note: in definition of macro ‘SWIG_NewPointerObj’
 1140 | SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
      |                                                                                      ^~~~

make[2]: *** [faiss/python/CMakeFiles/swigfaiss.dir/build.make:76: faiss/python/CMakeFiles/swigfaiss.dir/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:240: faiss/python/CMakeFiles/swigfaiss.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: faiss-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
faiss-cpu - exit status 4

It seems like a problem with the faiss/src/faiss/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx source file: SWIGTYPE_p_long is #defined on line 3413, but SWIGTYPE_p_long_long is not defined anywhere.

leomao commented on 2019-01-02 05:27 (UTC) (edited on 2019-01-02 05:27 (UTC) by leomao)

The package name should be changed to faiss-git, and it misses dependencies.