Created attachment 901882 [details] emerge --info Tried to emerge dev-ruby/rrdtool-bindings but it fails to emerge. letto@localhost: ~ $ sudo emerge -av1 dev-ruby/rrdtool-bindings ... >>> Emerging (1 of 1) dev-ruby/rrdtool-bindings-1.9.0::gentoo * rrdtool-1.9.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking rrdtool-1.9.0.tar.gz to /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work/all >>> Source unpacked in /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work >>> Preparing source in /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work ... * Running prepare phase for all * Running prepare phase for all * Applying rrdtool-bindings-1.4.8-graph-ruby.patch ... [ ok ] * Running source copy phase for ruby31 * Running source copy phase for ruby32 >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-ruby/rrdtool-bindings-1.9.0/work ... * Running configure phase for ruby31 /usr/lib64/ruby/3.1.0/rubygems.rb:15:in `require_relative': cannot load such file -- /usr/lib64/ruby/3.1.0/rubygems/compatibility (LoadError) from /usr/lib64/ruby/3.1.0/rubygems.rb:15:in `<top (required)>' from <internal:gem_prelude>:2:in `require' from <internal:gem_prelude>:2:in `<internal:gem_prelude>' * ERROR: dev-ruby/rrdtool-bindings-1.9.0::gentoo failed (configure phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_configure * environment, line 1784: Called ruby-ng_src_configure * environment, line 1511: Called _ruby_each_implementation 'each_ruby_configure' * environment, line 453: Called _ruby_invoke_environment 'ruby31' 'each_ruby_configure' * environment, line 560: Called each_ruby_configure * environment, line 680: Called die * The specific snippet of code: * ${RUBY} extconf.rb --with-cflags="${CFLAGS} $(usex graph -DHAVE_RRD_GRAPH -UHAVE_RRD_GRAPH)" || die After emerging dev-ruby/rubygems-3.5.11, it installs without problems.
Can you confirm that this was on a fresh install where dev-lang/ruby itself was also freshly installed?
Yes, this happened when installing Gentoo and dev-lang/ruby had just been installed.
This is a problem with the dev-lang/ruby PDEPENDS not being handled in time. We've discussed some solutions for this like a virtual/ruby ebuild but still undecided how to tackle it.