MantisBT - CMake
View Issue Details
0011831CMakeCMakepublic2011-02-09 22:162011-02-10 08:29
Brian Adams 
Brad King 
normalmajoralways
closedduplicate 
IntelWindows7
CMake 2.8.3 
CMake 2.8.4 
0011831: Link error with Visual Studio 2008 and Intel Fortran 11.1
CMake: 2.8.3
MSVS: 2008 (32-bit)
Ifort: Intel Fortran Compiler 11.1 (32-bit)

When attempting to configure, I get an error very similar to that reported in Issue 0010351:

1>LINK : fatal error LNK1561: entry point must be defined

Is it possible the patch for MSVS 7 hasn't propagated throughout the other generators?

I'm running Windows 7 64-bit, but presume I should still be able to generate a 32-bit project...
* Install MSVS 2008, Intel Visual Fortran 11.1, CMake 2.8.3
* Attempt to configure SNL's LHS package (https://software.sandia.gov/svn/public/LHS/trunk/ [^]) for Visual Studio 9 2008
* Get the error (details in additional information)

Check for working Fortran compiler using: Visual Studio 9 2008
Check for working Fortran compiler using: Visual Studio 9 2008 -- broken
CMake Error at C:/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: C:/dakota/LHS/build/CMakeFiles/CMakeTmp

  

  Run Build Command:C:\PROGRA~2\MICROS~1.0\Common7\IDE\devenv.com
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec

  

  Microsoft (R) Visual Studio Version 9.0.21022.8.

  Copyright (C) Microsoft Corp. All rights reserved.

  1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
  Win32 ------

  1>Compiling with Intel(R) Visual Fortran 11.1.070 [IA-32]...

  1>testFortranCompiler.f

  1>Compiling manifest to resources...

  1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

  1>Copyright (C) Microsoft Corporation. All rights reserved.

  1>Linking...

  1>Microsoft (R) Incremental Linker Version 9.00.21022.08

  1>Copyright (C) Microsoft Corporation. All rights reserved.

  1>/OUT:C:\dakota\LHS\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe

  1>/VERSION:0.0

  1>/MANIFEST

  
  1>/MANIFESTFILE:C:\dakota\LHS\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe.intermediate.manifest


  1>/DEBUG

  1>/PDB:C:\dakota\LHS\build\CMakeFiles\CMakeTmp\Debug/cmTryCompileExec.pdb

  
  1>/IMPLIB:C:\dakota\LHS\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.lib


  1>user32.lib

  1>/debug

  1>cmTryCompileExec.dir\Debug\testFortranCompiler.obj

  
  1>C:\dakota\LHS\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe.embed.manifest.res


  1>LINK : fatal error LNK1561: entry point must be defined

  1>

  1>Build log written to
  "file://C:\dakota\LHS\build\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm" [^]


  1>cmTryCompileExec - 1 error(s), 0 warning(s)

  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
  ==========

  

  

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


Configuring incomplete, errors occurred!
No tags attached.
duplicate of 0010351closed Brad King ifort compiler not working : entry point must be defined 
Issue History
2011-02-09 22:16Brian AdamsNew Issue
2011-02-09 22:20Brian AdamsNote Added: 0025361
2011-02-10 08:14Brad KingAssigned To => Brad King
2011-02-10 08:14Brad KingStatusnew => assigned
2011-02-10 08:14Brad KingNote Added: 0025367
2011-02-10 08:26Brad KingRelationship addedduplicate of 0010351
2011-02-10 08:29Brad KingNote Added: 0025370
2011-02-10 08:29Brad KingStatusassigned => closed
2011-02-10 08:29Brad KingResolutionopen => duplicate
2011-02-10 08:29Brad KingFixed in Version => CMake 2.8.4

Notes
(0025361)
Brian Adams   
2011-02-09 22:20   
I now realize others have no problems with this config (including the Pecos dashboard), so just advise if you prefer this question on the mailing list...
(0025367)
Brad King   
2011-02-10 08:14   
This was a regression in CMake 2.8.3 that was fixed and will be available in 2.8.4. Please try the 2.8.4-rc2 candidate:

  http://www.cmake.org/files/v2.8/ [^]
(0025370)
Brad King   
2011-02-10 08:29   
Closing as duplicate of 0010351. See comment 0010351:0024389.