Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522776 - [qt overlay] dev-qt/?? - ?
Summary: [qt overlay] dev-qt/?? - ?
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-14 12:52 UTC by ephemer0l
Modified: 2014-09-19 09:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ephemer0l 2014-09-14 12:52:35 UTC
I came across this issue trying to build dev-qt/qtcore-5.4.0_alpha::qt with <gcc-4.8.0

Thanks all!
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-14 22:23:31 UTC
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.
Comment 2 Franz Trischberger 2014-09-15 09:20:28 UTC
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).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-09-15 10:22:56 UTC
(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.
Comment 4 Franz Trischberger 2014-09-19 09:03:31 UTC
(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.