Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 2 months ago.
nano.specs: attempt to rename spec 'link' to already defined spec 'nano_link'
I have a project in Mbed and I exported to GCC Eclipse platform. But when I to build the project I got the following error
error
arm-none-eabi-cpp: fatal error: /opt/gcc-arm-none-eabi-8-2018-q4-major/bin/../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/lib/nano.specs: attempt to rename spec 'link' to already defined spec 'nano_link' compilation terminated. make: *** [../makefile.targets:10: linker-script-debug.ld] Error 1
This is my makefile.targets line 10:
makefile
linker-script-debug.ld: ../mbed/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/efm32hg.ld "arm-none-eabi-cpp" -E -P -DMBED_DEBUG -DMBED_TRAP_ERRORS_ENABLED=1 -DMBED_RTOS_SINGLE_THREAD -DMBED_ROM_START=0x0 -DMBED_ROM_SIZE=0x10000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x2000 --specs=nano.specs -DMBED_ROM_START=0x0 -DMBED_ROM_SIZE=0x10000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x2000 -DMBED_BOOT_STACK_SIZE=4096 --specs=nano.specs -mcpu=cortex-m0plus -mthumb -DMBED_ROM_START=0x0 -DMBED_ROM_SIZE=0x10000 -DMBED_RAM_START=0x20000000 -DMBED_RAM_SIZE=0x2000 -DMBED_BOOT_STACK_SIZE=4096 -Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group $< -o $@
Any idea how to fix this compilation problem?