Skip to main content
Pratyush
Associate II
August 27, 2020
Question

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

  • August 27, 2020
  • 3 replies
  • 1529 views

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.

    This topic has been closed for replies.

    3 replies

    Radosław
    Associate II
    August 27, 2020

    Wrong FPU compiler settings.

    Pratyush
    PratyushAuthor
    Associate II
    August 27, 2020

    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
    Associate II
    August 27, 2020

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