Bug#1062656: Faiss fails to build from source
Package: faiss
Version: 1.7.4-3
Severity: high
The faiss build seems to fail in debian/sid due to a recent upgrade of
dependency swig to version 4.2.0-1. It's my guess that this issue did
not exist with swig 4.1.0-0.3.
This was also reported upstream [1].
----------------------------------------------------------------------------------------
/<<PKGBUILDDIR>>/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:
In function ‘PyObject* swig_ptr(PyObject*)’:
/<<PKGBUILDDIR>>/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:4939:41:
error: ‘SWIGTYPE_p_unsigned_long_long’ was not declared in this scope;
did you mean ‘SWIGTYPE_p_unsigned_long’?
4939 | return SWIG_NewPointerObj(data, SWIGTYPE_p_unsigned_long_long, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:1136:94:
note: in definition of macro ‘SWIG_NewPointerObj’
1136 | #define SWIG_NewPointerObj(ptr, type, flags)
SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
| ^~~~
/<<PKGBUILDDIR>>/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:4946:41:
error: ‘SWIGTYPE_p_long_long’ was not declared in this scope; did you
mean ‘SWIGTYPE_p_long’?
4946 | return SWIG_NewPointerObj(data, SWIGTYPE_p_long_long, 0);
| ^~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/build/faiss/python/CMakeFiles/swigfaiss.dir/swigfaissPYTHON_wrap.cxx:1136:94:
note: in definition of macro ‘SWIG_NewPointerObj’
1136 | #define SWIG_NewPointerObj(ptr, type, flags)
SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
| ^~~~
[ 92%] Building CXX object c_api/CMakeFiles/faiss_c.dir/utils/distances_c.cpp.o
[ 92%] Building CXX object
tests/CMakeFiles/faiss_test.dir/test_pq_encoding.cpp.o
-----------------------------------------------------------------------------------------
[1] https://github.com/facebookresearch/faiss/issues/3235
Reply to:
- Prev by Date:
Processed: tagging 1061866, tagging 1061872, tagging 1061873, tagging 1061874, tagging 1061875, tagging 1061878 ...
- Next by Date:
Bug#1062657: Faiss needs to be migrated away from using distutils
- Previous by thread:
Processed: tagging 1061866, tagging 1061872, tagging 1061873, tagging 1061874, tagging 1061875, tagging 1061878 ...
- Next by thread:
Bug#1062657: Faiss needs to be migrated away from using distutils
- Index(es):