Upstream kind of confirmed that this is caused by swig 4.2.0 [1]. [1] https://github.com/facebookresearch/faiss/issues/3239#issuecomment-1926751972
- Bug#1061741: faiss ftbfs with Python 3.12 as default Matthias Klose
- Bug#1061741: Update from upstream Pushkar Kulkarni