Skip to main content
Robert Ritchey
Senior
April 14, 2025
Solved

Linker Error After Build

  • April 14, 2025
  • 1 reply
  • 612 views

I get an error message when I go to debug after doing a build but not if I go directly to DEBUG after a clean project.  When I build my project and then go to DEBUG I get the following error message:

10:36:15 **** Incremental Build of configuration Debug for project Tx2B ****
make -j32 all 
make: stat: F:/Projects/Smart-Fly/IC/MCUs/STM32/STM32G0xx/Drivers/STM32G0xx_LL_Driver/Inc/stm32g0xx_ll_bus.h F:/Projects/Smart-Fly/IC/MCUs/STM32/STM32G0xx/Drivers/STM32G0xx_LL_Driver/Inc/stm32g0xx_ll_comp.h: Invalid argument
make: *** No rule to make target 'F:/Projects/Smart-Fly/IC/MCUs/STM32/STM32G0xx/Drivers/STM32G0xx_LL_Driver/Inc/stm32g0xx_ll_bus.h F:/Projects/Smart-Fly/IC/MCUs/STM32/STM32G0xx/Drivers/STM32G0xx_LL_Driver/Inc/stm32g0xx_ll_comp.h', needed by 'Sources/Units/IC-Tx2B/MCUs/STM32G030C6/Firmware/Unit/src/SysCtl.o'. Stop.
"make -j32 all" terminated with exit code 2. Build might be incomplete.

10:36:15 Build Failed. 1 errors, 0 warnings. (took 190ms)

Why do I get this and how to stop it? 

Best answer by Pavel A.

Yes try this.

 

1 reply

Pavel A.
Super User
April 14, 2025

In your debug configuration, is "enable auto build" checked? Disable auto build to prevent starting make .

Perhaps some antivirus does its shadow business.

Robert Ritchey
Senior
April 14, 2025

No, auto build is not enabled.  What is enabled is "Use Workspace Settings".  I went into that and the only thing check is "rebuild if necessary".  Should I check "Disable Auto Build"? 

Pavel A.
Pavel A.Best answer
Super User
April 15, 2025

Yes try this.