Cmake error occured when i installed Clion: The C compiler is not able to compile a simple test program. How can i fix this?
-- The C compiler identification is GNU 8.1.0
-- The CXX compiler identification is GNU 8.1.0
-- Check for working C compiler: C:/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe
-- Check for working C compiler: C:/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/VõHuyKhôi/AppData/Local/Temp/cmake_check_environment/_build375862583750623919/CMakeFiles/CMakeTmp
Run Build Command:"C:/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/mingw32-make.exe" "cmTC_05f15/fast"
C:/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/mingw32-make.exe -f CMakeFiles\cmTC_05f15.dir\build.make CMakeFiles/cmTC_05f15.dir/build
mingw32-make.exe[1]: Entering directory 'C:/Users/V⌡HuyKh⌠i/AppData/Local/Temp/cmake_check_environment/_build375862583750623919/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_05f15.dir/testCCompiler.c.obj
C:\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\bin\gcc.exe -o CMakeFiles\cmTC_05f15.dir\testCCompiler.c.obj -c C:\Users\V├╡HuyKh├┤i\AppData\Local\Temp\cmake_check_environment\_build375862583750623919\CMakeFiles\CMakeTmp\testCCompiler.c
gcc.exe: error: C:\Users\V├╡HuyKh├┤i\AppData\Local\Temp\cmake_check_environment\_build375862583750623919\CMakeFiles\CMakeTmp\testCCompiler.c: No such file or directory
gcc.exe: fatal error: no input files
compilation terminated.
mingw32-make.exe[1]: *** [CMakeFiles\cmTC_05f15.dir\build.make:65: CMakeFiles/cmTC_05f15.dir/testCCompiler.c.obj] Error 1
mingw32-make.exe[1]: Leaving directory 'C:/Users/V⌡HuyKh⌠i/AppData/Local/Temp/cmake_check_environment/_build375862583750623919/CMakeFiles/CMakeTmp'
mingw32-make.exe: *** [Makefile:120: cmTC_05f15/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/VõHuyKhôi/AppData/Local/Temp/cmake_check_environment/_build375862583750623919/CMakeFiles/CMakeOutput.log".
See also "C:/Users/VõHuyKhôi/AppData/Local/Temp/cmake_check_environment/_build375862583750623919/CMakeFiles/CMakeError.log".
Error code: 1
Please sign in to leave a comment.
Hello!
The problem is the non-latin symbols (VõHuyKhôi) in the path C:/Users/VõHuyKhôi/AppData/Local/Temp/cmake_check_environment/_build375862583750623919/CMakeFiles/CMakeTmp.
Please do the following:
C:\tmp).Help | Edit Custom VM options....-Djava.io.tmpdir=<path_to_temp_folder>(for example,-Djava.io.tmpdir=C:/tmp).File | Save All.