Test cmake run finished with errors (CLion, Windows, MinGW)

Answered

I tried to install both cygwin and mingw and cmake separately, but an error of this nature occurs all the time. Reinstalled everything many times, but it didn't help. What to do?

 

-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe
-- Check for working C compiler: C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe - broken
CMake Error at C:/Users/Карим/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/212.5284.51/bin/cmake/win/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler

"C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/gcc.exe"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/TEMP/cmake_check_environment/_build11526943901815886074/CMakeFiles/CMakeTmp

Run Build Command(s):C:/PROGRA~1/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/mingw32-make.exe -f Makefile cmTC_247a2/fast && C:/PROGRA~1/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/mingw32-make.exe -f CMakeFiles\cmTC_247a2.dir\build.make CMakeFiles/cmTC_247a2.dir/build
mingw32-make.exe[1]: Entering directory 'C:/TEMP/cmake_check_environment/_build11526943901815886074/CMakeFiles/CMakeTmp'
process_begin: CreateProcess(NULL, C:\Users\╨Ъ╨░╤А╨╕╨╝\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\212.5284.51\bin\cmake\win\bin\cmake.exe -E cmake_echo_color --switch= --progress-dir=C:\TEMP\cmake_check_environment\_build11526943901815886074\CMakeFiles\CMakeTmp\CMakeFiles --progress-num=1 "Building C object CMakeFiles/cmTC_247a2.dir/testCCompiler.c.obj", ...) failed.
make (e=2): ═х єфрхЄё  эрщЄш єърчрээ√щ Їрщы.
mingw32-make.exe[1]: *** [CMakeFiles\cmTC_247a2.dir\build.make:76: CMakeFiles/cmTC_247a2.dir/testCCompiler.c.obj] Error 2
mingw32-make.exe[1]: Leaving directory 'C:/TEMP/cmake_check_environment/_build11526943901815886074/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [Makefile:126: cmTC_247a2/fast] Error 2

 

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)


-- Configuring incomplete, errors occurred!
See also "C:/TEMP/cmake_check_environment/_build11526943901815886074/CMakeFiles/CMakeOutput.log".
See also "C:/TEMP/cmake_check_environment/_build11526943901815886074/CMakeFiles/CMakeError.log".

Error code: 1

1 comment
Comment actions Permalink

Hello!

It seems the problem is that CLion installation path (C:\Users\╨Ъ╨░╤А╨╕╨╝\AppData\Local\JetBrains\Toolbox\apps\CLion) contains non-latin symbols. Please uninstall CLion and install it to the path which doesn't contain non-latin symbols.

0

Please sign in to leave a comment.