Summary: | dev-qt/qtcore 5.4.0 fails to compile: x86_64-pc-linux-gnu-g++: error: unrecognized command line option ‘-fuse-ld=gold’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | tobi |
Component: | [OLD] Development | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | Yanestra |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 543326 | ||
Attachments: |
emerge --info output
emerge -pqv output build.log of qtcore failing |
Created attachment 397428 [details]
emerge -pqv output
Created attachment 397430 [details]
build.log of qtcore failing
-fuse-ld was added in gcc-4.8. You currently have gcc-4.7 selected. qtcore should probably be changed to detect that, or should ban usage of <gcc-4.8. Thanks for the fast answer. How do I change to a different gcc version? I can't find an eselect module for that. Nevermind, just found gcc-config. Thanks for your effort and the fast solution to my problems. (In reply to Mike Gilbert from comment #3) > qtcore should probably be changed to detect that, or should ban usage of > <gcc-4.8. qtbase configure script already has code to detect -fuse-ld=gold support. So something's wrong... The test is: if linkerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then which actually tests '-Wl,-fuse-ld=gold'. I guess linkerSupportsFlag should be changed to compilerSupportsFlag. Anyone with gcc-4.7 wants to try? (In reply to Davide Pesavento from comment #7) > The test is: > > if linkerSupportsFlag $TEST_COMPILER -fuse-ld=gold; then > > which actually tests '-Wl,-fuse-ld=gold'. I guess linkerSupportsFlag should > be changed to compilerSupportsFlag. Right. -fuse-ld=gold is a gcc switch, not an ld switch. I see people get this wrong surprisingly frequently. In overlay, tested OK with gcc-4.7: https://gitweb.gentoo.org/proj/qt.git/commit/?id=f6b7f47fb07fda8aa6e0c3be5be7f60c2d541b0d Michael, I've reverted your commit because this bug was already fixed upstream for 5.4.2 https://code.qt.io/cgit/qt/qtbase.git/commit/?id=53e2db74dba8135bd88bad48fbf9f2fc81ed4f8b fixed in 5.4.2 |
Created attachment 397426 [details] emerge --info output As the title says, when updating my system qtcore 5.4.0 fails to compile.