Compiling dev-libs/rasqal with the new gold linker fails. See attached build log for details. Reproducible: Always Steps to Reproduce: 1. USE="gold" emerge binutils 2. emerge =dev-libs/rasqal-0.9.16 Actual Results: Compilation fails with linker errors (undefined references). Expected Results: rasqal compiles successfully
Created attachment 191037 [details] build log
Created attachment 191038 [details] emerge --info
USE flag info for USE "gold", Use the new gold linker (written in C++) rather than the standard linker (this _will_ break things) We accept patches.
I thought that gold's bugs should be reported, as per tracker bug 269315. Other bugs blocking the tracker aren't closed. This report could stay open (maybe "suspended"?) to at least help others searching for similar bugs instead of creating duplicate bugreports.
yes bugs should be reported, but they shouldnt be assigned to package maintainers
The error was with the line: x86_64-pc-linux-gnu-gcc -O2 -march=core2 -pipe -fno-ident -combine -Wl,-O1 -o .libs/roqet roqet.o ../src/.libs/librasqal.so If you change it to x86_64-pc-linux-gnu-gcc -O2 -march=core2 -pipe -fno-ident -combine -Wl,-O1 -Wl,-lraptor -o .libs/roqet roqet.o ../src/.libs/librasqal.so then it compiles and links clean. The problem as I see: The gold linker does not resolve indirect dependencies as the GNU linker. This is the intended behaviour. (see http://sourceware.org/bugzilla/show_bug.cgi?id=10238 )
The package can be successfully patched e.g. by changing in utils/Makefile.in roqet_LDADD = $(top_builddir)/src/librasqal.la line to roqet_LDADD = $(top_builddir)/src/librasqal.la -lraptor
(In reply to comment #5) > yes bugs should be reported, but they shouldnt be assigned to package > maintainers > As I wrote, this is the intended behavior of the "gold" linker. If the linker does not links cleanly then there is some missing dependency from the Makefile. So I think these bugs are in the area of the package maintainers.
this does appear to be a missing library list. roqet probably needs to link against raptor itself. this might also show up under the normal linker with more strict flags ...
So we have agreed that this is not a bug of the gold linker but a problem in rasqual's Makefile.in. Please report to the developers and/or patch the Makefile.in and change the status to wontfix/fixed.
$ ld -v GNU gold (GNU Binutils 2.21.1) 1.11 [ebuild R #] dev-libs/rasqal-0.9.26 USE="crypt mhash pcre xml -gmp -static-libs -test" 0 kB Please reopen the bug report if you can still reproduce with rasqal-0.9.26 or above.