View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015057CMakeCMakepublic2014-08-04 10:212015-05-28 10:45
Reporterdds 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformX64OSWindows 7OS VersionEnterprise, SP1
Product VersionCMake 3.0 
Target VersionFixed in Version 
Summary0015057: Cmake fails during generating VS solution files on windows 7
DescriptionCmake 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.
Steps To Reproduce1. 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""
Additional InformationCmake 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.

Tagsc++, CMake, compiler, Visual Studio 2013, Windows 7
Attached Filestxt file icon Trace.txt [^] (95,926 bytes) 2014-08-04 10:21 [Show Content]
log file icon CMakeError.log [^] (5,748 bytes) 2014-08-04 10:38
log file icon CMakeOutput.log [^] (38 bytes) 2014-08-04 10:38

 Relationships

  Notes
(0036544)
Brad King (manager)
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 (reporter)
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 (manager)
2015-05-04 09:05

Closing resolved issues that have not been updated in more than 4 months.
(0038808)
Bill Hoffman (manager)
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.

 Issue History
Date Modified Username Field Change
2014-08-04 10:21 dds New Issue
2014-08-04 10:21 dds File Added: Trace.txt
2014-08-04 10:38 dds File Added: CMakeError.log
2014-08-04 10:38 dds File Added: CMakeOutput.log
2014-08-04 10:43 dds Tag Attached: c++
2014-08-04 10:43 dds Tag Attached: CMake
2014-08-04 10:43 dds Tag Attached: compiler
2014-08-04 10:43 dds Tag Attached: Windows 7
2014-08-04 10:43 dds Tag Attached: Visual Studio 2013
2014-08-04 11:04 Brad King Note Added: 0036544
2014-08-04 11:04 Brad King Status new => resolved
2014-08-04 11:04 Brad King Resolution open => unable to reproduce
2014-12-15 10:35 victoriadukova Note Added: 0037460
2014-12-15 10:36 victoriadukova Note Edited: 0037460
2015-05-04 09:05 Robert Maynard Note Added: 0038699
2015-05-04 09:05 Robert Maynard Status resolved => closed
2015-05-28 10:45 Bill Hoffman Note Added: 0038808


Copyright © 2000 - 2018 MantisBT Team