[FIXED] Cmake Problem (Cannot open compiler intermediate file) (Probably Encoding fault)
Completed
Hello!
I've encountered a problem while setting up an Clion project.
"C:\Program Files\JetBrains\CLion 2018.2.5\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - NMake Makefiles" C:\DEVELOPMENT\Cpp\OpenGL
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.22.27905/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.22.27905/bin/Hostx86/x86/cl.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2018.2.5/bin/cmake/win/share/cmake-3.12/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.22.27905/bin/Hostx86/x86/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/DEVELOPMENT/Cpp/OpenGL/cmake-build-debug/CMakeFiles/CMakeTmp
Run Build Command:"nmake" "/nologo" "cmTC_6c057\fast"
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\nmake.exe" -f CMakeFiles\cmTC_6c057.dir\build.make /nologo -L CMakeFiles\cmTC_6c057.dir\build
Building C object CMakeFiles/cmTC_6c057.dir/testCCompiler.c.obj
C:\PROGRA~2\MICROS~4\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\Hostx86\x86\cl.exe -o CMakeFiles\cmTC_6c057.dir\testCCompiler.c.obj -c C:\DEVELOPMENT\Cpp\OpenGL\cmake-build-debug\CMakeFiles\CMakeTmp\testCCompiler.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.22.27905 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
testCCompiler.c
c1: fatal error C1083: Cannot open compiler intermediate file: 'C:\Users\Maroš\AppData\Local\Temp\_CL_4161057fex': No such file or directory
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~4\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\Hostx86\x86\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX86\x86\nmake.exe"' : return code '0x2'
Stop.
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:/DEVELOPMENT/Cpp/OpenGL/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/DEVELOPMENT/Cpp/OpenGL/cmake-build-debug/CMakeFiles/CMakeError.log".
[Previous CMake output restored: 8. 9. 2019 11:22]
I think the problem is right here with encoding of the path. My user name is Maroš and it is being distorted to Maroš.
c1: fatal error C1083: Cannot open compiler intermediate file: 'C:\Users\Maroš\AppData\Local\Temp\_CL_4161057fex':
No such file or directory.
Is there way to change the path to intermediate file?
Thank you in advance.
Please sign in to leave a comment.
Just channge your user enviroment variables (TMP and TEMP) to non-latin-path.
eg.
