Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589266 - media-libs/libmypaint-1.3.0_beta1[gegl,introspection] linking fails with gold linker and -Wl,--as-needed
Summary: media-libs/libmypaint-1.3.0_beta1[gegl,introspection] linking fails with gold...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-gold
  Show dependency tree
 
Reported: 2016-07-20 18:52 UTC by Jiří Moravec
Modified: 2016-07-21 13:00 UTC (History)
0 users

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


Attachments
Disable gold linker (libmypaint-1.3.0_beta1.ebuild.patch,463 bytes, patch)
2016-07-20 18:54 UTC, Jiří Moravec
Details | Diff
emerge --info (emerge--info,7.54 KB, text/plain)
2016-07-21 07:55 UTC, Jiří Moravec
Details
build.log (media-libs:libmypaint-1.3.0_beta1:20160720-180445.log,33.45 KB, text/plain)
2016-07-21 07:59 UTC, Jiří Moravec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiří Moravec 2016-07-20 18:52:42 UTC
emerge -v1 =media-libs/libmypaint-1.3.0_beta1 failed in linking phase with gold linker. BFD linker is OK.

Reproducible: Always

Steps to Reproduce:
1. binutils-config --linker ld.gold
2. emerge -v1 =media-libs/libmypaint-1.3.0_beta1
Actual Results:  
libtool: link: x86_64-pc-linux-gnu-gcc -o /var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/tmp-introspect3aNZxE/.libs/MyPaintGegl-1.3 -D_POSIX_C_SOURCE=200809L -march=native -O2 -pipe -mtune=native -mvzeroupper -mno-tbm -fno-lto -fdiagnostics-color=auto -Wl,-O1 -Wl,--as-needed -O2 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -fno-lto tmp-introspect3aNZxE/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/tmp-introspect3aNZxE/MyPaintGegl-1.3.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L. ./.libs/libmypaint-gegl.so ../.libs/libmypaint.so -lgegl-0.3 -lgegl-npd-0.3 -lm -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lbabl-0.1 -lglib-2.0 -pthread
/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/tmp-introspect3aNZxE/.libs/MyPaintGegl-1.3: symbol lookup error: /var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/.libs/libmypaint-gegl.so.0: undefined symbol: mypaint_surface_unref
Command '['/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/tmp-introspect3aNZxE/MyPaintGegl-1.3', '--introspect-dump=/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/tmp-introspect3aNZxE/functions.txt,/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl/tmp-introspect3aNZxE/dump.xml']' returned non-zero exit status 127
/usr/share/gobject-introspection-1.0/Makefile.introspection:155: recipe for target 'MyPaintGegl-1.3.gir' failed
make[2]: *** [MyPaintGegl-1.3.gir] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1/gegl'
Makefile:841: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libmypaint-1.3.0_beta1/work/libmypaint-1.3.0-beta.1'
Makefile:599: recipe for target 'all' failed
make: *** [all] Error 2
Comment 1 Jiří Moravec 2016-07-20 18:54:18 UTC
Created attachment 441250 [details, diff]
Disable gold linker
Comment 2 Mike Gilbert gentoo-dev 2016-07-20 19:12:13 UTC
Please attach a full build log and provide emerge --info.
Comment 3 Jiří Moravec 2016-07-21 07:55:44 UTC
Created attachment 441288 [details]
emerge --info
Comment 4 Jiří Moravec 2016-07-21 07:59:06 UTC
Created attachment 441290 [details]
build.log
Comment 5 Sebastian Pipping gentoo-dev 2016-07-21 10:33:19 UTC
Hi, thanks for the report!

I wonder if there's a way to fix rather than working around it.  I plan to have a closer look today or tomorrow.
Comment 6 Sebastian Pipping gentoo-dev 2016-07-21 13:00:42 UTC
Hello again,

I was able to narrow conditions (see subject change history) but I was not able to fix the issue for real.

So I reported the bug upstream (https://github.com/mypaint/libmypaint/issues/58) and went with your workaround for now:


commit 34214cf987b61bd8890a9d300b7e5b1056aa8377
Author: Jiří Moravec <qjim@volny.cz>
Date:   Thu Jul 21 14:54:14 2016 +0200

    media-libs/libmypaint: Disable gold linker (bug #589266)
    
    Package-Manager: portage-2.2.28

 media-libs/libmypaint/libmypaint-1.3.0_beta1.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

https://github.com/gentoo/gentoo/commit/34214cf987b61bd8890a9d300b7e5b1056aa8377


Closing, please re-open as needed.