View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013396 | CMake | CMake | public | 2012-07-12 14:06 | 2013-04-17 08:54 | ||||
Reporter | Hee-Seok Kim | ||||||||
Assigned To | David Cole | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | AMD Phenom II | OS | Windows | OS Version | 7 | ||||
Product Version | CMake 2.8.8 | ||||||||
Target Version | Fixed in Version | CMake 2.8.10.2 | |||||||
Summary | 0013396: 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0031688) David Cole (manager) 2012-11-23 12:58 |
Is this still an issue now that we have CMake 2.8.10.1 out with full Visual Studio 11 support? |
(0031760) Lee Griffiths (reporter) 2012-11-29 06:00 |
I have the same problem on 2.8.10.1 I didn't Install Visual Studio 12 preview, however. |
(0031761) Lee Griffiths (reporter) 2012-11-29 06:45 |
This isn't an issue with CMake, it seems, but VS2010. I managed to fix the problem by following the "solutions" found on these pages: http://msdn.microsoft.com/en-us/library/7dz62kfh.aspx [^] http://arcemu.org/forums/index.php?showtopic=26329 [^] http://social.msdn.microsoft.com/Forums/da-DK/vssetup/thread/d10adba0-e082-494a-bb16-2bfc039faa80 [^] That is: Install VS2010 SP1. Installing .Net 4.5 or VS2012 seems to break VS2010... |
(0031762) David Cole (manager) 2012-11-29 07:09 |
Thanks, Lee Griffiths, for the links in note 0013396:0031761. Since this is not a CMake issue, but a VS 2010 one (see the note, install SP1 or later for VS 2010...), I am resolving this issue as "no change required..." |
(0032888) Robert Maynard (manager) 2013-04-17 08:54 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-07-12 14:06 | Hee-Seok Kim | New Issue | |
2012-11-23 12:58 | David Cole | Note Added: 0031688 | |
2012-11-29 06:00 | Lee Griffiths | Note Added: 0031760 | |
2012-11-29 06:45 | Lee Griffiths | Note Added: 0031761 | |
2012-11-29 07:07 | David Cole | Assigned To | => David Cole |
2012-11-29 07:07 | David Cole | Status | new => assigned |
2012-11-29 07:09 | David Cole | Note Added: 0031762 | |
2012-11-29 07:09 | David Cole | Status | assigned => resolved |
2012-11-29 07:09 | David Cole | Fixed in Version | => CMake 2.8.10.2 |
2012-11-29 07:09 | David Cole | Resolution | open => no change required |
2013-04-17 08:54 | Robert Maynard | Note Added: 0032888 | |
2013-04-17 08:54 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |