The following packages (and possibly many more)… kde-apps/kio-extras-18.08.0 kde-apps/kleopatra-18.08.0 kde-apps/kompare-18.08.0 kde-apps/libkleo-18.08.0 …fail to link when Gold is the system default linker because CMake configures the linker flags with "-Wl,--fatal-warnings" and Gold emits a warning when discarding symbol versioning information from an unused shared library: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: warning: discarding version information for __pthread_key_create@GLIBC_2.2.5, defined in unused shared library /lib64/libpthread.so.0 (linked with --as-needed) /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: treating warnings as errors collect2: error: ld returned 1 exit status A workaround is to append "-Wl,--no-fatal-warnings" to LDFLAGS on a per-package basis, but ideally CMake would not be specifying "-Wl,--fatal-warnings" in the first place, as that's a good option for developers but a bad option for users. # emerge --info | fgrep -e cmake -e binutils dev-util/cmake: 3.12.1::gentoo sys-devel/binutils: 2.31.1::gentoo
*** This bug has been marked as a duplicate of bug 663512 ***
(In reply to Jonas Stein from comment #1) > > *** This bug has been marked as a duplicate of bug 663512 *** *sigh* I almost explicitly pointed out that this is NOT a duplicate of that bug, but I thought maybe it would be obvious enough. I guess not. This is NOT a duplicate of Bug 663512, as that bug is about LTO, and this bug is about Gold.