CMake 2.8/HDF 1.8.7/Visual Studio 2010/Intel Fortran 12

I am trying to build (64-bit) HDF 1.8.7 from source using Visual Studio 2010
and Intel FORTRAN 12.

Intel FORTRAN is properly installed and I am able to build FORTRAN programs
from the Studio.

However, CMAKE stops with

CMake Error at E:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
  The Fortran compiler "ifort" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: D:/HDF/hdf5-1.8.7-Win64-Static/CMakeFiles/CMakeTmp

  Run Build
Command:E:\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.225]

  Copyright (C) Microsoft Corporation 2007. All rights reserved.

  Build started 7/28/2011 1:55:03 PM.

  Project

"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
  on node 1 (default targets).

  InitializeBuildStatus:

    Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild"
because "AlwaysCreate" was specified.

  ManifestResourceCompile:

    E:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo
/fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res"
cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc

  Link:

    E:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE
/OUT:"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe"
/VERSION:"0.0" /INCREMENTAL /NOLOGO user32.lib /MANIFEST
/ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
/PDB:"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb"
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"D:/HDF/hdf5-1.8.7-Win64-Static/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib"
/MACHINE:X64
cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res /debug

  LINK : error LNK2001: unresolved external symbol mainCRTStartup

[D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
  : fatal error LNK1120: 1 unresolved externals

[D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

  Done Building Project

"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
  (default targets) -- FAILED.

  Build FAILED.

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/CMake-2-8-HDF-1-8-7-Visual-Studio-2010-Intel-Fortran-12-tp3207884p3207884.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Andrew,

    Unfortunately, CMake currently has an outstanding issue with VS2010 and Fortran. I think it there might be a fix in the next version of CMake, 2.8.6. However, we will need to wait on Kitware for this fix.

Allen

···

I am trying to build (64-bit) HDF 1.8.7 from source using Visual Studio 2010
and Intel FORTRAN 12.

Intel FORTRAN is properly installed and I am able to build FORTRAN programs
from the Studio.

However, CMAKE stops with

CMake Error at E:/Program Files (x86)/CMake
2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
  The Fortran compiler "ifort" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: D:/HDF/hdf5-1.8.7-Win64-Static/CMakeFiles/CMakeTmp

  Run Build
Command:E:\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.225]

  Copyright (C) Microsoft Corporation 2007. All rights reserved.

  Build started 7/28/2011 1:55:03 PM.

  Project

"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
  on node 1 (default targets).

  InitializeBuildStatus:

    Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild"
because "AlwaysCreate" was specified.

  ManifestResourceCompile:

    E:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo
/fo"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res"
cmTryCompileExec.dir\Debug\cmTryCompileExec_manifest.rc

  Link:

    E:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE
/OUT:"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe"
/VERSION:"0.0" /INCREMENTAL /NOLOGO user32.lib /MANIFEST
/ManifestFile:"cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
/PDB:"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb"
/SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"D:/HDF/hdf5-1.8.7-Win64-Static/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib"
/MACHINE:X64
cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res /debug

  LINK : error LNK2001: unresolved external symbol mainCRTStartup

[D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
  : fatal error LNK1120: 1 unresolved externals

[D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]

  Done Building Project

"D:\HDF\hdf5-1.8.7-Win64-Static\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
  (default targets) -- FAILED.

  Build FAILED.

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/CMake-2-8-HDF-1-8-7-Visual-Studio-2010-Intel-Fortran-12-tp3207884p3207884.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Ok, thanks for that. I will create the projects under Studio 2008 and convert
them as a workaround.

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/CMake-2-8-HDF-1-8-7-Visual-Studio-2010-Intel-Fortran-12-tp3207884p3208099.html
Sent from the hdf-forum mailing list archive at Nabble.com.

The kitware guys have recently added intel fortran 12 support and it is working nicely in the 'next' branch of cmake from git.

I would recommend also the svn '1_8_cmake branch' of hdf5 too as it has a number of intel fortran fixes (link issues) for apps using hdf5+mpich2 etc etc

JB

···

-----Original Message-----
From: hdf-forum-bounces@hdfgroup.org [mailto:hdf-forum-bounces@hdfgroup.org] On Behalf Of AndrewC
Sent: 29 July 2011 00:24
To: hdf-forum@hdfgroup.org
Subject: Re: [Hdf-forum] CMake 2.8/HDF 1.8.7/Visual Studio 2010/Intel Fortran 12

Ok, thanks for that. I will create the projects under Studio 2008 and convert
them as a workaround.

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/CMake-2-8-HDF-1-8-7-Visual-Studio-2010-Intel-Fortran-12-tp3207884p3208099.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org