faiss FTBFS on noble

Bug #2052017 reported by Pushkar Kulkarni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
faiss (Ubuntu)
New
Undecided
Unassigned

Bug Description

The build seems to fail due to a recent upgrade of dependency swig [1] to 4.2.0-1 in noble-proposed. The last successful upload was built using swig 4.1.0-0.3[2]. Someone also reported the same failure upstream [3]. The build also fails with swig 4.2.0-0ubuntu1 in noble-release.

[1] https://launchpad.net/ubuntu/+source/swig/4.2.0-1
[2] https://launchpad.net/ubuntu/+source/faiss/1.7.4-3build1/+build/27660583
[3] https://github.com/facebookresearch/faiss/issues/3235

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote (last edit ):

Oh, btw I am suspecting swig because it appears that some faiss Python bindings were not generated in the failing build:

-----------------------------------------------------------------------------------------

/<<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

-----------------------------------------------------------------------------------------

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

Upstream kind of confirmed that this is caused by swig 4.2.0 [1].

[1] https://github.com/facebookresearch/faiss/issues/3239#issuecomment-1926751972

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.