#51 Compile output going to /dev/null

Version 1.x
Tim Godfrey


I am trying to create a project using the GNU Arm Eclipse plug in. I used the plugin to create an empty project and then imported sources an libraries etc. that were created with the STM cubeMX program. When I compile I get the error

arm-none-eabi-gcc: error: ./Src/main.o: No such file or directory
for all of the input source files. This is correct, because when I check, there are no object files being created in the build tree (under Debug).

When I look through the (verbose) compiler output I see this

/usr/local/gcc-arm-none-eabi-4_8-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/cc1 -quiet -v -I /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Drivers/CMSIS/Include -I /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Drivers/CMSIS/Device/ST/STM32F4xx/Include -I /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Drivers/STM32F4xx_HAL_Driver/Inc -I /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Inc -I /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc -I /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Middlewares/ST/STM32_USB_Device_Library/Core/Inc -imultilib armv7e-m -iprefix /usr/local/gcc-arm-none-eabi-4_8-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/ -isysroot /usr/local/gcc-arm-none-eabi-4_8-2014q1/bin/../arm-none-eabi -MMD Src/main.d -MF Src/main.d -MP -MT Src/main.o -dD -DUSES_INITFINI -D DEBUG -D USE_FULL_ASSERT -D TRACE -D OS_USE_TRACE_SEMIHOSTING_STDOUT -D STM32F407xx -D USE_HAL_DRIVER -D HSE_VALUE=8000000 -include /stuff/Tim/Work/PiezoDrive/Dither/EclipseWorkspace/Dither/Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f407xx.h ../Src/main.c -quiet -dumpbase main.c -mcpu=cortex-m4 -mthumb -mfloat-abi=soft -auxbase-strip Src/main.o -g3 -Og -Wunused -Wuninitialized -Wall -std=gnu11 -version -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fsyntax-only -o /dev/null

The output is getting sent to /dev/null!?

I have managed to create, compile and run an example application from the stm32f4xx template, and when it compiles the output goes to a file in /tmp with a .s suffix, which is then read in by the assembler. In the case where I have the problem the compile output is going to /dev/null and the assembler is not being called at all as far as I can tell.

Any ideas what I'm doing wrong?


(I've attached the complete build log)

1 Attachments


  • Unfortunately I'll be out of office for the next 4 days, so I can not test
    anything, but it looks like you messed something with the compiler config.

  • -fsyntax-only?

  • Tim Godfrey
    Tim Godfrey

    Thank you for the suggestion! That was it! I thought it was probably something simple.

    Thanks again,

    • status: open --> closed-fixed
    • assigned_to: Liviu Ionescu (ilg)
  • ok, glad you fixed it.