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
Created attachment 441250 [details, diff] Disable gold linker
Please attach a full build log and provide emerge --info.
Created attachment 441288 [details] emerge --info
Created attachment 441290 [details] build.log
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.
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.