[CMake] ifort 9.1 unable to compile a simple test program

Verweij, Arjen VerweijA at tass-safe.com
Fri Aug 6 11:26:39 EDT 2010


Hi,

Ifort 9.1 is unable to compile a simple test program on WinXP 64 bit with cmake 2.8.2.

I can execute the linkline manually and it seems to link fine.

How can I debug what's going on?

Thanks,
Arjen

E:\build>cmake Z:\f90example -G "NMake Makefiles" --debug-trycompile
debug trycompile on
-- 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 for working C compiler: E:/Program Files (x86)/Microsoft Visual Studio
8/VC/bin/cl.exe
-- Check for working C compiler: E:/Program Files (x86)/Microsoft Visual Studio
8/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: E:/Program Files (x86)/Microsoft Visual Studi
o 8/VC/bin/cl.exe
-- Check for working CXX compiler: E:/Program Files (x86)/Microsoft Visual Studi
o 8/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- The Fortran compiler identification is unknown
-- Check for working Fortran compiler: E:/Program Files (x86)/Intel/Compiler/For
tran/9.1/em64t/bin/ifort.exe
-- Check for working Fortran compiler: E:/Program Files (x86)/Intel/Compiler/For
tran/9.1/em64t/bin/ifort.exe  -- broken
CMake Error at E:/cmake28/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake
:40 (MESSAGE):
  The Fortran compiler "E:/Program Files
  (x86)/Intel/Compiler/Fortran/9.1/em64t/bin/ifort.exe" is not able to
  compile a simple test program.

  It fails with the following output:

   Change Dir: E:/build/CMakeFiles/CMakeTmp



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

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

        E:\cmake28\bin\cmake.exe -E cmake_progress_report
  E:\build\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building Fortran object
  CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.obj

        E:\PROGRA~1\Intel\Compiler\Fortran\9.1\em64t\bin\ifort.exe
  @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm1173.tmp

  Linking Fortran executable cmTryCompileExec.exe

        E:\cmake28\bin\cmake.exe -E vs_link_exe
  E:\PROGRA~1\Intel\Compiler\Fortran\9.1\em64t\bin\ifort.exe /nologo
  @CMakeFiles\cmTryCompileExec.dir\objects1.rsp
  @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm1174.tmp

  backend signals



  Severe: **Internal compiler error: internal abort** Please report this
  error along with the circumstances in which it occurred in a Software
  Problem Report.  Note: File and line given may not be explicit cause of
  this error.



  ifort: error: problem during multi-file optimization compilation (code 3)

  LINK Pass 1 failed.  with 3

  NMAKE : fatal error U1077: 'E:\cmake28\bin\cmake.exe' : return code
  '0xffffffff'

  Stop.

  NMAKE : fatal error U1077: '"E:\Program Files (x86)\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:11 (enable_language)


-- Configuring incomplete, errors occurred!


More information about the CMake mailing list