<html><head><style data-externalstyle="true">
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
</style></head><body><div data-externalstyle="false" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:16px;"><div>Is your VS 2010 up to date with respect to available service packs?</div><div> </div><div>Does this same exact thing happen every time when you are starting from a clean build tree?</div><div> </div><div data-signatureblock="true"> </div>        <div style="border-top-color: rgb(225, 225, 225); border-top-width: 1px; border-top-style: solid;">                <strong>From:</strong> Mateusz Loskot<br>                <strong>Sent:</strong> March 5, 2013 10:45 AM<br>                <strong>To:</strong> cmake@cmake.org<br>                <strong>Subject:</strong> [CMake] Check for working C compiler using: Visual Studio 10 --        broken<br>        </div>        <div> </div>Hi,<br><br>Here is my environment:<br>- Windows 7 (64-bit).<br>- CMake 2.8.10.2<br>- Visual Studio 2010 Professional<br>- Visual Studio 2012 Professional (Update 1)<br><br>All VS installations work well with hand-crafted projects,<br>no problems building from IDE, no problems building from<br>corresponding command line prompts.<br><br>I launch Visual Studio Command Prompt (2010) and try to configure<br>CMake-based project, and I'm getting the status from the subject line.<br><br>Here is detailed CMake output:<br><br>----------------------------------------------------------------------------------------------------<br>d:\dev\soci\_git\build-sqlite3>cmake -G "Visual Studio 10" ..\soci\src<br>-- The C compiler identification is MSVC 16.0.30319.1<br>-- The CXX compiler identification is MSVC 16.0.30319.1<br>-- Check for working C compiler using: Visual Studio 10<br>-- Check for working C compiler using: Visual Studio 10 -- broken<br>CMake Error at C:/Program Files (x86)/CMake<br>2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):<br> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio<br> 10.0/VC/bin/cl.exe" is not able to compile a simple test program.<br><br> It fails with the following output:<br><br> Change Dir: D:/dev/soci/_git/build-sqlite3/CMakeFiles/CMakeTmp<br><br> Run Build Command:C:\PROGRA~2\MICROS~2.0\Common7\IDE\devenv.com<br> CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec2214779388<br><br> Microsoft (R) Visual Studio Version 10.0.30319.1.<br> Copyright (C) Microsoft Corp. All rights reserved.<br><br> 1>------ Build started: Project: cmTryCompileExec2214779388, Configuration:<br> Debug Win32 ------<br><br> 1>Build started 05/03/2013 15:34:40.<br> 1>PrepareForBuild:<br> 1> Creating directory<br> "D:\dev\soci\_git\build-sqlite3\CMakeFiles\CMakeTmp\Debug\".<br> 1>InitializeBuildStatus:<br> 1> Creating<br> "cmTryCompileExec2214779388.dir\Debug\cmTryCompileExec2214779388.unsuccessfulbuild"<br> because "AlwaysCreate" was specified.<br> 1>ClCompile:<br> 1> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version<br>16.00.30319.01 for 80x86<br> 1> Copyright (C) Microsoft Corporation. All rights reserved.<br> 1><br> 1> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D<br> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise<br> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec2214779388.dir\Debug\\"<br> /Fd"D:/dev/soci/_git/build-sqlite3/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec2214779388.pdb"<br> /Gd /TC /analyze- /errorReport:prompt testCCompiler.c /Zm1000<br> 1><br> 1> testCCompiler.c<br> 1>LINK : fatal error LNK1123: failure during conversion to COFF:<br>file invalid or corrupt<br> 1><br> 1>Build FAILED.<br> 1><br> 1>Time Elapsed 00:00:00.44<br> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br><br> CMake will not be able to correctly generate this project.<br>Call Stack (most recent call first):<br> CMakeLists.txt:15 (project)<br><br>-- Configuring incomplete, errors occurred!<br><br>d:\dev\soci\_git\build-sqlite3><br>----------------------------------------------------------------------------------------------------<br><br><br>I have searched Web and this kind of error seems to be recurring,<br>some users even suggest to uninstall/reinstall Visual Studio...<br>Note, both VS versions work well with projects I already have.<br><br>I'm confused, what is the correct solution?<br><br>Best regards,<br>--<br>Mateusz Loskot, http://mateusz.loskot.net<br>--<br><br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><br>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.cmake.org/mailman/listinfo/cmake<br></div></body></html>