I came across this issue trying to build dev-qt/qtcore-5.4.0_alpha::qt with <gcc-4.8.0 Thanks all!
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report. 3) Please describe an problem you are seeing. Stating the fact that Qt uses the gold linker does not define a problem as such.
I see the same. Linker command passes "-fuse=gold". emerge --info and an example build log (not qtcore but qtopengl) can be taken from https://bugs.gentoo.org/show_bug.cgi?id=522838 (#522838 does not magically fix itself if I remove -fuse=gold ;) just in case one might think so).
(In reply to Franz Fellner from comment #2) > I see the same. Linker command passes "-fuse=gold". > emerge --info and an example build log (not qtcore but qtopengl) can be See comment #1.
(In reply to Jeroen Roovers from comment #1) > 1) Please post your `emerge --info' output in a comment. > 2) Please attach the entire build log to this bug report. > 3) Please describe an problem you are seeing. Stating the fact that Qt uses > the gold > linker does not define a problem as such. For 1 and 2 see bug #522838. If you want those attached here just say so. for 3) ld.gold is a drop-in-replacement for ld.bfd. It's probably more safe than ld.bfd (underlinking), but if the user choses to use classic old ld.bfd that should be respected. A quick www-search revealed several hits: * -fsplit-stack is only supported by gold - no idea if Qt5 makes use of it. * http://patches.openembedded.org/patch/26523/ and gentoos dev-qt/qtwebkit: even Qt-4.8 needs patches to disable forcing of ld.gold, as -fuse-ld is not an official gcc-upstream option (e.g. gentoo-hardened gcc-4.7 was found by google to NOT patch in -fuse-ld option) IMHO it needs people with enough knowledge of the Qt build system and gcc if those points still apply. Breaking build because the build system makes use of features (-fuse-ld) not supported by upstream (gcc) should be a no-go.