GCC 8: build fails with LTO

Bug #1809971 reported by john on 2018-12-28
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
GNU Arm Embedded Toolchain
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

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.

john (jkovach) wrote :

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

Leo Havmøller (leh-p) wrote :

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

jerry (sogra99) wrote :

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

john (jkovach) wrote :

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers