/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: internal error in define_default_version, at /var/tmp/portage/sys-devel/binutils-2.35.1-r1/work/binutils-2.35.1/gold/symtab.cc:877 collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. * ERROR: sys-auth/elogind-246.9.1::gentoo failed (compile phase): * ninja -v -j1 -l0 -C /var/tmp/portage/sys-auth/elogind-246.9.1/work/elogind-246.9.1-build failed ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_developer-20210105-093247 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10.2.0 * clang version 11.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.9 (fallback) Available Ruby profiles: [1] ruby25 (with Rubygems) [2] ruby26 (with Rubygems) [3] ruby27 (with Rubygems) * Available Rust versions: [1] rust-1.48.0 * The following VMs are available for generation-2: *) AdoptOpenJDK 8.272_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.8.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Thu Jan 7 09:05:17 AM UTC 2021 emerge -qpvO sys-auth/elogind [ebuild U ] sys-auth/elogind-246.9.1 [243.7-r1] USE="acl pam policykit -audit -debug -doc (-selinux)"
Created attachment 681700 [details] emerge-info.txt
Created attachment 681703 [details] emerge-history.txt
Created attachment 681706 [details] environment
Created attachment 681709 [details] etc.portage.tbz2
Created attachment 681712 [details] sys-auth:elogind-246.9.1:20210107-091238.log
Created attachment 681715 [details] temp.tbz2
I think you’re hitting a binutils bug
*** Bug 764344 has been marked as a duplicate of this bug. ***
[205/514] x86_64-pc-linux-gnu-gcc -o src/shared/libelogind-shared-246.9.1.so -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libelogind-shared-246.9.1.so -Wl,--whole-archive src/shared/libelogind-shared-246.9.1.a src/basic/libbasic.a src/libelogind/libelogind_static.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -fstack-protector -Wl,--gc-sections -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -Wl,--version-script=/var/tmp/portage/sys-auth/elogind-246.9.1/work/elogind-246.9.1/src/shared/libshared.sym -pthread -lacl /usr/lib64/libcap.so -lpam -lacl -lpam -lm -ldl -Wl,--end-group [31mFAILED: [0msrc/shared/libelogind-shared-246.9.1.so x86_64-pc-linux-gnu-gcc -o src/shared/libelogind-shared-246.9.1.so -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,libelogind-shared-246.9.1.so -Wl,--whole-archive src/shared/libelogind-shared-246.9.1.a src/basic/libbasic.a src/libelogind/libelogind_static.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -fstack-protector -Wl,--gc-sections -O2 -pipe -march=native -fno-diagnostics-color -falign-functions=32:25:16 -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,--defsym=__gentoo_check_ldflags__=0 -shared -Wl,--version-script=/var/tmp/portage/sys-auth/elogind-246.9.1/work/elogind-246.9.1/src/shared/libshared.sym -pthread -lacl /usr/lib64/libcap.so -lpam -lacl -lpam -lm -ldl -Wl,--end-group /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: internal error in define_default_version, at /var/tmp/portage/sys-devel/binutils-2.35.1-r1/work/binutils-2.35.1/gold/symtab.cc:877 collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.
Does this still happen with current binutils?
(In reply to Andreas K. Hüttel from comment #10) > Does this still happen with current binutils? no