cancel
Showing results for 
Search instead for 
Did you mean: 

Linker Error After Build

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
3 REPLIES 3
Pavel A.
Evangelist III

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

Perhaps some antivirus does its shadow business.

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"? 

Yes try this.