nano.specs:尝试将规范“ link”重命名为已定义的规范“ nano_link”

时间:2019-02-15 20:43:12

标签: makefile arm eclipse-cdt mbed

我在Mbed中有一个项目,并且已导出到GCC Eclipse平台。但是当我构建项目时,出现以下错误

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

这是我的makefile.targets第10行:

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 $@

有什么办法解决此编译问题吗?

0 个答案:

没有答案