dev-ruby/racc-1.7.3 has a hard-coded expectation of /usr/bin/mkdir on systems where /bin/mkdir exists. I use this profile: default/linux/amd64/23.0/split-usr/desktop and this results in >>> Install dev-ruby/racc-1.7.3 into /var/tmp/portage/dev-ruby/racc-1.7.3/image * Running install phase for ruby31 * installing extensions make -j9 V=1 sitearchdir=/var/tmp/portage/dev-ruby/racc-1.7.3/image/usr/lib64/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/racc-1.7.3 sitelibdir=/var/tmp/portage/dev-ruby/racc-1.7.3/image/usr/lib64/ruby/site_ruby/3.1.0 -C ext/racc/cparse install make: Entering directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby31/racc-1.7.3/ext/racc/cparse' /usr/bin/mkdir -p . /var/tmp/portage/dev-ruby/racc-1.7.3/image/usr/lib64/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/racc-1.7.3/racc make: /usr/bin/mkdir: No such file or directory make: *** [Makefile:204: .sitearchdir.-.racc.time] Error 127 make: Leaving directory '/var/tmp/portage/dev-ruby/racc-1.7.3/work/ruby31/racc-1.7.3/ext/racc/cparse' This bug is filed as per request from the forum here: https://forums.gentoo.org/viewtopic-p-8829964.html#8829964 and it might have relations with existing bug https://bugs.gentoo.org/932386
*** This bug has been marked as a duplicate of bug 932386 ***