View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014595 | CMake | CMake | public | 2013-11-24 18:56 | 2016-06-06 13:37 | ||||
Reporter | Alex | ||||||||
Assigned To | |||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | Windows 7 | OS Version | ||||||
Product Version | CMake 2.8.12 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0014595: CMake cannot find Visual C++ Express | ||||||||
Description | I'm trying to configure an example solution using CMake-gui on Windows for the first time and cannot complete the configuration. I am using Microsoft Visual C++ 2010 Express on a 64-bit machine. When I try to configure in CMake and specify Visual Studio 10 as the generator I get: ========================================================== CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) The C compiler identification is unknown CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) The CXX compiler identification is unknown Configuring incomplete, errors occurred! ========================================================== and when I specify Visual Studio 10 Win64 instead I get: ========================================================== Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\ CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID) The C compiler identification is unknown CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446 (execute_process): execute_process given COMMAND argument with no value. Call Stack (most recent call first): C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48 (CMAKE_DETERMINE_COMPILER_ID_VENDOR) C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127 (CMAKE_DETERMINE_COMPILER_ID) The CXX compiler identification is unknown Configuring incomplete, errors occurred! ========================================================== I've tried re-installing / repairing Visual C++ several times as well as CMake and while this may have exacerbated the problem as I've begun to suspect I have a registry mix-up, bad environmental variables, or something of the like, it has not yielded any luck thus far. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0034542) Brad King (manager) 2013-11-25 08:16 |
CMake 2.8.12 is known to work with VS Express 2010 normally so we'll have to figure out what is going on on this machine. There is likely more detail in the CMakeFiles/CMakeOutput.log and CMakeFiles/CMakeError.log files in the build tree. Also several cleanups have been made since 2.8.12 that may either fix this or provide a better error message. Please try a recent nightly build from: http://www.cmake.org/files/dev/?C=M;O=D [^] |
(0034561) Alex (reporter) 2013-11-25 21:58 |
Thanks for the help. I tried everything again with the nightly build CMake 2.8.12.20131124 and here are the results. I apologize for the length of this, but I tried everything with the default "Visual Studio 10 2010" generator as well as the IA64 and Win64 variants as well just to be sure. If there is a specific generator I should use on a 64-bit windows machine I will just test that one from here on. With the "Visual Studio 10 2010" generator CMake outputted: ============================================================ The C compiler identification is unknown The CXX compiler identification is unknown CMake Error at CMakeLists.txt:4 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:4 (project): No CMAKE_CXX_COMPILER could be found. Configuring incomplete, errors occurred! See also "C:/Users/Alex Sedlack/Desktop/GBasic/B1-build/CMakeFiles/CMakeOutput.log". See also "C:/Users/Alex Sedlack/Desktop/GBasic/B1-build/CMakeFiles/CMakeError.log". ============================================================ On the Win64 and IA64 variants it outputted: ============================================================ Found Windows SDK v7.1: C:\Program Files\Microsoft SDKs\Windows\v7.1\ The C compiler identification is unknown The CXX compiler identification is unknown CMake Error at CMakeLists.txt:4 (project): No CMAKE_C_COMPILER could be found. CMake Error at CMakeLists.txt:4 (project): No CMAKE_CXX_COMPILER could be found. Configuring incomplete, errors occurred! See also "C:/Users/Alex Sedlack/Desktop/GBasic/B1-build/CMakeFiles/CMakeOutput.log". See also "C:/Users/Alex Sedlack/Desktop/GBasic/B1-build/CMakeFiles/CMakeError.log". ============================================================ Line 4 of CMakeList.txt is "project(B1)". As for CMakeFiles\CMakeOutput.txt all three tests yielded: "The system is: Windows - 6.1 - AMD64". If AMD64 is a reference to my chipset this may be a mistake as I am running on an Intel i7 2600k. Finally, as for CMakeFiles\CMakeOutput.txt, when using the "Visual Studio 10 2010" generator as well as the Win64 variant this file showed: ============================================================ Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags: The output was: 1 Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1008] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 11/25/2013 9:26:57 PM. Project "C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". InitializeBuildStatus: Creating "Debug\CompilerIdC.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue CMakeCCompilerId.c CMakeCCompilerId.c Link: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdC.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"Debug\CompilerIdC.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdC.lib" /MACHINE:X86 Debug\CMakeCCompilerId.obj CompilerIdC.vcxproj -> C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\.\CompilerIdC.exe Manifest: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /outputresource:".\CompilerIdC.exe;#1" /manifest Debug\CompilerIdC.exe.intermediate.manifest mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\CompilerIdC.exe". Access is denied. [C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj] Done Building Project "C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> (Manifest target) -> mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\CompilerIdC.exe". Access is denied. [C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.30 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags: The output was: 1 Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1008] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 11/25/2013 9:26:58 PM. Project "C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). PrepareForBuild: Creating directory "Debug\". InitializeBuildStatus: Creating "Debug\CompilerIdCXX.unsuccessfulbuild" because "AlwaysCreate" was specified. ClCompile: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /nologo /W0 /WX- /Od /Oy- /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"Debug\\" /Fd"Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue CMakeCXXCompilerId.cpp CMakeCXXCompilerId.cpp Link: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:".\CompilerIdCXX.exe" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"Debug\CompilerIdCXX.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /PDB:"C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:".\CompilerIdCXX.lib" /MACHINE:X86 Debug\CMakeCXXCompilerId.obj CompilerIdCXX.vcxproj -> C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\.\CompilerIdCXX.exe Manifest: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\mt.exe /nologo /verbose /outputresource:".\CompilerIdCXX.exe;#1" /manifest Debug\CompilerIdCXX.exe.intermediate.manifest mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\CompilerIdCXX.exe". Access is denied. [C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj] Done Building Project "C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> (Manifest target) -> mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\CompilerIdCXX.exe". Access is denied. [C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.27 ============================================================ And when I tried the IA64 variant I got: ============================================================ Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: Build flags: Id flags: The output was: 1 Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1008] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 11/25/2013 9:24:34 PM. Project "C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj" on node 1 (default targets). C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'CompilerIdC.vcxproj' is invalid. Platform='ia64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj] Done Building Project "C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj" (default target) (1) -> (InvalidPlatformError target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'CompilerIdC.vcxproj' is invalid. Platform='ia64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.10 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: Build flags: Id flags: The output was: 1 Microsoft (R) Build Engine Version 4.0.30319.1 [Microsoft .NET Framework, Version 4.0.30319.1008] Copyright (C) Microsoft Corporation 2007. All rights reserved. Build started 11/25/2013 9:24:35 PM. Project "C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj" on node 1 (default targets). C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'CompilerIdCXX.vcxproj' is invalid. Platform='ia64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj] Done Building Project "C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED. Build FAILED. "C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj" (default target) (1) -> (InvalidPlatformError target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.Cpp.InvalidPlatform.Targets(23,7): error MSB8007: The Platform for project 'CompilerIdCXX.vcxproj' is invalid. Platform='ia64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Platform that doesn't exist for this project. [C:\Users\Alex Sedlack\Desktop\GBasic\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdCXX\CompilerIdCXX.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:00.02 ============================================================ Sorry for leaving so much to decipher. I'm still looking over the error log files and experimenting but I'm relatively new to CMake so I thought I'd include all the information to be thorough. Thanks for your help. |
(0034564) Brad King (manager) 2013-11-26 08:52 |
Re 0014595:0034561: The first place I see something go wrong is this error message in the log file: mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\CompilerIdC.exe". Access is denied. [C:\Users\Alex Sedlack\Desktop\GBasic\Visual Studio 10 2010\B1-build\CMakeFiles\2.8.12.20131124-g3b30f\CompilerIdC\CompilerIdC.vcxproj] If you search the net for this "c101008d" code you will find many people reporting similar problems. Several different causes are discussed. A likely candidate is that you have an antivirus tool running that holds a lock on the .exe file to scan it just after it is created by the linker (link.exe) and does not release it in time for the manifest tool (mt.exe) to update it. |
(0034577) Alex (reporter) 2013-11-26 21:05 |
It was indeed an antivirus lock. Sorry for taking your time with something so trivial and external to CMake but I very much appreciate it. Thank you very much for the help. |
(0034589) Brad King (manager) 2013-11-27 11:00 |
Great, thanks for reporting back. |
(0036040) Robert Maynard (manager) 2014-06-02 08:37 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-11-24 18:56 | Alex | New Issue | |
2013-11-25 08:16 | Brad King | Note Added: 0034542 | |
2013-11-25 21:58 | Alex | Note Added: 0034561 | |
2013-11-26 08:52 | Brad King | Note Added: 0034564 | |
2013-11-26 21:05 | Alex | Note Added: 0034577 | |
2013-11-27 11:00 | Brad King | Note Added: 0034589 | |
2013-11-27 11:00 | Brad King | Status | new => resolved |
2013-11-27 11:00 | Brad King | Resolution | open => no change required |
2014-06-02 08:37 | Robert Maynard | Note Added: 0036040 | |
2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
2016-06-06 13:37 | Brad King | View Status | private => public |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |