When emerging dev-lang/ruby it only installs the documentation, nothing else; but the ebuild is successful. Every other ruby ebuild fails afterwards, because there is not interpreter, nor any gems installed. It used to work on my system. But at some point one or two weeks ago it just started to break in this way. There wasn't really anything major I changed IIRC (sorry, I might have forgotten something). Reproducible: Always Steps to Reproduce: 1. emerge -a1 dev-lang/ruby Actual Results: Only the documentation is installed: # equery f dev-lang/ruby * Searching for ruby in dev-lang ... * Contents of dev-lang/ruby-2.6.6-r2: /usr /usr/lib64 /usr/lib64/ruby /usr/lib64/ruby/gems /usr/lib64/ruby/gems/2.6.0 /usr/share /usr/share/doc /usr/share/doc/ruby-2.6.6-r2 /usr/share/doc/ruby-2.6.6-r2/ChangeLog.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-1.8.7.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-1.9.1.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-1.9.2.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-1.9.3.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-2.0.0.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-2.1.0.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-2.2.0.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-2.3.0.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-2.4.0.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS-2.5.0.bz2 /usr/share/doc/ruby-2.6.6-r2/NEWS.bz2 /usr/share/doc/ruby-2.6.6-r2/README.EXT /usr/share/doc/ruby-2.6.6-r2/README.EXT.ja /usr/share/doc/ruby-2.6.6-r2/README.ja.md.bz2 /usr/share/doc/ruby-2.6.6-r2/README.md.bz2 Expected Results: The ruby interpreter, gems, and other necessary components are installed. # emerge --info Portage 3.0.18 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.32-r7, 5.11.16-gentoo x86_64) [24/9795] ================================================================= System uname: Linux-5.11.16-gentoo-x86_64-Intel-R-_Core-TM-_i5-7300HQ_CPU_@_2.50GHz-with-gentoo-2.7 KiB Mem: 15866088 total, 3194068 free KiB Swap: 16777212 total, 16775932 free Timestamp of repository gentoo: Fri, 14 May 2021 21:15:01 +0000 Head commit of repository gentoo: 2cc375ee22608dff037229d7ece921cffc818202 Head commit of repository steam-overlay: 9a1249fdb3e3005041fb768af02e235c46dc4a18 sh bash 5.0_p18 ld GNU ld (Gentoo 2.35.2 p1) 2.35.2 distcc 3.3.3 x86_64-pc-linux-gnu [disabled] app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 2.7.18_p8::gentoo, 3.7.10_p1::gentoo, 3.8.8_p1::gentoo, 3.9.2_p1::gentoo dev-lang/rust: 1.51.0-r2::gentoo dev-util/cmake: 3.18.5::gentoo dev-util/pkgconfig: 0.29.2::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.22::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2-r1::gentoo sys-devel/binutils: 2.35.2::gentoo sys-devel/gcc: 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.32-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes localOverlay location: /usr/local/portage/local-overlay masters: gentoo priority: 0 crossdev location: /var/db/repos/localrepo-crossdev masters: gentoo priority: 10 steam-overlay location: /var/lib/layman/steam-overlay sync-type: git sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA PUEL Q3AEULA LOKI-EULA dlj-1.1 sun-bcla-java-vm AdobeFlash-10 AdobeFlash-10.1 Oracle-BCLA-JavaSE google-chrome AdobeFlash-10.3 AdobeFlash-11.x FraunhoferFDK skype-4.0.0.7-copyright RAR teamspeak3" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=broadwell -mtune=broadwell -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc:/usr/share/sddm/scripts/Xsetup /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=broadwell -mtune=broadwell -O2 -pipe" DISTDIR="/usr/portage/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unr esolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="rsync://ftp-stud.hs-esslingen.de/gentoo/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirrors.163.com/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en en_US en_GB de de_DE" MAKEOPTS="-j9 -l5 --output-sync=line" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac aalib acl acpi activities akonadi alsa amd64 appstream audiofile bash-completion berkdb bluetooth branding brotli bzip2 c++0x c++11 cairo caps cdda cddb cdio cdr cleartype cli crypt cscope cups curl cvs dbus declarative dga dolphin dri dts dvd dvdr egl emboss encode examples exif ext2 ext4 extras faac faad fat fbcon ffmpeg firefox flac flash fontconfig fontforge fortran ftp fuse gcrypt gd gdb gdbm gif git glamore glx gnome-keyring gpg gphoto2 gpm gs gstreamer gtk gtk2 gtk3 gtkstyle gui highlight http2 iconv icq icu id3 id3tag i dn ieee1394 imagemagick ipv6 jabber java jce joystick jpeg jpeg2k kate kde kipi konqueror kwallet lame laptop latex lcms libcaca libedit libglvnd libinput libnotify libproxy libsamplerate libtirpc lm-sensors lm_sensors lua lzma lzo mad man matroska midi mng modplug mono mp3 mp4 mpeg mplayer msn mtp multilib multimedia musepack music ncurses netlink networkmanager nls nptl nsplugin nss ntp nvidia ocamlopt offensive ogg okular openal opengl openmp opus pam pango pch pcmcia pcre pdf perl phonon plasma pmu png policykit postgres postscript ppds p rivate-headers ps pulseaudio python qml qt qt5 readline real regex ruby samba sample scanner sdl seccomp semantic-desktop sid sndfile socks socks5 spell split-usr sqlite sqlite3 ssh ssl startup-notification subversion svc svg syslog systemd taglib tcpd tex theora threads ti ff tools truetype twolame udev udisks uicktime unicode upower usb utils v4l v4l2 vaapi vala vcd vdpau videos vim vim-syntax vlc vorbis vpx vulkan wavepack wavpack webkit webp widgets wifi win32codecs wxwidgets x264 x265 xattr xcb xcomposite xfs xinerama xml xscreensaver xv xvid xvmc xz zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES ="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env e xpires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rr dtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyl e oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc multiboot" INPUT_DEVICES="evdev libinput synaptics joystick" KERNEL="linux" L10N="en en-US en-GB de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb2 16 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF NVPTX X86 WebAssembly SystemZ" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1 lua5-2 luajit" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7- 4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel i915 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition t ee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
I gonna attach the build output when I build the ebuild manually via: # /usr/portage/dev-lang/ruby/ # ebuild ruby-2.6.6-r2.ebuild clean # ebuild ruby-2.6.6-r2.ebuild install This is successful, as is the normal `emerge dev-lang/ruby`; but the same, when I inspect the result # cd /var/tmp/portage/dev-lang/ruby-2.6.6-r2/ # find image/ image/ image/usr image/usr/lib64 image/usr/lib64/ruby image/usr/lib64/ruby/gems image/usr/lib64/ruby/gems/2.6.0 image/usr/share image/usr/share/doc image/usr/share/doc/ruby-2.6.6-r2 image/usr/share/doc/ruby-2.6.6-r2/README.EXT image/usr/share/doc/ruby-2.6.6-r2/README.EXT.ja image/usr/share/doc/ruby-2.6.6-r2/NEWS-1.9.1.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-1.9.3.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-1.9.2.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-1.8.7.bz2 image/usr/share/doc/ruby-2.6.6-r2/ChangeLog.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-2.1.0.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-2.0.0.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-2.2.0.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-2.3.0.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-2.4.0.bz2 image/usr/share/doc/ruby-2.6.6-r2/NEWS-2.5.0.bz2 image/usr/share/doc/ruby-2.6.6-r2/README.ja.md.bz2 image/usr/share/doc/ruby-2.6.6-r2/README.md.bz2
Created attachment 708639 [details] build.log
MAKEOPTS="-j9 -l5 --output-sync=line" Haven't looked into why, but this --output-sync=line seems to cause this, try to remove it.
(In reply to Ionen Wolkens from comment #3) > MAKEOPTS="-j9 -l5 --output-sync=line" > > Haven't looked into why, but this --output-sync=line seems to cause this, > try to remove it. Yes, --output-sync=line is the culprit. This also causes problems with ruby 2.7 and ruby 3.0. To set expectations here this bug is low in priority for me and most likely won't get worked on. Probably best to file an upstream bug about this. I would also not recommend enabling this make option for all ebuilds, given the wide variety of build systems out there, unless you want to hunt for and fix issues with it specifically.
(In reply to Hans de Graaff from comment #4) > (In reply to Ionen Wolkens from comment #3) > > MAKEOPTS="-j9 -l5 --output-sync=line" > > > > Haven't looked into why, but this --output-sync=line seems to cause this, > > try to remove it. > > Yes, --output-sync=line is the culprit. This also causes problems with ruby > 2.7 and ruby 3.0. > Ah yes, indeed. I had not thought this could gave side-effects once a Makefile already work with parallel builds.. well, I can just remove it, I don't really strictly need it, it just makes build errors easier to debug sometimes. Maybe it makes sense to add a warning for users or something to the ebuild. Its not very obvious.. well it wasn't for me anyway. I'll mark the report as resolved, thanks for the help.
Reported upstream: https://bugs.ruby-lang.org/issues/17870