[CMake] Fortran issue

AMARNATH, Balachandar BALACHANDAR.AMARNATH at airbus.com
Thu May 19 02:14:02 EDT 2011


Hi,

I am trying to build MPF package in windows using intel compilers and i end up with the following error.


*******************************Check for working Fortran compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working Fortran compiler using: Visual Studio 10
Check for working Fortran compiler using: Visual Studio 10 -- broken
CMake Error at C:/Users/BAAMARNA5617/Programs/CMake 2.8/share/cmake-2.8/Modules/CMakeTestFortranCompiler.cmake:40 (MESSAGE):
The Fortran compiler "C:/Program
Files/Intel/ComposerXE-2011/bin/ia32/ifort.exe" is not able to compile a
simple test program.
It fails with the following output:
Change Dir: C:/Users/BAAMARNA5617/Projects/CMAKE/mpf_build/CMakeFiles/CMakeTmp
Run Build Command:C:\WINNT\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.1]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 19/05/2011 11:42:19.
Project
"C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj" on node 1 (default targets).
InitializeBuildStatus:
Creating "cmTryCompileExec.dir\Debug\cmTryCompileExec.unsuccessfulbuild" because "AlwaysCreate" was specified.
ManifestResourceCompile:
C:\Program Files\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:
C:\Program Files\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\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:"C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/Users/BAAMARNA5617/Projects/CMAKE/mpf_build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.lib" /MACHINE:X86 cmTryCompileExec.dir\Debug\cmTryCompileExec.exe.embed.manifest.res /debug
LINK : error LNK2001: unresolved external symbol _mainCRTStartup
[C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe
: fatal error LNK1120: 1 unresolved externals
[C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
Done Building Project
"C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj"
(default target) (1) ->
(Link target) ->
LINK : error LNK2001: unresolved external symbol _mainCRTStartup [C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec.exe : fatal error LNK1120: 1 unresolved externals [C:\Users\BAAMARNA5617\Projects\CMAKE\mpf_build\CMakeFiles\CMakeTmp\cmTryCompileExec.vcxproj]
0 Warning(s)
2 Error(s)
Time Elapsed 00:00:00.35
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:22 (project)
Configuring incomplete, errors occurred!
*******************************************************

Any hint in this error would be gr8 help. :)


With thanks and regards
Bala


The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110519/acd245e7/attachment.htm>


More information about the CMake mailing list