[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/22656] New: Gold linker oftens fails with Solaris 10 system li
From: |
binutils at marino dot st |
Subject: |
[Bug gold/22656] New: Gold linker oftens fails with Solaris 10 system libraries |
Date: |
Sun, 31 Dec 2017 17:20:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=22656
Bug ID: 22656
Summary: Gold linker oftens fails with Solaris 10 system
libraries
Product: binutils
Version: 2.29
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gold
Assignee: ccoutant at gmail dot com
Reporter: binutils at marino dot st
CC: ian at airs dot com
Target Milestone: ---
Created attachment 10706
--> https://sourceware.org/bugzilla/attachment.cgi?id=10706&action=edit
Attempt to link python36 with gold linker on Solaris 10u8 and gcc 7.2
Looking through old bug reports, the message "duplicate definition for version
0" error has been showing for years, but was thought fixed. Unfortunately for
me, it's not fixed. (e.g.
https://sourceware.org/bugzilla/show_bug.cgi?id=11748)
Attached is a build log. It's randomly selected; I've seen similar errors in
several places. Looking throught the gold linker code, it seems the version
referenced is from the SHT_GNU_verdef elf section, which doesn't exist in
Solaris 10 (I'm intentionally restricted to 2009's update 8 version) libraries.
So at first glance, this seems like a legitimate gold linker (2.29.1) bug where
it's making the assumption that SHT_GNU_verdef is the only section for symbol
versioning (I guess). I suspect this error only appears upon the attempt to
link the same system library more than once.
I suppose I could try reproducing a small test case as well. I figured
mentioning that solaris libraries don't have these GNU sections might be enough
to trace a logic error immediately.
Regards,
John
-- error messages fro build log --
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libsocket.so: duplicate
definition for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libsocket.so: duplicate
definition for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libsocket.so: duplicate
definition for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libnsl.so: duplicate definition
for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libnsl.so: duplicate definition
for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libnsl.so: duplicate definition
for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libnsl.so: duplicate definition
for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/librt.so: duplicate definition
for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/librt.so: duplicate definition
for version 0
/raven/toolchain/bin/ld.gold: error: /lib/amd64/libm.so: duplicate definition
for version 0
collect2: error: ld returned 1 exit status
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gold/22656] New: Gold linker oftens fails with Solaris 10 system libraries,
binutils at marino dot st <=