CMake unable to configure Toolchain C Compiler, No Latin Symbols
The C compiler
"C:/MinGW/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeTmp
Run Build Command(s):C:/MinGW/bin/mingw32-make.exe cmTC_fcfb1/fast && C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_fcfb1.dir\build.make CMakeFiles/cmTC_fcfb1.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_fcfb1.dir/testCCompiler.c.obj
C:\MinGW\bin\gcc.exe -o CMakeFiles\cmTC_fcfb1.dir\testCCompiler.c.obj -c C:\Users\JEK\AppData\Local\Temp\cmake_check_environment\_build16890483661168579677\CMakeFiles\CMakeTmp\testCCompiler.c
CMakeFiles\cmTC_fcfb1.dir\build.make:64: recipe for target 'CMakeFiles/cmTC_fcfb1.dir/testCCompiler.c.obj' failed
mingw32-make.exe[1]: *** [CMakeFiles/cmTC_fcfb1.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeTmp'
Makefile:120: recipe for target 'cmTC_fcfb1/fast' failed
mingw32-make.exe: *** [cmTC_fcfb1/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:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeOutput.log".
See also "C:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeError.log".
Error code: 1
How do I fix this?
请先登录再写评论。
Hello!
Please send "C:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeOutput.log" and "C:/Users/JEK/AppData/Local/Temp/cmake_check_environment/_build16890483661168579677/CMakeFiles/CMakeError.log" to clion-support at jetbrains.com.
The directory cmake_check_environment does not exist in the path described above (It also does not exist anywhere on my local disk). What should I do?
It's not clear what's happening. Could you please try using MinGW-64 or Cygwin instead of MinGW?