[CMake] CMake support for Itanium builds with Visual Studio 2005

Magnus Sirwiö sirwio at hotmail.com
Tue May 27 06:13:33 EDT 2008


We need to build our software for Windows Itanium. For this we use Microsoft Visual Studio 2005 with cross tools to generate executables for x86_amd64 and x86_ia64.

Compiling for x86_amd64 works fine with CMake but the x86_ia64 fails. Does somebody have a clue on howto fix this or that can provide pointers on howto patch cmake to support compiling for x86_ia64.

- Magnus

------------------------------

C:\development\cmake-2.6.0\build_ia64>vcvarsall x86_ia64
Setting environment for using Microsoft Visual Studio 2005 Itanium cross tools.

C:\development\cmake-2.6.0\build_ia64>cmake -G"NMake Makefiles" C:\development\cmake-2.6.0\Example
-- The C compiler identification is MSVC
-- The CXX compiler identification is MSVC
-- Check for CL compiler version
-- Check for CL compiler version - 1400
-- Check if this is a free VC compiler
-- Check if this is a free VC compiler - no
-- Check CL platform
-- Check CL platform - 64 bit
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 8/VC/bin/x86_ia64/cl.exe
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio 8/VC/bin/x86_ia64/cl.exe -- broken
CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):
  The C compiler "C:/Program Files/Microsoft Visual Studio
  8/VC/bin/x86_ia64/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/development/cmake-2.6.0/build_ia64/CMakeFiles/CMakeTmp



  Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"

        "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
  CMakeFiles\cmTryCompileExec.dir\build.make /nologo -L
  CMakeFiles\cmTryCompileExec.dir\build

        "C:\Program Files\CMake 2.6\bin\cmake.exe" -E cmake_progress_report
  C:\development\cmake-2.6.0\build_ia64\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj

        C:\PROGRA~1\MID05A~1\VC\bin\x86_ia64\cl.exe
  @C:\DOCUME~1\mso\LOCALS~1\Temp\nm1EFF.tmp

  testCCompiler.c

  Linking C executable cmTryCompileExec.exe

        "C:\Program Files\CMake 2.6\bin\cmake.exe" -E vs_link_exe
  C:\PROGRA~1\MID05A~1\VC\bin\x86_ia64\cl.exe /nologo
  @CMakeFiles\cmTryCompileExec.dir\objects.rsp
  @C:\DOCUME~1\mso\LOCALS~1\Temp\nm1F00.tmp

  CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj : fatal error LNK1112:
  module machine type 'IA64' conflicts with target machine type 'x64'

  LINK Pass 1 failed.  with 2

  NMAKE : fatal error U1077: '"C:\Program Files\CMake 2.6\bin\cmake.exe"' :
  return code '0xffffffff'

  Stop.

  NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
  8\VC\BIN\nmake.exe"' : return code '0x2'

  Stop.

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done

C:\development\cmake-2.6.0\build_ia64>

_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080527/1f44a3b2/attachment-0001.htm>


More information about the CMake mailing list