cancel
Showing results for 
Search instead for 
Did you mean: 

x_cube_ai 5.1.2 code cvompile error !!!! in Cube ide

Rafsan12345
Associate

23:46:18 **** Incremental Build of configuration Debug for project Ai ****
make -j4 all
arm-none-eabi-gcc -o "Ai.elf" @"objects.list" -Wl,--start-group -l:NetworkRuntime512_CM4_GCC.a -Wl,--end-group -mcpu=cortex-m4 -T"C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\STM32F401RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Ai.map" -Wl,--gc-sections -static -L../Middlewares/ST/AI/Lib -L"C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App" -mfloat-abi=hard --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -u _printf_float -u _scanf_float -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(ai_platform_interface.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(ai_platform_interface.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(core_mem_manager.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(core_mem_manager.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(core_common.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(core_common.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(layers_conv2d_generic_float.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(layers_conv2d_generic_float.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(layers_nl_generic_float.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(layers_nl_generic_float.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(layers.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(layers.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(arm_mat_init_f32.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(arm_mat_init_f32.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(ai_datatypes_format.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(ai_datatypes_format.o)
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: error: Ai.elf uses VFP register arguments, C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(ai_math_helpers.o) does not
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App\NetworkRuntime512_CM4_GCC.a(ai_math_helpers.o)
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:65: Ai.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.

23:46:19 Build Failed. 19 errors, 0 warnings. (took 957ms)

#######################################################################

 

23:52:17 **** Incremental Build of configuration Debug for project Ai ****
make -j4 all
arm-none-eabi-gcc -o "Ai.elf" @"objects.list" -Wl,--start-group -l:NetworkRuntime512_CM4_GCC.a -Wl,--end-group -mcpu=cortex-m4 -T"C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\STM32F401RETX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Ai.map" -Wl,--gc-sections -static -L../Middlewares/ST/AI/Lib -L"C:\Users\DCL\STM32CubeIDE\workspace_1.12.0\X-CUBE-AI\App" -mfloat-abi=hard --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -u _printf_float -u _scanf_float -Wl,--start-group -lc -lm -Wl,--end-group
c:\st\stm32cubeide_1.12.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: cannot find -l:NetworkRuntime512_CM4_GCC.a
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:65: Ai.elf] Error 1
"make -j4 all" terminated with exit code 2. Build might be incomplete.

23:52:17 Build Failed. 2 errors, 0 warnings. (took 657ms)

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
fauvarque.daniel
ST Employee

You can easily fix that by adding the library in the linker options. Sometime those options get overwritten.

The library can be found in Middlewares/ST/AI/Lib directory of your STM32Cube.AI installation


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
fauvarque.daniel
ST Employee

You can easily fix that by adding the library in the linker options. Sometime those options get overwritten.

The library can be found in Middlewares/ST/AI/Lib directory of your STM32Cube.AI installation


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.