Closed sambostock closed 1 year ago
Hi @sambostock, can you paste the contents of /tmp/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0-static/faiss-0.2.7/mkmf.log
?
I was trying to extract that artifact from CI, but I can't seem to reproduce this anymore. Perhaps something was cached in CI which has since been blown away.
I'll close this for now. If something similar happens on the next update and I'm able to reproduce consistently, I'll let you know. Sorry about the noise!
I noticed Dependabot PRs bumping
faiss
from0.2.5
to0.2.6
, and later to0.2.7
were failing to build the gem in CI due to the following error:Extended output
``` ... Using rice 4.0.4 ... Installing faiss 0.2.7 with native extensions -- | Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | | current directory: /tmp/bundle/ruby/3.2.0/gems/faiss-0.2.7/ext/faiss | /usr/local/ruby/bin/ruby extconf.rb | checking for rice/rice.hpp in /tmp/bundle/ruby/3.2.0/gems/rice-4.0.4/include... | no | *** extconf.rb failed *** | Could not create Makefile due to some reason, probably lack of necessary | libraries and/or headers. Check the mkmf.log file for more details. You may | need configuration options. | | Provided configuration options: | --with-opt-dir | --without-opt-dir | --with-opt-include | --without-opt-include=${opt-dir}/include | --with-opt-lib | --without-opt-lib=${opt-dir}/lib | --with-make-prog | --without-make-prog | --srcdir=. | --curdir | --ruby=/usr/local/ruby/bin/$(RUBY_BASE_NAME) | /tmp/bundle/ruby/3.2.0/gems/rice-4.0.4/lib/mkmf-rice.rb:120:in `Oddly enough, it installs fine on my machine. In any case, after bumping
rice
from4.0.4
to4.1.0
it build just fine.Did something change in
faiss 0.2.6
that requiresrice > 4.0.4
, and should the required version be updated?