Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602908

Summary: dev-util/strace-4.15[unwind], gold linker: error: strace-unwind.o: cannot make copy relocation for protected symbol '_UPT_accessors'
Product: Gentoo Linux Reporter: Andrei Slavoiu <ansla80>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: dschridde+gentoobugs, esigra, holger, jasmin+gentoo, lssndrbarbieri, paolo.pedroni, tom_gentoo, waebbl-gentoo
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 269315    
Attachments: build.log
emerge --info
ebuild patch

Description Andrei Slavoiu 2016-12-17 11:49:08 UTC
Created attachment 456472 [details]
build.log

/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: strace-unwind.o: cannot make copy relocation for protected symbol '_UPT_accessors', defined in /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libunwind-ptrace.so
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:1668: strace] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-util/strace-4.15/work/strace-4.15'
Comment 1 Andrei Slavoiu 2016-12-17 11:51:19 UTC
Created attachment 456474 [details]
emerge --info
Comment 2 Paolo Pedroni 2017-08-08 15:00:48 UTC
Same with 4.16 and 4.18.

Using ld.bfd works fine.
Comment 3 Bernd 2017-10-21 07:25:07 UTC
Also happens with 4.19.

Using ld.bfd works.
Comment 4 Thomas Arnett 2017-11-26 19:26:29 UTC
Created attachment 506764 [details, diff]
ebuild patch
Comment 5 MT 2017-12-05 09:45:52 UTC
version 4.20 is affected too.
Comment 6 Thomas Arnett 2018-02-19 02:21:37 UTC
4.21 is still affected. It looks like the underlying problem will be fixed in libunwind 1.3: https://github.com/libunwind/libunwind/issues/58
Comment 7 Boris Staletic 2018-05-05 05:50:23 UTC
I am able to link and use strace linked with the gold linker.

Here are the versions of relevant softwares on my system:

- =dev-util/strace-4.22
- =sys-libs/libunwind-1.2.1
- =sys-devel/binutils-2.30-r2
Comment 8 Holger Hoffstätte 2018-05-05 10:54:10 UTC
(In reply to Boris Staletic from comment #7)
> I am able to link and use strace linked with the gold linker.
> 
> Here are the versions of relevant softwares on my system:
> 
> - =dev-util/strace-4.22
> - =sys-libs/libunwind-1.2.1
> - =sys-devel/binutils-2.30-r2

I have exactly those versions, switched to gold and again got the original error (see $subject) when rebuilding strace.