GCC-5.2 Toolchain breaks LTO build for ChibiOS
Please see below build failure for ChibiOS with latest GCC-5.2 toolchain,
Steps to reproduce:
Download ChibiOS from,
http://
$ cd ChibiOS_
$ make
Compiler Options
arm-none-eabi-gcc -c -mcpu=cortex-m4 -O2 -ggdb -fomit-
Compiling crt0_v7m.s
Compiling chcoreasm_v7m.s
Compiling crt1.c
Compiling vectors.c
Compiling chsys.c
Compiling chdebug.c
Compiling chvt.c
Compiling chschd.c
Compiling chthreads.c
Compiling chtm.c
Compiling chdynamic.c
Compiling chregistry.c
Compiling chsem.c
Compiling chmtx.c
Compiling chcond.c
Compiling chevents.c
Compiling chmsg.c
Compiling chmboxes.c
Compiling chqueues.c
Compiling chmemcore.c
Compiling chheap.c
Compiling chmempools.c
Compiling chcore.c
Compiling chcore_v7m.c
Compiling osal.c
Compiling hal.c
Compiling st.c
Compiling hal_queues.c
Compiling hal_mmcsd.c
Compiling pal.c
Compiling serial.c
Compiling nvic.c
Compiling stm32_dma.c
Compiling hal_lld.c
Compiling st_lld.c
Compiling pal_lld.c
Compiling serial_lld.c
Compiling board.c
Compiling test.c
Compiling testthd.c
Compiling testsem.c
Compiling testmtx.c
Compiling testmsg.c
Compiling testmbox.c
Compiling testevt.c
Compiling testheap.c
Compiling testpools.c
Compiling testdyn.c
Compiling testqueues.c
Compiling testsys.c
Compiling testbmk.c
Compiling cmsis_os.c
Compiling main.c
Linking build/ch.elf
lto1: internal compiler error: in add_symbol_
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://
lto-wrapper: fatal error: /home/work/
compilation terminated.
/home/work/
collect2: error: ld returned 1 exit status
make: *** [build/ch.elf] Error 1
Any pointers would be helpful.
Thanks...Mahavir
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: