Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 764332 - sys-auth/elogind-246.9.1 : collect2: error: ld returned 1 exit status (gold, binutils-2.35)
Summary: sys-auth/elogind-246.9.1 : collect2: error: ld returned 1 exit status (gold, ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/bugzilla/show_...
Whiteboard: gold linker
Keywords:
: 764344 (view as bug list)
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2021-01-07 15:04 UTC by Toralf Förster
Modified: 2023-09-19 17:00 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.26 KB, text/plain)
2021-01-07 15:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,61.30 KB, text/plain)
2021-01-07 15:04 UTC, Toralf Förster
Details
environment (environment,140.14 KB, text/plain)
2021-01-07 15:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,18.71 KB, application/x-bzip)
2021-01-07 15:04 UTC, Toralf Förster
Details
sys-auth:elogind-246.9.1:20210107-091238.log (sys-auth:elogind-246.9.1:20210107-091238.log,392.75 KB, text/plain)
2021-01-07 15:04 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,40.76 KB, application/x-bzip)
2021-01-07 15:04 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-01-07 15:04:03 UTC
/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)"
Comment 1 Toralf Förster gentoo-dev 2021-01-07 15:04:04 UTC
Created attachment 681700 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-01-07 15:04:06 UTC
Created attachment 681703 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-01-07 15:04:07 UTC
Created attachment 681706 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-01-07 15:04:08 UTC
Created attachment 681709 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2021-01-07 15:04:10 UTC
Created attachment 681712 [details]
sys-auth:elogind-246.9.1:20210107-091238.log
Comment 6 Toralf Förster gentoo-dev 2021-01-07 15:04:11 UTC
Created attachment 681715 [details]
temp.tbz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-07 15:10:18 UTC
I think you’re hitting a binutils bug
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-01-07 15:10:45 UTC
*** Bug 764344 has been marked as a duplicate of this bug. ***
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2021-01-07 16:46:51 UTC
[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.
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2023-09-18 00:44:08 UTC
Does this still happen with current binutils?
Comment 11 Toralf Förster gentoo-dev 2023-09-19 17:00:17 UTC
(In reply to Andreas K. Hüttel from comment #10)
> Does this still happen with current binutils?

no