[cmake-developers] [CMake 0013396]: cmake fails to generate Visual Studio 10 solution after installing Visual Studio 12 Preview
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jul 12 14:06:17 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13396
======================================================================
Reported By: Hee-Seok Kim
Assigned To:
======================================================================
Project: CMake
Issue ID: 13396
Category: CMake
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2012-07-12 14:06 EDT
Last Modified: 2012-07-12 14:06 EDT
======================================================================
Summary: cmake fails to generate Visual Studio 10 solution
after installing Visual Studio 12 Preview
Description:
As the summary says, cmake fails to generate solution for Visual Studio 10,
after I installed Visual Studio 12 Preview. The failing message is as below:
C:\work\llvm\build>cmake ..\llvm -G"Visual Studio 10"
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- broken
CMake Error at C:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/work/llvm/build/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec4017301953
Microsoft (R) Visual Studio Version 10.0.30319.1.
Copyright (C) Microsoft Corp. All rights reserved.
The evaluation period for Visual Studio Trial ends in 33 days.
1>------ Build started: Project: cmTryCompileExec4017301953, Configuration:
Debug Win32 ------
1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
for 80x86
1> Copyright (C) Microsoft Corporation. All rights reserved.
1>
1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
"CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MDd /GS /fp:precise /Zc:wchar_t
/Zc:forScope /Fo"cmTryCompileExec4017301953.dir\Debug\\"
/Fd"C:/work/llvm/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec4017301953.pdb"
/Gd /TC /analyze- /errorReport:prompt
C:\work\llvm\build\CMakeFiles\CMakeTmp\testCCompiler.c /Zm1000 /GZ
1>cl : Command line warning D9035: option 'GZ' has been deprecated and will
be removed in a future release
1>cl : Command line warning D9036: use 'RTC1' instead of 'GZ'
1>
1> testCCompiler.c
1>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
Steps to Reproduce:
1. Install Visual Studio 10, with default settings
- Trial version also works
2. Install CMake-2.8.8, with default settings
3. Install Visual Studio 12 Preview, with default settings
4. Download llvm
- cd work
- svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
5. Run cmake
- mkdir build
- cd build
- cmake ..\llvm -G"Visual Studio 10"
Basically it will fail with simpler examples which goes through
MakeTestCCompiler.cmake.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-07-12 14:06 Hee-Seok Kim New Issue
======================================================================
More information about the cmake-developers
mailing list