CLion 2017.2.3 can't use visual studio 2017 15.3.5

Answered

I enabled this feature through document.

I get a bunch of errors when CMake does basic check for compiler.

Here is the logs.

"C:\Program Files\JetBrains\CLion 2017.2.3\bin\cmake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - NMake Makefiles" C:\Users\sliu\Dropbox\lc
-- The C compiler identification is MSVC 19.11.25508.2
-- The CXX compiler identification is MSVC 19.11.25508.2
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe -- broken
CMake Error at C:/Program Files/JetBrains/CLion 2017.2.3/bin/cmake/share/cmake-3.8/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "C:/Program Files (x86)/Microsoft Visual
Studio/2017/Enterprise/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe" is
not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/Users/sliu/Dropbox/lc/cmake-build-debug/CMakeFiles/CMakeTmp

 

Run Build Command:"nmake" "/NOLOGO" "cmTC_123f7\fast"

"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX86\x86\nmake.exe"
-f CMakeFiles\cmTC_123f7.dir\build.make /nologo -L
CMakeFiles\cmTC_123f7.dir\build

Building C object CMakeFiles/cmTC_123f7.dir/testCCompiler.c.obj


C:\PROGRA~2\MICROS~1\2017\ENTERP~1\VC\Tools\MSVC\1411~1.255\bin\HostX86\x86\cl.exe
@C:\Users\sliu\AppData\Local\Temp\nm3C62.tmp

testCCompiler.c

Linking C executable cmTC_123f7.exe

"C:\Program Files\JetBrains\CLion 2017.2.3\bin\cmake\bin\cmake.exe" -E
vs_link_exe --intdir=CMakeFiles\cmTC_123f7.dir --manifests --
C:\PROGRA~2\MICROS~1\2017\ENTERP~1\VC\Tools\MSVC\1411~1.255\bin\HostX86\x86\link.exe
/nologo @CMakeFiles\cmTC_123f7.dir\objects1.rsp
@C:\Users\sliu\AppData\Local\Temp\nm3CC0.tmp

RC Pass 1 failed to run.

NMAKE : fatal error U1077: '"C:\Program Files\JetBrains\CLion
2017.2.3\bin\cmake\bin\cmake.exe"' : return code '0xffffffff'

Stop.

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\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:/Users/sliu/Dropbox/lc/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "C:/Users/sliu/Dropbox/lc/cmake-build-debug/CMakeFiles/CMakeError.log".

[Finished]

 

1
6 comments

Could you please send us a screenshot of the `File | Settings | Build, Execution, Deployment | Toolchains` tab and these files:  "C:/Users/sliu/Dropbox/lc/cmake-build-debug/CMakeFiles/CMakeOutput.log", "C:/Users/sliu/Dropbox/lc/cmake-build-debug/CMakeFiles/CMakeError.log". You can send is to clion-support at jetbrains.com.

0
Avatar
Permanently deleted user

Sent the files to that email.

0
Avatar
Permanently deleted user

I have the same issue, please advice.

1

@Hhbach1111, please try using CLion 2017.3.3 or CLion 2018.1 EAP. Does it help?

0

I have the samoe error with CLion 2018.3

Windows 10 and Visual Studio 2017 installed.

 

Some solution?

0

Hi Eduardo! Do you also get "RC Pass 1 failed to run"? Please try adding the path to rc.exe to your system path (Control Panel ⇒ (Optional) System and SecuritySystemAdvanced System SettingsAdvanced tabEnvironment VariablesSystem VariablesSelect variable named "PATH"Edit ⇒ Add the necessary path to the existing PATH entry).

0

Please sign in to leave a comment.