View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010351CMakeCMakepublic2010-03-01 09:582011-01-04 12:50
ReporterJacques Charreyron 
Assigned ToBrad King 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0010351: ifort compiler not working : entry point must be defined
DescriptionWhen trying to compile with intel 11.1.60 and with visual studio 2005 sp1 I got the following error message :

The Fortran compiler "ifort" is not able to compile a simple test program.

It seems that the subsystem is not defined during this test. It should be set to console and is not set at all.

The complete dump is given as additional information.
Additional Information-- Building for: Visual Studio 8 2005
-- Check for working Fortran compiler: ifort
-- Check for working Fortran compiler: ifort -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestFortr
anCompiler.cmake:38 (MESSAGE):
  The Fortran compiler "ifort" is not able to compile a simple test program.
  It fails with the following output:
   Change Dir: D:/SubSandbox/3rdParty/Src/Harwell/1991/Build/CMakeFiles/CMakeTmp
 Run Build Command:C:\PROGRA~1\MICROS~3\Common7\IDE\
  CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec
  Microsoft (R) Visual Studio Version 8.0.50727.762.
  Copyright (C) Microsoft Corp 1984-2005. All rights reserved.
  1>------ Build started: Project: cmTryCompileExec, Configuration: Debug
  Win32 ------
  1>Compiling with Intel(R) Visual Fortran 11.1.060 [IA-32]...
  1>Compiling manifest to resources...
  1>Microsoft (R) Incremental Linker Version 8.00.50727.762
  1>Copyright (C) Microsoft Corporation. All rights reserved
  1>LINK :
  not found or not built by the last incremental link; performing full link
  1>LINK : fatal error LNK1561: entry point must be defined
  1>Build log written to
  "file://D:\SubSandbox\3rdParty\Src\Harwell\1991\Build\CMakeFiles\CMakeTmp\cmTr [^]
  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:4 (PROJECT)
-- Configuring incomplete, errors occurred!

TagsNo tags attached.
Attached Files? file icon Windows-ifort.cmake [^] (3,970 bytes) 2010-04-08 20:20

- Relationships Relation Graph ] Dependency Graph ]
has duplicate 0011831closedBrad King Link error with Visual Studio 2008 and Intel Fortran 11.1 

-  Notes
Dave Harden (reporter)
2010-04-08 20:24

I uploaded a newer version of Windows-ifort.cmake, which resolves this issue with a one line fix:


For the time being, place the uploaded file in:

C:\Program Files\CMake 2.8\share\cmake-2.8\Modules\Platform

Hopefully the change will make the cut for the next CMake release.
Brad King (manager)
2010-09-15 16:07

The CMAKE_EXE_LINKER_FLAGS_INIT variable is used for WinMain executables too, so this is not the place for this fix.

Does the generated ".vfproj" file have a SubSystem=... attribute?
Dave Harden (reporter)
2011-01-03 19:12

As it turns out the SubSystem is not set.
Brad King (manager)
2011-01-04 09:21

I think this was already fixed by this commit:;a=commitdiff;h=3d79e7d5 [^]

Please try CMake master from Git: [^] [^]

or a nightly build of 2.8.3.<date>:;O=D [^]
Dave Harden (reporter)
2011-01-04 12:37

That seems to have resolved it - thanks!

- Issue History
Date Modified Username Field Change
2010-03-01 09:58 Jacques Charreyron New Issue
2010-04-08 20:20 Dave Harden File Added: Windows-ifort.cmake
2010-04-08 20:24 Dave Harden Note Added: 0020108
2010-09-15 16:05 Brad King Status new => assigned
2010-09-15 16:05 Brad King Assigned To => Brad King
2010-09-15 16:07 Brad King Note Added: 0022233
2011-01-03 19:12 Dave Harden Note Added: 0024380
2011-01-04 09:21 Brad King Note Added: 0024389
2011-01-04 12:37 Dave Harden Note Added: 0024398
2011-01-04 12:50 Brad King Status assigned => closed
2011-01-04 12:50 Brad King Resolution open => fixed
2011-02-10 08:26 Brad King Relationship added has duplicate 0011831

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker