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

Verweij, Arjen VerweijA at tass-safe.com
Fri Aug 6 15:12:44 EDT 2010


Hi Brad,

Uh, I don't know how that happened. I pulled a fresh copy of the initial virtual machine, it does get recognized as Intel. I started again, and included the manual link line. The rsp file exists and contains CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.obj, the tmp file is nowhere to be found.

Spam below.

Regards,
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/amd64/cl.exe
-- Check for working C compiler: E:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64/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 Studio 8/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: E:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Hoi dit is status een
-- The Fortran compiler identification is Intel
-- Check for working Fortran compiler: E:/Program Files (x86)/Intel/Compiler/Fortran/9.1/em64t/bin/ifort.exe
-- Check for working Fortran compiler: E:/Program Files (x86)/Intel/Compiler/Fortran/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\amd64\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\nm1394.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\nm1395.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\amd64\nmake.exe"' : return code '0x2'

  Stop.





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


-- Configuring incomplete, errors occurred!

E:\build>

E:\build>cd CMakeFiles

E:\build\CMakeFiles>cd CMakeTmp

E:\build\CMakeFiles\CMakeTmp>ls
CMakeCache.txt
CMakeFiles
CMakeLists.txt
Makefile
cmTryCompileExec.exe
cmTryCompileExec.exe.embed.manifest
cmTryCompileExec.exe.embed.manifest.res
cmTryCompileExec.exe.intermediate.manifest
cmTryCompileExec.exe.resource.txt
cmTryCompileExec.ilk
cmake_install.cmake
cmtrycompileexec.pdb
testCCompiler.c
testCXXCompiler.cxx
testFortranCompiler.f

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

E:\build\CMakeFiles\CMakeTmp>ls
CMakeCache.txt
CMakeFiles
CMakeLists.txt
Makefile
cmTryCompileExec.exe
cmTryCompileExec.exe.embed.manifest
cmTryCompileExec.exe.embed.manifest.res
cmTryCompileExec.exe.intermediate.manifest
cmTryCompileExec.exe.resource.txt
cmTryCompileExec.ilk
cmake_install.cmake
cmtrycompileexec.pdb
testCCompiler.c
testCXXCompiler.cxx
testFortranCompiler.f

E:\build\CMakeFiles\CMakeTmp>



>-----Original Message-----
>From: Brad King [mailto:brad.king at kitware.com]
>Sent: vrijdag 6 augustus 2010 17:49
>To: Verweij, Arjen
>Cc: cmake at cmake.org
>Subject: Re: [CMake] ifort 9.1 unable to compile a simple test program
>
>On 08/06/2010 11:26 AM, Verweij, Arjen wrote:
>> I can execute the linkline manually and it seems to link fine.
>> How can I debug what's going on?
>[snip]
>> -- The Fortran compiler identification is unknown
>
>This is the first problem which may cause the others.  CMake does not
>recognize the compiler as Intel and thus may not be passing proper flags
>to it for the later tests.  Please post the CMakeFiles/CMakeError.log
>file.
>
>There should be a
>
>  CMakeFiles/CompilerIdFortran/CMakeFortranCompilerId.F
>
>file in your build tree.  Does it have any files next to it?
>If so, please send them to me off list (they are executables
>and thus mail filter systems may not like them).
>
>Either way, please try compiling that source file manually with
>
>  ifort -fpp CMakeFortranCompilerId.F
>
>-Brad


More information about the CMake mailing list