GCC 8: build fails with LTO

Bug #1809971 reported by john
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
Expired
Undecided
Unassigned

Bug Description

Just tried to use the new release of GNU Arm Embedded to build one of my programs. The build fails at link stage (LTO enabled):

c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\Mike\AppData\Local\Temp\ccaZJHsddebugobjtem: file not recognized: file truncated
collect2.exe: error: ld returned 1 exit status
lto-wrapper.exe: fatal error: arm-none-eabi-gcc returned 1 exit status
compilation terminated.
c:/program files (x86)/gnu tools arm embedded/8 2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status

Tags: lto
Revision history for this message
Marc Singer (eleventen) wrote :

I believe there is documentation online about fixing this. You need to add a reference to the plugin. Also, I believe this is a duplicate.

Revision history for this message
john (jkovach) wrote :

Marc, I tried googling around and found nothing. Some links would be greatly appreciated.

Revision history for this message
Leo Havmøller (leh-p) wrote :

Google "lto-wrapper failed", or "stack overflow lto-wrapper failed".

Revision history for this message
jerry (sogra99) wrote :

I had the same problem for gcc 8 2018-q4/8.2.1.
Tried the suggestions none works.

Revision history for this message
john (jkovach) wrote :

Jerry, same here. I believe this is a genuine new bug.

tags: added: lto
Changed in gcc-arm-embedded:
status: New → Incomplete
Revision history for this message
Przemyslaw Wirkus (wirkus) wrote :

Hi john,
Can you provide reduced testcase to with corresponding command line options so I can reproduce this issue ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for GNU Arm Embedded Toolchain because there has been no activity for 60 days.]

Changed in gcc-arm-embedded:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.