This appears to be a recurrence of #369291 that was allegedly fixed with 1.4.0 bump (#553752). I'm guessing it inadvertently came back in 1.5.0. I encountered this curing emerge -ev @world after moving to gcc 11 Related: #536442 # emerge --info dev-embedded/gputils Portage 3.0.20 (python 3.9.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r1, 5.14.9 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.14.9-x86_64-AMD_Ryzen_7_2700X_Eight-Core_Processor-with-glibc2.33 KiB Mem: 65736084 total, 5527152 free KiB Swap: 33554428 total, 33390076 free Timestamp of repository gentoo: Sun, 17 Oct 2021 23:00:01 +0000 Head commit of repository gentoo: 332d132bf226d187bf06c3ae4218c4266a596a6d sh bash 5.1_p8 ld GNU gold (Gentoo 2.37_p1 p0 2.37) 1.16 distcc 3.4 x86_64-pc-linux-gnu [disabled] ccache version 4.3 [disabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.6.14_p1::gentoo, 3.7.12_p1::gentoo, 3.8.12_p1::gentoo, 3.9.7_p1::gentoo dev-lang/rust: 1.53.0::gentoo dev-util/ccache: 4.3-r3::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.43.5-r1::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.64-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 4.9.4-r1::gentoo, 8.5.0-r1::gentoo, 9.4.0::gentoo, 10.3.0-r2::gentoo, 11.2.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.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 love-local location: /usr/local/portage masters: gentoo priority: 0 graaff location: /var/lib/layman/graaff masters: gentoo priority: 50 guru location: /var/lib/layman/guru sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git masters: gentoo priority: 50 java location: /var/lib/layman/java masters: gentoo priority: 50 lto-overlay location: /var/lib/layman/lto-overlay sync-type: laymansync sync-uri: https://github.com/InBetweenNames/gentooLTO.git masters: gentoo mv priority: 50 mv location: /var/lib/layman/mv masters: gentoo priority: 50 palemoon location: /var/lib/layman/palemoon masters: gentoo priority: 50 rion location: /var/lib/layman/rion sync-type: laymansync sync-uri: https://github.com/rion-overlay/rion-overlay.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 zugaina location: /var/lib/layman/zugaina masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -ggdb3 -ffat-lto-objects -pipe -fgraphite-identity" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/teamspeak3-server/ts3server.ini /etc/teamspeak3-server/ts3server_mariadb.ini /etc/teamspeak3-server/tsdns_settings.ini /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/angband/gamedata/ /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php8.0/ext-active/ /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=native -O2 -ggdb3 -ffat-lto-objects -pipe -fgraphite-identity" DISTDIR="/mnt/large/distfiles" EMERGE_DEFAULT_OPTS="-j8 --load-average=20 --with-bdeps=y --autounmask=n" 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 buildpkg candy cgroup compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.romnet.org/gentoo/ http://mirror.leaseweb.com/gentoo/ http://ftp.free.fr/mirrors/ftp.gentoo.org/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_US en" MAKEOPTS="-j16 --load-average=20" PKGDIR="/mnt/large/packages" PORTAGE_COMPRESS="pxz" PORTAGE_COMPRESS_FLAGS="-9e" 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="/tmp" USE="X a52 aac aacs acl acpi activities aes aio alsa amd64 amr aom apache2 avx avx2 bcache bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr celt cjk cli crypt cups cxx d3d9 dav1d dbus declarative default-gold designer device-mapper dirac directfb djvu dot dri dts dvd dvdr elogind emboss encode exif f16c faad fdk ffmpeg fftw flac fluidsynth fma3 fontconfig fortran fpm fuse gd gdbm geolocation gif git glamor go gphoto2 gpm gps graphite graphviz gsm gstreamer gtk gui hardened hddtemp hdri highlight iconv icu ipv6 jbig jpeg jpeg2k kde kerberos kipi kwallet lame latex lcms libass libcaca libglvnd libnotify libsamplerate libtirpc lm_sensors log4j lto lvm lz4 lzma lzo mad mariadb matroska midi mjpeg mmx mmxext mng mono mp3 mp4 mpeg mtp multicall multilib multitarget musepack natspec ncurses netlink networkmanager nfs nls nptl nsplugin objc objc++ objc-gc oce ogg openal opencv openexr opengl openh264 openmp openssl opus osmesa pam pango pcap pch pclmul pcre pdf perl pgo php plasma playlist png policykit popcnt postgres postproc postscript ppds pulseaudio python qml qt5 rar raw rdp readline sasl savedconfig scanner schroedinger sdl seccomp sensors sid smp snappy speech speex spell spice split-usr sqlite squashfs sse sse2 sse3 sse4_1 sse4_2 sse4a ssh ssl ssse3 startup-notification static-libs subversion svg syslog systemtap taglib tcpd telepathy theora threads tiff timidity tools tremor truetype tty-helpers twolame udev udisks unicode upnp-av upower usb usbredir utils v4l vaapi valgrind vcdx vdpau vhosts vim-syntax virt-network virtio vlc vnc vorbis vpx vulkan webdav webp widgets wmf wxwidgets x264 x265 xattr xcb xen xine xml xspice xv xvid xvmc zeroconf zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2019" 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 expires 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 rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc coreboot emu multiboot qemu xen" INPUT_DEVICES="wacom libinput" KERNEL="linux" L10N="en-US en ja zh zh-CN zh-HK zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU ARM BPF NVPTX Mips X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8 python3_9" QEMU_SOFTMMU_TARGETS="mipsel x86_64" QEMU_USER_TARGETS="mipsel x86_64" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev qxl radeon radeonsi vesa virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS ================================================================= Package Settings ================================================================= dev-embedded/gputils-1.5.0::gentoo was built with the following: USE="" ABI_X86="(64)" CFLAGS="-march=native -O2 -ggdb -pipe" CXXFLAGS="-march=native -O2 -ggdb -pipe" FEATURES="assume-digests binpkg-logs buildpkg candy cgroup compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Created attachment 745656 [details] build log
Huh. tc-ld-disable-gold is still in the ebuild...
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b63fda8bb810ac60d85ed7f7649c61906f72f98 commit 3b63fda8bb810ac60d85ed7f7649c61906f72f98 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-07 04:37:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-07 04:37:42 +0000 dev-embedded/gputils: try again to disable gold Bug: https://bugs.gentoo.org/818802 Signed-off-by: Sam James <sam@gentoo.org> dev-embedded/gputils/gputils-1.5.0.ebuild | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
`tc-ld-is-gold && tc-ld-force-bfd` won't be any different, it's what the function does already: tc-ld-disable-gold() { tc-ld-is-gold "$@" && tc-ld-force-bfd "$@" } But that it doesn't work isn't surprising given -fuse-ld=bfd is added to LDFLAGS and there's bug #722648
(In reply to Ionen Wolkens from comment #4) > `tc-ld-is-gold && tc-ld-force-bfd` won't be any different, it's what the > function does already: > > tc-ld-disable-gold() { > tc-ld-is-gold "$@" && tc-ld-force-bfd "$@" > } > > But that it doesn't work isn't surprising given -fuse-ld=bfd is added to > LDFLAGS and there's bug #722648 Oh, duh, I should've checked. Don't know why I didn't. Let's do it properly...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21ea66b26eea2572564d1de7ab047ab573c57d69 commit 21ea66b26eea2572564d1de7ab047ab573c57d69 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-07 07:08:06 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-07 07:08:48 +0000 dev-embedded/gputils: update EAPI 6 -> 8, respect *FLAGS (really disable gold) Closes: https://bugs.gentoo.org/722648 Closes: https://bugs.gentoo.org/818802 Fixes: 3b63fda8bb810ac60d85ed7f7649c61906f72f98 Thanks-to: Ionen Wolkens <ionen@gentoo.org> (noticing bonehead change previously) Signed-off-by: Sam James <sam@gentoo.org> .../files/gputils-1.5.0-respect-flags.patch | 123 +++++++++++++++++++++ dev-embedded/gputils/gputils-1.5.0.ebuild | 26 +++-- 2 files changed, 141 insertions(+), 8 deletions(-)