Other Parts Discussed in Thread: TEST2,
A library I'm using was compiled using GCC and is not performing as expected when the project is compiled using the TI compiler. Therefore I'm trying to switch a project from TI compiler to GCC. I seem to not be able to link properly any GCC project. I created a very simple new project and am getting the same strange results. What am I doing wrong?
#include <stdbool.h>
#include <stdint.h>
/**
* main.c
*/
int main(void)
{
int test = 4;
int test2 = 4;
test += test2;
return 0;
}
**** Build of configuration Debug for project TESTGNU ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 8 all -O
'Building file: ../main.c'
'Invoking: GNU Compiler'
"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DPART_TM4C1294NCPDT -I"C:/ti/CODE/TESTGNU" -I"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/arm-none-eabi/include" -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MD -std=c99 -c -MMD -MP -MF"main.d" -MT"main.o" -o"main.o" "../main.c"
'Finished building: ../main.c'
' '
'Building target: TESTGNU.out'
'Invoking: GNU Linker'
"C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gcc.exe" -mfpu=fpv4-sp-d16 -DPART_TM4C1294NCPDT -ffunction-sections -fdata-sections -g -gdwarf-3 -gstrict-dwarf -Wall -specs="nosys.specs" -MD -std=c99 -mcpu=cortex-m4 -Wl,-Map,"TESTGNU.map" -o"TESTGNU.out" "./main.o" "./tm4c1294ncpdt_startup_ccs_gcc.o" -Wl,-T"../tm4c1294ncpdt.lds" -Wl,--start-group -lc -Wl,--end-group
makefile:144: recipe for target 'TESTGNU.out' failed
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: error: ./main.o uses VFP register arguments, TESTGNU.out does not
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file ./main.o
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: error: ./tm4c1294ncpdt_startup_ccs_gcc.o uses VFP register arguments, TESTGNU.out does not
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file ./tm4c1294ncpdt_startup_ccs_gcc.o
collect2.exe: error: ld returned 1 exit status
gmake[1]: *** [TESTGNU.out] Error 1
gmake: *** [all] Error 2
makefile:140: recipe for target 'all' failed
**** Build Finished ****