/usr/bin/ld.gold: --push-state: unknown option
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | gcc-5 (Ubuntu) |
High
|
Matthias Klose | ||
| | qtbase-opensource-src (Ubuntu) |
Undecided
|
Unassigned | ||
Bug Description
With gcc 5.2.1-17ubuntu4, we're seeing https:/
TJ- on #ubuntu-devel suggested:
< TJ-> Mirv: bzoltan: the issue could be in qtbase-
Ideas for a proper fix welcome.
| Launchpad Janitor (janitor) wrote : | #1 |
| Changed in gcc-5 (Ubuntu): | |
| status: | New → Confirmed |
| Changed in qtbase-opensource-src (Ubuntu): | |
| status: | New → Confirmed |
| Tim (darkxst) wrote : | #3 |
This is fallout from https:/
It will affect any project that tries to link with ld.gold, such as Spidermonkey and WebkitGtk, since ld.gold does not recognize the "--push-state" flag that is injected by the fix/workaround from the above bug.
The underlying bug http://
| Changed in gcc-5 (Ubuntu): | |
| importance: | Undecided → High |
| assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
| tags: | added: rls-w-incoming |
| Steve Langasek (vorlon) wrote : Re: [Bug 1496743] [NEW] /usr/bin/ld.gold: --push-state: unknown option | #4 |
On Mon, Sep 21, 2015 at 01:56:46PM -0000, Launchpad Bug Tracker wrote:
> With gcc 5.2.1-17ubuntu4, we're seeing
> https:/
> .ubuntu-
The error in the log is:
g++ -Wl,-Bsymbolic-
/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.
| Steve Langasek (vorlon) wrote : | #5 |
The --push-state tracks to a Debian-specific patch in the source, debian/
This new failure was introduced in the latest upload (5.2.1-17ubuntu4) and can be resolved by reverting the change in this version to debian/rules.patch. If this is an urgent problem (and it looks like it might be, if it impacts all qmake-using packages in the archive), I would recommend that someone upload this revert now, until a cleaner fix for the original bug can be found.
| Changed in gcc-5 (Ubuntu): | |
| assignee: | Canonical Foundations Team (canonical-foundations) → Matthias Klose (doko) |
| status: | Confirmed → Triaged |
| Tim (darkxst) wrote : | #6 |
Steve, did you miss my comment above?
This has been fixed upstream, so should be possible to replace that debian patch with a cherry-pick of the upstream fix
https:/
| Matthias Klose (doko) wrote : | #7 |
I'm working on it
| Olivier Tilloy (osomon) wrote : | #8 |
This also affects building oxide-qt on wily (see e.g. https:/
| Andrea Bernabei (faenil) wrote : | #9 |
this also affects building ubuntu-ui-toolkit on wily
| Charles Kerr (charlesk) wrote : | #10 |
This also affects building qtpurchasing's ubuntu backend on wily
| Launchpad Janitor (janitor) wrote : | #11 |
This bug was fixed in the package gcc-5 - 5.2.1-18ubuntu1
---------------
gcc-5 (5.2.1-18ubuntu1) wily; urgency=medium
* Merge with Debian; remaining changes:
gcc-5 (5.2.1-18) unstable; urgency=medium
* Update to SVN 20150922 (r228023, 5.2.1) from the gcc-5-branch.
[ Matthias Klose ]
* gcc-5-plugin-dev: Depend on libmpc-dev. Closes: #798997.
* Fix PR libstdc++/65913, taken from the trunk. Closes: #797577.
[ YunQiang Su ]
* Build again the gnat-5-sjlj package. Closes: #798782.
* Fix gnat cross builds, and cross building gnat.
-- Matthias Klose <email address hidden> Wed, 23 Sep 2015 03:10:37 +0200
| Changed in gcc-5 (Ubuntu): | |
| status: | Triaged → Fix Released |
| Steve Langasek (vorlon) wrote : | #12 |
> Steve, did you miss my comment above?
Sure did, sorry Tim!
| Changed in qtbase-opensource-src (Ubuntu): | |
| status: | Confirmed → Invalid |


Status changed to 'Confirmed' because the bug affects multiple users.