Uploaded image for project: 'Open Development'
  1. Open Development
  2. OPEN-37

Cmake errors when using autobuild with Visual Studio 10(VS2010)

    XMLWordPrintableJSON

    Details

    • Approvals:
      Code Review, Product Owner
    • Acceptance Criteria:
      Be able to detect and use the right linker as well a setting the proper compiler settings and flags for VS2010 compiler.

      Description

      Environment information:

      Setting environment for using Microsoft Visual Studio 2010 x86 tools.
       
      C:\Windows\system32>set
      ALLUSERSPROFILE=C:\ProgramData
      CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
      CommonProgramFiles=C:\Program Files\Common Files
      ComSpec=C:\Windows\system32\cmd.exe
      DevEnvDir=C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\
      DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (February 2010)\
      FP_NO_HOST_CHECK=NO
      Framework35Version=v3.5
      FrameworkDir=C:\Windows\Microsoft.NET\Framework\
      FrameworkDIR32=C:\Windows\Microsoft.NET\Framework\
      FrameworkVersion=v4.0.30319
      FrameworkVersion32=v4.0.30319
      FSHARPINSTALLDIR=C:\Program Files\Microsoft F#\v4.0\
      GTK_BASEPATH=C:\Program Files\GtkSharp\2.12\
      INCLUDE=C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE;C:\Program Files\Microsoft Visu
      al Studio 10.0\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft SDKs\Windows\v7.0A\include;
      LIB=C:\Program Files\Microsoft Visual Studio 10.0\VC\LIB;C:\Program Files\Microsoft Visual Studi
      o 10.0\VC\ATLMFC\LIB;C:\Program Files\Microsoft SDKs\Windows\v7.0A\lib;
      LIBPATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;C:
      \Program Files\Microsoft Visual Studio 10.0\VC\LIB;C:\Program Files\Microsoft Visual Studio 10.0
      \VC\ATLMFC\LIB;
      NUMBER_OF_PROCESSORS=2
      OS=Windows_NT
      Path=C:\Program Files\Microsoft F#\v4.0\;C:\Program Files\Microsoft Visual Studio 10.0\VSTSDB\De
      ploy;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\;C:\Program Files\Microsoft Visua
      l Studio 10.0\VC\BIN;C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools;C:\Windows\Micr
      osoft.NET\Framework\v4.0.30319;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program Files\Microsof
      t Visual Studio 10.0\VC\VCPackages;C:\Program Files\HTML Help Workshop;C:\Program Files\Microsof
      t Visual Studio 10.0\Team Tools\Performance Tools;C:\Program Files\Microsoft SDKs\Windows\v7.0A\
      bin\NETFX 4.0 Tools;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin;C:\Program Files\NVIDIA Co
      rporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Perl\site\
      bin;C:\Perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
      owsPowerShell\v1.0\;C:\Program Files\Intel\DMIX;c:\Program Files\Microsoft SQL Server\100\Tools\
      Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Pr
      ogram Files\GtkSharp\2.12\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Live
      \Shared;C:\Python26\;D:\HG\autobuild\bin;C:\Program Files\TortoiseHg\;C:\Program Files\CMake 2.8
      \bin;C:\Program Files\Microsoft Windows Performance Toolkit\
      PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw
      PROCESSOR_ARCHITECTURE=x86
      PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 4, GenuineIntel
      PROCESSOR_LEVEL=15
      PROCESSOR_REVISION=0404
      ProgramData=C:\ProgramData
      ProgramFiles=C:\Program Files
      PROMPT=$P$G
      PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
      QTJAVA=C:\Program Files\Java\jre6\lib\ext\QTJava.zip
      SystemDrive=C:
      SystemRoot=C:\Windows
      VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 10.0\VC\
      VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio 10.0\Common7\Tools\
      VS80COMNTOOLS=C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\
      VS90COMNTOOLS=c:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
      VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 10.0\
      windir=C:\Windows
      WindowsSdkDir=C:\Program Files\Microsoft SDKs\Windows\v7.0A\

      Build Log :

      -- 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/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (M
      ESSAGE):
        The C compiler "C:/Program Files/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: D:/HG/viewer-autobuild2010/build-vc100/CMakeFiles/CMakeTmp
       
       
       
        Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
        cmTryCompileExec.vcxproj /p:Configuration=Debug
       
        Microsoft (R) Build Engine Version 4.0.30319.1
       
        [Microsoft .NET Framework, Version 4.0.30319.1]
       
        Copyright (C) Microsoft Corporation 2007.  All rights reserved.
       
       
       
        Build started 02/22/11 9:34:36 AM.
       
        Project
        "D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
        on node 1 (default targets).
       
        InitializeBuildStatus:
       
          Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild" because "AlwaysCrea
      te" was specified.
       
        ClCompile:
       
          C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /nologo /W3 /WX- /Od /Ob0
       /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /MDd /GS /fp:prec
      ise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec.dir\Debug\\" /Fd"D:/HG/viewer-autobuild2010/bu
      ild-vc100/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /Gd /TC /analyze- /errorReport:queue t
      estCCompiler.c  /Zm1000 /GZ
       
        cl : Command line warning D9035: option 'GZ' has been deprecated and will
        be removed in a future release
        [D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
       
       
        cl : Command line warning D9036: use 'RTC1' instead of 'GZ'
        [D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
       
       
          testCCompiler.c
       
        ManifestResourceCompile:
       
          C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bin\rc.exe /nologo /fo"cmTryCompileExec.dir\De
      bug\cmTryCompileExec.exe.embed.manifest.res" cmTryCompileExec.dir\Debug\cmTryCompileExec_manifes
      t.rc
       
        Link:
       
          C:\cygwin\bin\link.exe /ERRORREPORT:QUEUE /OUT:"D:\HG\viewer-autobuild2010\build-vc100\CMake
      Files\CMakeTmp\Debug\cmTryCompileExec.exe" /VERSION:"0.0" /INCREMENTAL /NOLOGO kernel32.lib user
      32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.
      lib odbc32.lib odbccp32.lib /MANIFEST /ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec
      .exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"D:\HG
      \viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CON
      SOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"D:/HG/viewer-autobuild2010/build
      -vc100/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib" /MACHINE:X86 cmTryCompileExec.dir\Debug\c
      mTryCompileExec.exe.embed.manifest.res
          cmTryCompileExec.dir\Debug\testCCompiler.obj  /machine:X86 /debug
          /usr/bin/link: cannot create link `\377\376/' to `/ERRORREPORT:QUEUE': No such file or direc
      tory
       
        C:\Program
        Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(268,5):
        error MSB6006: "link.exe" exited with code 1.
        [D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
       
       
        Done Building Project
        "D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
        (default targets) -- FAILED.
       
       
       
        Build FAILED.
       
       
       
       
        "D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
        (default target) (1) ->
       
        (ClCompile target) ->
       
          cl : Command line warning D9035: option 'GZ' has been deprecated and will be removed in a fu
      ture release [D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxpro
      j]
          cl : Command line warning D9036: use 'RTC1' instead of 'GZ' [D:\HG\viewer-autobuild2010\buil
      d-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
       
       
       
       
       
       
        "D:\HG\viewer-autobuild2010\build-vc100\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
        (default target) (1) ->
       
        (Link target) ->
       
          C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(268,
      5): error MSB6006: "link.exe" exited with code 1. [D:\HG\viewer-autobuild2010\build-vc100\CMakeF
      iles\CMakeTmp\cmTryCompileExec.vcxproj]
       
       
       
            2 Warning(s)
            1 Erro

      The problem is Cmake trying to use Cygwins's link.exe when it should not even be seeing it. Also Cmake will set /Zm1000 and other depreciated flags which are no longer needed for VS2010.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              wolfpup.lowenhar WolfPup Lowenhar
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  PagerDuty