GNU MCU Eclipse compile des fichiers mais aucun fichier objet (.o)

Quinty van Dijk

GNU MCU Eclipse compile des fichiers mais aucun fichier objet (.o)


J’essaie de faire fonctionner GNU MCU Eclipse avec mon kit XMC4800 Relax et un projet existant. Ce qui me prend plus de temps qu’il ne devrait. À l’heure actuelle, les fichiers se compilent correctement, cela signifie, sans erreurs, mais lorsque Linking démarre, le compilateur indique qu’il ne trouve aucun fichier * .o:

 make all make: Warning: File 'objects.mk' has modification time 5026 s in the future Building file: ../src/main.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"src/main.d" -MT"src/main.o" -c -o "src/main.o" "../src/main.c" Finished building: ../src/main.c Building file: ../src/objectlist.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"src/objectlist.d" -MT"src/objectlist.o" -c -o "src/objectlist.o" "../src/objectlist.c" Finished building: ../src/objectlist.c Building file: ../src/soes.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"src/soes.d" -MT"src/soes.o" -c -o "src/soes.o" "../src/soes.c" Finished building: ../src/soes.c Building file: ../include/soes/hal/xmc4/esc_hw.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/soes/hal/xmc4/esc_hw.d" -MT"include/soes/hal/xmc4/esc_hw.o" -c -o "include/soes/hal/xmc4/esc_hw.o" "../include/soes/hal/xmc4/esc_hw.c" Finished building: ../include/soes/hal/xmc4/esc_hw.c Building file: ../include/soes/hal/xmc4/esc_hw_eep.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/soes/hal/xmc4/esc_hw_eep.d" -MT"include/soes/hal/xmc4/esc_hw_eep.o" -c -o "include/soes/hal/xmc4/esc_hw_eep.o" "../include/soes/hal/xmc4/esc_hw_eep.c" Finished building: ../include/soes/hal/xmc4/esc_hw_eep.c Building file: ../include/soes/esc.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/soes/esc.d" -MT"include/soes/esc.o" -c -o "include/soes/esc.o" "../include/soes/esc.c" Finished building: ../include/soes/esc.c Building file: ../include/soes/esc_coe.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/soes/esc_coe.d" -MT"include/soes/esc_coe.o" -c -o "include/soes/esc_coe.o" "../include/soes/esc_coe.c" Finished building: ../include/soes/esc_coe.c Building file: ../include/soes/esc_eep.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/soes/esc_eep.d" -MT"include/soes/esc_eep.o" -c -o "include/soes/esc_eep.o" "../include/soes/esc_eep.c" Finished building: ../include/soes/esc_eep.c Building file: ../include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.d" -MT"include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.o" -c -o "include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.o" "../include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.c" Finished building: ../include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.c Building file: ../include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.d" -MT"include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.o" -c -o "include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.o" "../include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.c" Finished building: ../include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.c Building file: ../include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.d" -MT"include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.o" -c -o "include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.o" "../include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.c" Finished building: ../include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.c Building file: ../include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.d" -MT"include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.o" -c -o "include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.o" "../include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.c" Finished building: ../include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.c Building file: ../include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.d" -MT"include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.o" -c -o "include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.o" "../include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.c" Finished building: ../include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.c Building file: ../include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.d" -MT"include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.o" -c -o "include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.o" "../include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.c" Finished building: ../include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.c Building file: ../include/XMC_Peripheral_Library/Newlib/syscalls.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/Newlib/syscalls.d" -MT"include/XMC_Peripheral_Library/Newlib/syscalls.o" -c -o "include/XMC_Peripheral_Library/Newlib/syscalls.o" "../include/XMC_Peripheral_Library/Newlib/syscalls.c" Finished building: ../include/XMC_Peripheral_Library/Newlib/syscalls.c Building file: ../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.c Invoking: GNU ARM Cross C Compiler arm-none-eabi-gcc -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -DDEBUG -DXMC4800_F144x2048 -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -I../include/XMC_Peripheral_Library/XMCLib/inc -I../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I../include/XMC_Peripheral_Library/CMSIS/Include -I../include/soes -I../include/soes/hal/xmc4 -I../include/soes/include/sys/gcc -I../src -std=gnu11 -Wmissing-prototypes -Wbad-function-cast -MMD -MP -MF"include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.d" -MT"include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.o" -c -o "include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.o" "../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.c" Finished building: ../include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.c Building target: test1543.elf Invoking: GNU ARM Cross C++ Linker arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -fsyntax-only -pedantic -pedantic-errors -w -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wpadded -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal -g3 -T ./include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/XMC4800x2048 -nostartfiles -L"../ldscripts" -Wl,-Map,"test1543.map" --specs=nano.specs --specs=nosys.specs -o "test1543.elf" ./src/main.o ./src/objectlist.o ./src/soes.o ./include/soes/hal/xmc4/esc_hw.o ./include/soes/hal/xmc4/esc_hw_eep.o ./include/soes/esc.o ./include/soes/esc_coe.o ./include/soes/esc_eep.o ./include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.o ./include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.o ./include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.o ./include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.o ./include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.o ./include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.o ./include/XMC_Peripheral_Library/Newlib/syscalls.o ./include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.o arm-none-eabi-g++: error: ./src/main.o: No such file or directory arm-none-eabi-g++: error: ./src/objectlist.o: No such file or directory arm-none-eabi-g++: error: ./src/soes.o: No such file or directory arm-none-eabi-g++: error: ./include/soes/hal/xmc4/esc_hw.o: No such file or directory arm-none-eabi-g++: error: ./include/soes/hal/xmc4/esc_hw_eep.o: No such file or directory arm-none-eabi-g++: error: ./include/soes/esc.o: No such file or directory arm-none-eabi-g++: error: ./include/soes/esc_coe.o: No such file or directory arm-none-eabi-g++: error: ./include/soes/esc_eep.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/XMCLib/src/xmc4_flash.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/XMCLib/src/xmc4_gpio.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/XMCLib/src/xmc4_scu.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/XMCLib/src/xmc_ecat.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/XMCLib/src/xmc_fce.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/XMCLib/src/xmc_gpio.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/Newlib/syscalls.o: No such file or directory arm-none-eabi-g++: error: ./include/XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/system_XMC4800.o: No such file or directory makefile:62: recipe for target 'test1543.elf' failed make: *** [test1543.elf] Error 1 

