[cmake-developers] [CMake 0011831]: Link error with Visual Studio 2008 and Intel Fortran 11.1
Mantis Bug Tracker
mantis at public.kitware.com
Wed Feb 9 22:16:31 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=11831
======================================================================
Reported By: Brian Adams
Assigned To:
======================================================================
Project: CMake
Issue ID: 11831
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-02-09 22:16 EST
Last Modified: 2011-02-09 22:16 EST
======================================================================
Summary: Link error with Visual Studio 2008 and Intel Fortran
11.1
Description:
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 http://www.cmake.org/Bug/view.php?id=10351:
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...
Steps to Reproduce:
* 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)
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!
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-02-09 22:16 Brian Adams New Issue
======================================================================
More information about the cmake-developers
mailing list