Xtensa compiler doesn't work in CLion
Posted: Thu May 20, 2021 1:49 pm
Hello! I'm new at ESP-IDF and just started to setup idf environment in CLion.
Firstly I cloned idf repository via
Next step I installed MSYS2 according to https://docs.espressif.com/projects/esp ... setup.html
In Preferencs/Build, Execution, Deployment/Toolchains In CLion I setted compilers (Screenshot_1)
There was this error in CMake log:
And I don't understand how to fix this problem. Any ideas? I will be grateful for any help.
Firstly I cloned idf repository via
Code: Select all
git clone --recursive https://github.com/espressif/esp-idf.git
In Preferencs/Build, Execution, Deployment/Toolchains In CLion I setted compilers (Screenshot_1)
There was this error in CMake log:
Code: Select all
-- The C compiler identification is GNU 8.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe
-- Check for working C compiler: C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe - broken
CMake Error at C:/Program Files/JetBrains/CLion 2020.3.3/bin/cmake/win/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/User/Desktop/esp32/test/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command(s):C:/msys32/usr/bin/make.exe cmTC_b9276/fast && /usr/bin/make -f CMakeFiles\cmTC_b9276.dir\build.make CMakeFiles/cmTC_b9276.dir/build
make: *** [Makefile:139: cmTC_b9276/fast] Error 1
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/User/Desktop/esp32/test/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/User/Desktop/esp32/test/cmake-build-debug/CMakeFiles/CMakeError.log".
[Finished]