Je ne vois aucun fichier * .o apparaître dans les dossiers. Je pense donc que le compilateur ne crée aucun fichier objet, comment le faire fonctionner? Les paramètres pertinents (j’espère) sont dans cet album: https://imgur.com/a/Tpk36o2

Quelques informations supplémentaires: Le projet d’origine utilise un assembleur avant de lier les fichiers (et après la compilation) et fait objcopy :

 Assembling: XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/startup_XMC4800.S arm-none-eabi-gcc -c -x assembler-with-cpp -DXMC4800_F144x2048 -MMD -MP -MF XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/startup_XMC4800.d -MT XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/startup_XMC4800.o -I././XMC_Peripheral_Library/XMCLib/inc -I././XMC_Peripheral_Library/CMSIS/Include -I././XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Include -I. -I../soes -I../soes/hal/xmc4 -I../soes/include/sys/gcc -Wall -fmessage-length=0 -Wa,-adhlns=XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/startup_XMC4800.lst -mfloat-abi=softfp -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mthumb -o XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/startup_XMC4800.o XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/startup_XMC4800.S ObjCopy: sii_eeprom.bin arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm sii_eeprom.bin sii_eeprom.o 

De plus, les fichiers make originaux n’utilisent pas l’éditeur de liens g++ mais l’éditeur de liens gcc :

 arm-none-eabi-gcc -T./XMC_Peripheral_Library/CMSIS/Infineon/XMC4800_series/Source/GCC/XMC4800x2048.ld -nostartfiles -Xlinker --gc-sections -specs=nano.specs -specs=nosys.specs -Wl,-Map,xmc4800-ecat-slave.map -mfloat-abi=softfp -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mthumb -o xmc4800-ecat-slave.elf main.o etc etc etc 

Malheureusement, je ne peux pas partager le projet …

Edit: j’ai ajouté la commande objcopy aux étapes de post-génération (selon: http://rdu.im/embedded_development/2015/02/01/setting-up-development-environment-for-mcu-using-opensource-tools -2.html ), mais ne semble rien changer.

 arm-none-eabi-objcopy -I binary -O elf32-littlearm -B arm sii_eeprom.bin sii_eeprom.o 

Edit 2: Les deux makefiles sont ici: https://gist.github.com/kwint/8969112d75807f5aff320ee03ec239b3

filo

Partagez le Makefile.

Réponses


 Quinty van Dijk

Si quelqu’un d’autre a du mal avec cela, désactivez -Wpedantic ou -pedantic . Vous n’avez besoin de ces options que si votre code doit respecter des normes ISO strictes. En savoir plus à ce sujet ici: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html


 faible

Voir les -MMD -MP , -MF , -MT dans la ligne de commande gcc?

Jetez un œil aux spécifications de gcc . Cela produira simplement une sortie au format makefile des dépendances de la source c. Il ne produit pas de sortie de fichier objet.

Vous avez simplement fait l’étape de l’analyse des dépendances des sources, pas la compilation proprement dite.

Quinty van Dijk

Le makefile qui fonctionne a également ces options, et cela fonctionne. De plus, je ne trouve pas comment désactiver ces options dans Eclipse

 

Aucun, compile, des, Eclipse, fichier, fichiers, GNU, mais, MCU, ø,, objet

 

google

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *