rock-core / base-ruby_eigen

The ruby bindings for the Eigen linear algebra library
MIT License
1 stars 0 forks source link

[macOS] Build fails with: `fatal error: 'rice/Class.hpp' file not found` #1

Open barracuda156 opened 8 months ago

barracuda156 commented 8 months ago
Building native extensions. This could take a while...
ERROR:  Error installing /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/eigen-0.1.0/eigen.gem:
    ERROR: Failed to build gem native extension.

    current directory: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/eigen-0.1.0/ext/eigen
/opt/local/bin/ruby3.3 extconf.rb
checking for rice/rice.hpp in /opt/local/lib/ruby3.3/gems/3.3.0/gems/rice-4.2.1/include... yes
checking for -lc++... yes
checking for pkg-config for eigen3... ["-I/opt/local/include/eigen3 ", "", ""]
creating Makefile

current directory: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/eigen-0.1.0/ext/eigen
make DESTDIR\= sitearchdir\=./.gem.20240227-52452-ifdt43 sitelibdir\=./.gem.20240227-52452-ifdt43 clean
rm -f 
rm -fr eigen.bundle eigen.bundle.dSYM eigen.o *.bak mkmf.log .*.time

current directory: /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/eigen-0.1.0/ext/eigen
make DESTDIR\= sitearchdir\=./.gem.20240227-52452-ifdt43 sitelibdir\=./.gem.20240227-52452-ifdt43
/usr/bin/clang++ -I. -I/opt/local/include/ruby-3.3.0/arm64-darwin23 -I/opt/local/include/ruby-3.3.0/ruby/backward -I/opt/local/include/ruby-3.3.0 -I. -I/opt/local/lib/ruby3.3/gems/3.3.0/gems/rice-4.2.1/include -I/opt/local/include/eigen3 -I/opt/local/include -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -fno-common -pipe -I/opt/local/libexec/openssl3/include -Os -stdlib=libc++ -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fdeclspec -std=c++17  -arch arm64 -o eigen.o -c eigen.cpp
eigen.cpp:1:10: fatal error: 'rice/Class.hpp' file not found
#include "rice/Class.hpp"
         ^~~~~~~~~~~~~~~~
1 error generated.
make: *** [eigen.o] Error 1

make failed, exit code 2

Gem files will remain installed in /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/gems/eigen-0.1.0 for inspection.
Results logged to /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0/extensions/arm64-darwin-23/3.3.0/eigen-0.1.0/gem_make.out
Command failed:  cd "/opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/eigen-0.1.0" && /opt/local/bin/gem3.3 install --local --force --install-dir /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/destroot/opt/local/lib/ruby3.3/gems/3.3.0 /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_ruby_rb-eigen/rb33-eigen/work/eigen-0.1.0/eigen.gem 
Exit code: 1

rb-rice 4.2.1 is installed.

doudou commented 8 months ago

Hey. This is actually not in use ... not much I can help with.

barracuda156 commented 8 months ago

Hey. This is actually not in use ... not much I can help with.

Thanks for responding. Maybe archive the repo then, so it is clear that it is not supported anymore?

P. S. As to the error, looks like rb-rice does not have such a header anymore, perhaps it is renamed or replaced, but I did not try to dig its commit history.