cat /var/tmp/portage/dev-lang/ruby-3.1.3/temp/build.log | tail -50 LD = x86_64-pc-linux-gnu-ld LDSHARED = x86_64-pc-linux-gnu-gcc -shared CFLAGS = -march=native -O2 -pipe -fno-strict-aliasing -fPIC XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/unicode/13.0.0 CPPFLAGS = DLDFLAGS = -Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-soname,libruby31.so.3.1 -fstack-protector-strong SOLIBS = -lz -lpthread -lrt -lrt -lgmp -ldl -lcrypt -lm LANG = ru_RU.utf8 LC_ALL = LC_CTYPE = MFLAGS = -j8 --jobserver-auth=fifo:/var/tmp/portage/dev-lang/ruby-3.1.3/temp/GMfifo41 /usr/bin/ruby --disable=gems -C "." \ -Itool/lib -rfileutils -rbundled_gem -answ \ -e 'BEGIN {FileUtils.mkdir_p(d = ".bundle/gems")}' \ -e 'gem, ver, _, rev = *$F' \ -e 'next if !ver or /^#/=~gem' \ -e 'g = "#{gem}-#{ver}"' \ -e 'if File.directory?("#{d}/#{g}")' \ -e 'elsif rev and File.exist?(gs = "gems/src/#{gem}/#{gem}.gemspec")' \ -e 'BundledGem.copy(gs, ".bundle")' \ -e 'else' \ -e 'BundledGem.unpack("gems/#{g}.gem", ".bundle")' \ -e 'end' \ -e 'FileUtils.rm_rf("#{d}/#{g}/.github")' \ gems/bundled_gems x86_64-pc-linux-gnu-gcc (Gentoo 12.2.1_p20230121-r1 p10) 12.2.1 20230121 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. /usr/bin/ruby --disable=gems ./tool/file2lastrev.rb -q --revision.h --srcdir="." > revision.tmp pkg_config=x86_64-pc-linux-gnu-pkg-config && PKG_CONFIG_PATH=. ${pkg_config:-:} --print-errors ruby.tmp mv -f ruby.tmp.pc ruby-3.1.pc Traceback (most recent call last): 4: from -e:in `require' 3: from /var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/lib/bundled_gem.rb:2:in `' 2: from /var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3/tool/lib/bundled_gem.rb:2:in `require' 1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `' /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require': cannot load such file -- rubygems/compatibility (LoadError) make: *** [uncommon.mk:1370: extract-gems-sequential] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: dev-lang/ruby-3.1.3::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-lang/ruby-3.1.3::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-lang/ruby-3.1.3::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-lang/ruby-3.1.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ruby-3.1.3/temp/environment'. * Working directory: '/var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3' * S: '/var/tmp/portage/dev-lang/ruby-3.1.3/work/ruby-3.1.3'