why i can't get the elf file while using both maylib.a and the S32K3xx_AMMCLIB.a

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why i can't get the elf file while using both maylib.a and the S32K3xx_AMMCLIB.a

432 Views
steven_zhang
Contributor V

Can anyone help me?

I built a mylib.a , creating a test project using both mylib.a and S32K3xx_AMMCLIB.a .when i tried to built the project ,got the error as below:

10:57:51 **** Incremental Build of configuration Debug_FLASH for project test344lib1 ****
make -j8 all
Building file: ../src/main.c
Invoking: Standard S32DS C Compiler
arm-none-eabi-gcc "@src/main.args" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Finished building: ../src/main.c

Building target: test344lib1.elf
Invoking: Standard S32DS C Linker
arm-none-eabi-gcc -o "test344lib1.elf" "@test344lib1.args"
c:/nxp/s32ds.3.4/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: error: C:/Users/stevenzhang/workspaceS32DS.3.4/test344lib1/lib\S32K3xx_AMMCLIB.a(GFLIB_Sqrt_c.o) uses VFP register arguments, test344lib1.elf does not
c:/nxp/s32ds.3.4/s32ds/build_tools/gcc_v10.2/gcc-10.2-arm32-eabi/bin/../lib/gcc/arm-none-eabi/10.2.0/../../../../arm-none-eabi/bin/real-ld.exe: failed to merge target specific data of file C:/Users/stevenzhang/workspaceS32DS.3.4/test344lib1/lib\S32K3xx_AMMCLIB.a(GFLIB_Sqrt_c.o)
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:36: test344lib1.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.

10:57:53 Build Failed. 1 errors, 0 warnings. (took 1s.446ms)

 

steven_zhang_0-1667185846876.png

 

 

0 Kudos
0 Replies