collect2.exe: error: ld returned 1 exit status
I met this issue building SMARTMIC project for Bluecoin in Eclipse Oxygen with SW4STM32 plugin. I was able to build this project in the same configuration and environment, but after a few days this issue appeared. Installed Eclipse Photon and SW4STM32 plugin, issue disappeared, but after a few days reappeared again. There is the same issue with other of the shelf ST projects as well (eg STSW-SPIN3201). Could anyone help please?
Also, there is a warning:
- warning “Compiler generates FPU instructions for a device without an FPU (check __FPU_PRESENT)”
This wasn’t there before. It is strange, because the target MCU has FPU.
There is a build log.
- Build of configuration Debug for project STM32F446ME-BlueCoin ****
make all
Building file: D:/workspace/STM32CubeFunctionPack_SMARTMIC1_V1.1.1/Middlewares/ST/STM32_AcousticDB_Library/Lib/Acoustic_DB100.c
Invoking: MCU GCC Compiler
D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Projects\Multi\Applications\FP-AUD-SMARTMIC1\SW4STM32\STM32F446ME-BlueCoin\Debug
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DARM_MATH_CM4 -DUSE_HAL_DRIVER -DSTM32_BLUECOIN -DSTM32F446xx -DUSE_COMPOSITE_VCP_AUDIO
...
Building target: STM32F4xx-Nucleo.elf
Invoking: MCU GCC Linker
arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_Audio\Addons\PDM\Lib” -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_AcousticBF_Library\Lib” -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_AcousticEC_Library\Lib” -L”D:\workspace\STM32CubeFunctionPack_SMARTMIC1_V1.1.1\Middlewares\ST\STM32_AcousticSL_Library\Lib” -specs=nosys.specs -specs=nano.specs -T”..\STM32F446RETx_FLASH.ld” -Wl,-Map=output.map -Wl,--gc-sections -o “STM32F4xx-Nucleo.elf” @”objects.list” -l:libPDMFilter_CM4_GCC.a -l:libAcoustic_BF_CM4F_GCC_ot.a -l:libAcoustic_EC_CM4F_GCC_ot.a -l:libAcoustic_SL_CM4F_GCC_ot.a -lm
c:/programs/photon/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crti.o: No such file or directory
c:/programs/photon/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crtbegin.o: No such file or directory
c:/programs/photon/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find crt0.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
makefile:44: recipe for target ‘STM32F4xx-Nucleo.elf’ failed
make: *** STM32F4xx-Nucleo.elf Error 1