MantisBT - CMake
View Issue Details
0013687CMakeCMakepublic2012-11-16 06:012013-04-17 08:54
Michael Spencer 
 
normalmajoralways
closedno change required 
x86-64Windows8
CMake 2.8.10.1 
 
0013687: Failure to find VS11 toolchain on Windows 8
I recently installed Windows 8 and VS 11.0.50727.1 RTMREL. When attempting to generate any CMake project (even just consisting of the PROJECT command) with the Visual Studio 11 (or Win64) generator I get the following error:

K:\Build\test>cmake -G "Visual Studio 11" .
The C compiler identification is unknown
The CXX compiler identification is unknown
Looking for argz.h
CMake Error at L:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeCInformation.cmake:37 (get_filename_component):
  get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
  CMakeLists.txt:3 (PROJECT)

Followed by a bunch of fallout from this. This occurs with both cmake and cmake-gui. It also occurs even if I launch either from a VS11 Win64 command prompt. The error is because CMAKE_C_COMPILER is empty.

I have tried reinstalling both VS and CMake. I have also tried the nightly version of CMake (cmake-2.8.10.20121113-ge39a1b-win32-x86.exe).

VS works normally. And can be used via the command line. It is installed to the L: drive as opposed to the C:, but that has always worked for me in the past.
1) Install Windows 8
2) Install VS 11
3) Install CMake
4) ???
5) Fail to generate VS11 projects

Not that I have attempted to reinstall Windows.
No tags attached.
zip test.zip (26,003) 2012-11-16 13:03
https://public.kitware.com/Bug/file/4566/test.zip
Issue History
2012-11-16 06:01Michael SpencerNew Issue
2012-11-16 11:33Brad KingNote Added: 0031576
2012-11-16 11:35Brad KingNote Added: 0031577
2012-11-16 13:03Michael SpencerFile Added: test.zip
2012-11-16 13:17Michael SpencerNote Added: 0031578
2012-11-16 13:21Brad KingNote Added: 0031579
2012-11-16 13:21Brad KingStatusnew => resolved
2012-11-16 13:21Brad KingResolutionopen => no change required
2013-04-17 08:54Robert MaynardNote Added: 0032867
2013-04-17 08:54Robert MaynardStatusresolved => closed

Notes
(0031576)
Brad King   
2012-11-16 11:33   
Using CMake 2.8.10.1 from the .zip windows binary on our download site I was able to configure, generate, and build a project with the "Visual Studio 11" generator on:

 Windows 8
 Microsoft Visual Studio Professional 2012 Version 11.0.50727.1 RTMREL
 Microsoft .NET Framework Version 4.5.50709

It is installed in the default (C:) location.
(0031577)
Brad King   
2012-11-16 11:35   
Please zip up and attach the content of the CMakeFiles directory at the top of the attempted build tree. It contains some detailed logs and other files that may be helpful.
(0031578)
Michael Spencer   
2012-11-16 13:17   
Hmm, looking at the detailed errors it appears I was wrong about VS working fine. Although it did at one point in the install/uninstall cycle work.
(0031579)
Brad King   
2012-11-16 13:21   
Re 0013687:0031578: Yes, the CMakeError.log has this line:

1>cl : Command line error D8027: cannot execute 'L:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\c2.dll'

I'm resolving this issue for now. If you can narrow this down further to a CMake issue please re-open.
(0032867)
Robert Maynard   
2013-04-17 08:54   
Closing resolved issues that have not been updated in more than 4 months.