MantisBT - CMake
View Issue Details
0015057CMakeCMakepublic2014-08-04 10:212015-05-28 10:45
dds 
 
normalmajoralways
closedunable to reproduce 
X64Windows 7Enterprise, SP1
CMake 3.0 
 
0015057: Cmake fails during generating VS solution files on windows 7
Cmake fails during generating VS solution files on windows 7.
Cmake fails to determine compiler version.
In attachment is Cmake trace log (Trace.txt).

Output:

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:13 (project):
  No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:13 (project):
  No CMAKE_CXX_COMPILER could be found.
1. Run "Developer Command Prompt for VS2013.bat" from Visual Studio Tools.
2. Open directory with CMakeLists.txt file.
3. Run "cmake -G "Visual Studio 12""
Cmake output with --debug-output option:

Running with debug output on.
-- The C compiler identification is unknown
   Called from: [2] C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake
                [1] Y:/shared/tl/build/CMakeLists.txt
-- The CXX compiler identification is unknown
   Called from: [2] C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake
                [1] Y:/shared/tl/build/CMakeLists.txt
CMake Error at CMakeLists.txt:13 (project):
  No CMAKE_C_COMPILER could be found.



   Called from: [1] Y:/shared/tl/build/CMakeLists.txt
CMake Error at CMakeLists.txt:13 (project):
  No CMAKE_CXX_COMPILER could be found.

c++, CMake, compiler, Visual Studio 2013, Windows 7
txt Trace.txt (95,926) 2014-08-04 10:21
https://public.kitware.com/Bug/file/5209/Trace.txt
log CMakeError.log (5,748) 2014-08-04 10:38
https://public.kitware.com/Bug/file/5210/CMakeError.log
log CMakeOutput.log (38) 2014-08-04 10:38
https://public.kitware.com/Bug/file/5211/CMakeOutput.log
Issue History
2014-08-04 10:21ddsNew Issue
2014-08-04 10:21ddsFile Added: Trace.txt
2014-08-04 10:38ddsFile Added: CMakeError.log
2014-08-04 10:38ddsFile Added: CMakeOutput.log
2014-08-04 10:43ddsTag Attached: c++
2014-08-04 10:43ddsTag Attached: CMake
2014-08-04 10:43ddsTag Attached: compiler
2014-08-04 10:43ddsTag Attached: Windows 7
2014-08-04 10:43ddsTag Attached: Visual Studio 2013
2014-08-04 11:04Brad KingNote Added: 0036544
2014-08-04 11:04Brad KingStatusnew => resolved
2014-08-04 11:04Brad KingResolutionopen => unable to reproduce
2014-12-15 10:35victoriadukovaNote Added: 0037460
2014-12-15 10:36victoriadukovaNote Edited: 0037460bug_revision_view_page.php?bugnote_id=37460#r1644
2015-05-04 09:05Robert MaynardNote Added: 0038699
2015-05-04 09:05Robert MaynardStatusresolved => closed
2015-05-28 10:45Bill HoffmanNote Added: 0038808

Notes
(0036544)
Brad King   
2014-08-04 11:04   
This platform and version combination is widely used, well tested, and known to work. There must be something different about your particular installation. The CMakeError.log you attached has some error that look like trouble with the local installation.

Please post on the mailing list to see if others have encountered the issue:

 http://www.cmake.org/mailman/listinfo/cmake [^]

FYI, you don't need to start CMake from the development environment command prompt when using the VS IDE generators. That is only needed when using a Makefile or Ninja generator.
(0037460)
victoriadukova   
2014-12-15 10:35   
(edited on: 2014-12-15 10:36)
I'm not sure what is the best way to add some info to this ticket, but..

Recently I'd met the same problem as in the issue above: cmake fails during generating VS solution files on windows 7.

The content of CMakeError.log and CMakeOutput.log and the environment (os version, visual studio version) were the same.

I'd searched Internet and found this link:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/853aa155-886b-491c-a414-fa4bca50251a/winsdkverh-no-such-file-or-directory?forum=vcgeneral#e5d73ba3-6a88-4ce7-b5f2-86c0e3a56de6 [^]

I'd checked my registry, there wasn't any information about Windows SDK 8.1 in the registry. I hadn't got Windows SDK 8.1 installed on my system ( may be because it's just Windows 7).

After Windows SDK 8.1 had been installed the issued problem with CMake had been resolved.

(0038699)
Robert Maynard   
2015-05-04 09:05   
Closing resolved issues that have not been updated in more than 4 months.
(0038808)
Bill Hoffman   
2015-05-28 10:45   
The error log shows that the compiler can not find system libraries:

"Y:\shared\tl\build\CMakeFiles\3.0.0\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) ->
(Link target) ->
  LINK : fatal error LNK1181: cannot open input file 'kernel32.lib' [Y:\shared\tl\build\CMakeFiles\3.0.0\CompilerIdC\CompilerIdC.vcxproj]

    1 Warning(s)

I would guess that this visual studio install could not compile anything even if CMake was not used.