https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69866
Bug ID: 69866 Summary: lto1: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:158 Product: gcc Version: 5.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: acrsofter at gmail dot com Target Milestone: --- lto1: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:158 0x58b14d add_symbol_to_partition_1 ../../gcc-5.3.0/gcc/lto/lto-partition.c:157 0x58aeb2 add_symbol_to_partition_1 ../../gcc-5.3.0/gcc/lto/lto-partition.c:202 0x58c10c lto_balanced_map(int) ../../gcc-5.3.0/gcc/lto/lto-partition.c:550 0x58640d do_whole_program_analysis ../../gcc-5.3.0/gcc/lto/lto.c:3324 0x58640d lto_main() ../../gcc-5.3.0/gcc/lto/lto.c:3485 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. lto-wrapper: fatal error: arm-none-eabi-gcc returned 1 exit status compilation terminated. /files/work/acr/wip_elibos/elibos_toolchains/gcc-arm/gcc-arm-none-eabi-5.3.0-a/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status ../../../os/common/ports/ARMCMx/compilers/GCC/rules.mk:238: recipe for target 'build/ch.elf' failed make: *** [build/ch.elf] Error 1 buildind ChibiOS_16.1.3/demos/STM32/RT-STM32F401RE-NUCLEO https://sourceforge.net/projects/chibios/files/ ./arm-none-eabi-gcc -v Using built-in specs. COLLECT_GCC=./arm-none-eabi-gcc COLLECT_LTO_WRAPPER=/files/work/acr/wip_elibos/elibos_toolchains/gcc-arm/gcc-arm-none-eabi-5.3.0-a/bin/../libexec/gcc/arm-none-eabi/5.3.0/lto-wrapper Target: arm-none-eabi Configured with: ../gcc-5.3.0/configure --prefix=/opt/arm_cross --target=arm-none-eabi --enable-languages=c,c++ --disable-multilib --with-newlib Thread model: single gcc version 5.3.0 (GCC)