cancel
Showing results for 
Search instead for 
Did you mean: 

i got a error while linking libraries shown below , thanks in advance.

Pratyush
Associate II

make -j4 all 

arm-none-eabi-gcc -o "P2P_Server.elf" @"objects.list" -lbep -lbep_diag -lbep_diag_hf -lbep_hf -mcpu=cortex-m4 -T"D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\STM32WB55RGVX_FLASH.ld" --specs=nosys.specs -Wl,-Map="P2P_Server.map" -Wl,--gc-sections -static -L"D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_error.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_error.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_extract_features.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_extract_features.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_maskgen.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_maskgen.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(cac2_bep_sw11_840c66be0c.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(cac2_bep_sw11_840c66be0c.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(lc_origin.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(lc_origin.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(lc_pruning.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(lc_pruning.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_common.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(nex_common.o)

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: error: P2P_Server.elf uses VFP register arguments, D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(algo_pb_wrapper_bep_sw11_6f4f82912e.o) does not

d:\kiran\installations\stm32cubeide_1.3.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\arm-none-eabi\bin\ld.exe: failed to merge target specific data of file D:\kiran\new1\p2p\P2P_Server\P2P_Server\STM32CubeIDE\temp\cortex_m4\libbep.a(algo_pb_wrapper_bep_sw11_cd4a4c76f7.o)

collect2.exe: error: ld returned 1 exit status

make: *** [makefile:56: P2P_Server.elf] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

3 REPLIES 3
Radosław
Senior II

Wrong FPU compiler settings.

Pratyush
Associate II

how can i rectify this error? Am using STM32CUBE IDE and i have to link the .a libraries for further implementation. i have gone this path project properties -> c/c++ genera l-> tool settings -> MCU settings -> Floating-point ABI(-mfloat-abi=softfp) and changed. Is there any way of is there any reference to know more about FPU compiler setting.

Radosław
Senior II

Code must have the same settings for PFU as libraries that are used.