dev-util/glade-3.18.3 doesn't compile when ld.gold is used as the default linker. It compiles fine when ld.bfd is used instead. Here is the compile error: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DGLADE_GNOMEHELPDIR="\"/usr/share/help\"" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -march=native -O3 -pipe -fomit-frame-pointer -c -o glade_previewer-glade-preview-window.o `test -f 'glade-preview-window.c' || echo './'`glade-preview-window.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I.. -DGLADE_GNOMEHELPDIR="\"/usr/share/help\"" -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -Wall -march=native -O3 -pipe -fomit-frame-pointer -c -o glade_previewer-glade-preview-template.o `test -f 'glade-preview-template.c' || echo './'`glade-preview-template.c /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -march=native -O3 -pipe -fomit-frame-pointer -Wl,-O1 -Wl,--as-needed -o glade-previewer glade_previewer-glade-previewer.o glade_previewer-glade-preview-window.o glade_previewer-glade-preview-template.o libgladeui-2.la -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lxml2 libtool: link: x86_64-pc-linux-gnu-gcc -march=native -O3 -pipe -fomit-frame-pointer -Wl,-O1 -o .libs/glade-previewer glade_previewer-glade-previewer.o glade_previewer-glade-preview-window.o glade_previewer-glade-preview-template.o -Wl,--export-dynamic -pthread -Wl,--as-needed ./.libs/libgladeui-2.so -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lxml2 -pthread ./.libs/libgladeui-2.so: error: undefined reference to 'floor' ./.libs/libgladeui-2.so: error: undefined reference to 'ceil' collect2: error: ld returned 1 exit status Makefile:824: recipe for target 'glade-previewer' failed make[3]: *** [glade-previewer] Error 1 make[3]: Leaving directory '/var/tmp/portage/dev-util/glade-3.18.3/work/glade-3.18.3/gladeui' Makefile:696: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/var/tmp/portage/dev-util/glade-3.18.3/work/glade-3.18.3/gladeui' Makefile:494: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-util/glade-3.18.3/work/glade-3.18.3' Makefile:423: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: dev-util/glade-3.18.3::gentoo failed (compile phase): * emake failed
+ 03 Jun 2014; Alexandre Rostovtsev <tetromino@gentoo.org> glade-3.18.3.ebuild, + files/glade-3.16.1-underlinking.patch, + +files/glade-3.18.1-underlinking.patch: + Really fix linking failure with ld.gold (bug #512068, thanks to Mark R. + Pariente for reporting).