Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
barracuda156 opened this issue Feb 27, 2024 · 2 comments

Comments

@barracuda156
Copy link

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
Copy link
Member

doudou commented Feb 29, 2024

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

@barracuda156
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants