Use latest GCC ARM Embedded 5.0/5-2016-q1:
https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q1-update/+download/gcc-arm-none-eabi-5_3-2016q1-20160330-win32.exe
- host machine: Windows 7 SP1 64bits Asus N56VZ (16GB RAM+SSD Samsung 850 PRO 512GB)
Using repo https://github.com/bvernoux/hydrafw up to commit https://github.com/bvernoux/hydrafw/commit/3679dc0601220ee4ac897d7e3af4cb59b545e984
Just do
make clean
make
See also
https://github.com/bvernoux/hydrafw/wiki/how-to-build-flash-and-use-hydrafw-on-windows
or
https://github.com/bvernoux/hydrafw/wiki/how-to-build-flash-and-use-hydrafw-on-linux
Linking build/hydrafw.elf
lto1.exe: internal compiler error: in add_symbol_to_partition_1, at lto/lto-partition.c:158
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper.exe: fatal error: d:\GNU_ARM_5_3_2016q1\bin\arm-none-eabi-gcc.exe returned 1 exit status
compilation terminated.
d:/gnu_arm_5_3_2016q1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
make: *** [build/hydrafw.elf] Error 1
For information the build/link work perfectly (with no error) with GNU_ARM_4_7_2013q3 and GNU_ARM_4_9_2015q3
lto1: internal compiler error: in add_symbol_ to_partition_ 1, at lto/lto- partition. c:158 to_partition_ 1 gcc-5.3. 0/gcc/lto/ lto-partition. c:157 to_partition_ 1 gcc-5.3. 0/gcc/lto/ lto-partition. c:202 map(int) gcc-5.3. 0/gcc/lto/ lto-partition. c:550 program_ analysis gcc-5.3. 0/gcc/lto/ lto.c:3324 gcc-5.3. 0/gcc/lto/ lto.c:3485 gcc.gnu. org/bugs. html> for instructions. 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 ./os/common/ ports/ARMCMx/ compilers/ GCC/rules. mk:238: recipe for target 'build/ch.elf' failed
0x58b14d add_symbol_
../../
0x58aeb2 add_symbol_
../../
0x58c10c lto_balanced_
../../
0x58640d do_whole_
../../
0x58640d lto_main()
../../
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://
lto-wrapper: fatal error: arm-none-eabi-gcc returned 1 exit status
compilation terminated.
/files/
collect2: error: ld returned 1 exit status
../../.
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 GCC=./arm- none-eabi- gcc 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 5.3.0/configure --prefix= /opt/arm_ cross --target= arm-none- eabi --enable- languages= c,c++ --disable-multilib --with-newlib
Using built-in specs.
COLLECT_
COLLECT_
Target: arm-none-eabi
Configured with: ../gcc-
Thread model: single
gcc version 5.3.0 (GCC)