CMake unable to find GCC compiler

I'm creating a CLion project from an existing (and working) STM32 System Workbench project in v2019.2. CLion generates all the appropriate CMake files, but isn't able to find the GCC compiler when building. CMake error log entry:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: arm-none-eabi-gcc
Build flags:
Id flags:

The output was:
The system cannot find the file specified

CLion toochain settings:

I suppose there are a number of ways to make the path explicit in the CMake configuration, but since CLion appears to recognize the correct path to the compiler, I have to conclude that this is a bug in CLion's autogeneration of the CMake configuration for my project.

0
5 comments

Hello!

>I'm creating a CLion project from an existing (and working) STM32 System Workbench project in v2019.2

How have you done that? Using "File | Openselect the .ioc file > choose Open as Project"?

Do you have the GNU ARM toolchain installed on the machine? If yes: What version do you have? Is it 2018-q2 or earlier? Is the toolchain presented the system PATH? 

0
Hello Anna,
 
I opened the .ioc file from within CLion. The GNU ARM Toolchain (8-2019-q3) is installed and it's bin folder is included in the system path.
 
- Servant
0

Please open Terminal in CLion (View | Tool Windows | Terminal) and execute arm-none-eabi-gcc --version. What result do you get?

0

"arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

0

Please send CMakeOutput.log and CMakeError.log (from cmake-build-debug/CMakeFiles subfolder) and idea.log (Help | Show log in ...) to clion-support at jetbrains.com. Thanks!

0

Please sign in to leave a comment.