Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602908 - dev-util/strace-4.15[unwind], gold linker: error: strace-unwind.o: cannot make copy relocation for protected symbol '_UPT_accessors'
Summary: dev-util/strace-4.15[unwind], gold linker: error: strace-unwind.o: cannot mak...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2016-12-17 11:49 UTC by Andrei Slavoiu
Modified: 2019-09-07 01:56 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,155.91 KB, text/x-log)
2016-12-17 11:49 UTC, Andrei Slavoiu
Details
emerge --info (emerge.info,7.47 KB, text/plain)
2016-12-17 11:51 UTC, Andrei Slavoiu
Details
ebuild patch (strace-libunwind.patch,339 bytes, patch)
2017-11-26 19:26 UTC, Thomas Arnett
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.