Linker crashes on Mac OSX with LTO enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Arm Embedded Toolchain |
New
|
Undecided
|
Unassigned |
Bug Description
With the Q1 update binaries on Mac OSX the linker crashes with Abort 6:
lto1: internal compiler error: in add_symbol_
lto1: internal compiler error: Abort trap: 6
arm-none-eabi-gcc: internal compiler error: Abort trap: 6 (program lto1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://
lto-wrapper: fatal error: arm-none-eabi-gcc returned 4 exit status
compilation terminated.
/usr/local/
collect2: error: ld returned 1 exit status
make: *** [build-
Steps to reproduce:
1) Download source: https:/
2) Add the line "BOARD_CFLAGS = -flto" to the end of atmel-samd/
3) make -C atmel-samd BOARD=cplay_
The same source compiles fine without the -flto flag. There are also only minor differences between the cplay_m0_flash board and the gemma_m0 board which compiles fine. The boards that fail have atmel-samd/
Full GCC version string:
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors 6-2017-q1-update) 6.3.1 20170215 (release) [ARM/embedded-
Mac OSX version:
10.12.4 Beta (16E163f)
Hi Scott,
Any chance you can narrow the test to a minimal case? It would be really helpful if you could narrow it down to the smallest preprocessed file(s) that can reproduce the problem.
Thanks,
Tejas.