VSCode extension failing to compile project after STM32CubeIDE update
I just switched back to a different client project, one that is built in the STM32 VSCode extension. This was after working on a different project with STM32CubeIDE and updating it to the latest version (1.16.1).
Unfortunately, when I try to compile the VSCode-based project, it does not compile. The build task starts up but then reports the discovered compiler cannot build a simple test program.
Here is the contents of the terminal window:
Executing task: Build
build task started....
C:\ST\STM32CubeCLT_1.15.0\CMake\bin\cmake.EXE --build D:/DataRoot/Projects/Equla/_Vert2-Firmware/STM32/Vert2-STM32/build/debug/build --
[0/1] Re-running CMake...
-- Found multiple STM32CubeIDE installations. Using "C:/ST/STM32CubeIDE_1.11.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin".
-- The C compiler identification is GNU 12.3.1
-- The CXX compiler identification is GNU 12.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/ST/STM32CubeIDE_1.11.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc.exe
-- Check for working C compiler: C:/ST/STM32CubeIDE_1.11.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc.exe - broken
CMake Error at C:/ST/STM32CubeCLT_1.15.0/CMake/share/cmake-3.28/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"C:/ST/STM32CubeIDE_1.11.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/arm-none-eabi-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'D:/DataRoot/Projects/Equla/_Vert2-Firmware/STM32/Vert2-STM32/build/debug/build/CMakeFiles/CMakeScratch/TryCompile-ihvrsw'
Run Build Command(s): C:/msys64/ucrt64/bin/ninja.exe -v cmTC_0427c
[1/2] C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256\tools\bin\arm-none-eabi-gcc.exe -fdata-sections -ffunction-sections --specs=nano.specs -Wl,--gc-sections -o CMakeFiles/cmTC_0427c.dir/testCCompiler.c.obj -c D:/DataRoot/Projects/Equla/_Vert2-Firmware/STM32/Vert2-STM32/build/debug/build/CMakeFiles/CMakeScratch/TryCompile-ihvrsw/testCCompiler.c
[2/2] C:\WINDOWS\system32\cmd.exe /C "cd . && C:\ST\STM32CubeCLT_1.15.0\CMake\bin\cmake.exe -E rm -f libcmTC_0427c.a && C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235\tools\bin\arm-none-eabi-ar.exe qc libcmTC_0427c.a CMakeFiles/cmTC_0427c.dir/testCCompiler.c.obj && C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235\tools\bin\arm-none-eabi-ranlib.exe libcmTC_0427c.a && cd ."
FAILED: libcmTC_0427c.a
C:\WINDOWS\system32\cmd.exe /C "cd . && C:\ST\STM32CubeCLT_1.15.0\CMake\bin\cmake.exe -E rm -f libcmTC_0427c.a && C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235\tools\bin\arm-none-eabi-ar.exe qc libcmTC_0427c.a CMakeFiles/cmTC_0427c.dir/testCCompiler.c.obj && C:\ST\STM32CubeIDE_1.11.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.win32_1.1.100.202309141235\tools\bin\arm-none-eabi-ranlib.exe libcmTC_0427c.a && cd ."
The system cannot find the path specified.
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
ninja: error: rebuilding 'build.ninja': subcommand failed
FAILED: build.ninja
C:\ST\STM32CubeCLT_1.15.0\CMake\bin\cmake.exe --regenerate-during-build -SD:\DataRoot\Projects\Equla\_Vert2-Firmware\STM32\Vert2-STM32 -BD:\DataRoot\Projects\Equla\_Vert2-Firmware\STM32\Vert2-STM32\build\debug\build
build finished with error(s).
* The terminal process terminated with exit code: 1.
Sid
