touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #105084
Re: [Bug 1496743] [NEW] /usr/bin/ld.gold: --push-state: unknown option
On Mon, Sep 21, 2015 at 01:56:46PM -0000, Launchpad Bug Tracker wrote:
> With gcc 5.2.1-17ubuntu4, we're seeing
> https://launchpadlibrarian.net/218108553/buildlog_ubuntu-wily-amd64
> .ubuntu-ui-toolkit_1.3.1639%2B15.10.20150916.2-0ubuntu1_BUILDING.txt.gz
The error in the log is:
g++ -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -Wl,-O1 -fuse-ld=gold -o ubuntu-ui-toolkit-launcher .obj/launcher.o .obj/MouseTouchAdaptor.o -L/usr/X11R6/lib64 -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Test -lQt5Core -lGL -lpthread
/usr/bin/ld.gold: --push-state: unknown option
/usr/bin/ld.gold: use the --help option for usage information
collect2: error: ld returned 1 exit status
But --push-state only ever appears in the error message; it does not appear
in the g++ commandline that the build system claims to be invoking. Has
anyone tracked down the origin of this? I do see '--push-state' in the
output of 'strings /usr/bin/g++', so it's certainly possible that g++ itself
is adding it to the commandline when invoking ld. If so this is definitely
a gcc bug, passing extra arguments to ld regardless of which ld is being
called, and it doesn't matter what libraries are being passed.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1496743
Title:
/usr/bin/ld.gold: --push-state: unknown option
Status in gcc-5 package in Ubuntu:
Confirmed
Status in qtbase-opensource-src package in Ubuntu:
Confirmed
Bug description:
With gcc 5.2.1-17ubuntu4, we're seeing
https://launchpadlibrarian.net/218108553/buildlog_ubuntu-wily-amd64
.ubuntu-ui-
toolkit_1.3.1639%2B15.10.20150916.2-0ubuntu1_BUILDING.txt.gz
TJ- on #ubuntu-devel suggested:
< TJ-> Mirv: bzoltan: the issue could be in qtbase-opensource-src-5.4.2+dfsg (qmake) which does "mkspecs/common/gcc-base-unix.conf:19:QMAKE_LFLAGS_USE_GOLD = -fuse-ld=gold" irrespective of libraries being linked.
Ideas for a proper fix welcome.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1496743/+subscriptions
References