<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br><div></div>Thanks a lot Brad for your inputs and suggestions. I got in touch with CGNS team which use CMake and also I raised this issue with my own team...thanks again.<br><br>Regards,<br>Venu<br><br><br><br><table style="border-top: 1px solid black; font-weight: bold; font-family: 'Segoe UI',Tahoma,san-serif;"><tbody><tr><td><a href="http://im.live.com/Messenger/IM/Home/?source=EML_WLHM_GreaterGood" style="font-size: 9pt; color: rgb(1, 132, 203); text-decoration: none;"><img style="border-style: none;" src="http://gfx1.hotmail.com/mail/w3/ltr/i_charity.gif" alt="i'm"> EMAILING FOR THE GREATER GOOD<br><span style="padding: 0px 24px; font-size: 8pt; color: rgb(63, 181, 85); text-decoration: underline;">Join me</span></a></td></tr></tbody></table><br><br>&gt; Date: Tue, 1 Sep 2009 11:58:31 -0400<br>&gt; From: brad.king@kitware.com<br>&gt; To: gudimetlav@hotmail.com<br>&gt; CC: cmake@cmake.org<br>&gt; Subject: Re: [CMake] Unable to run cmake using absoft f95 Fortran compiler<br>&gt; <br>&gt; venugopal gudimetla wrote:<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; Hi Brad,<br>&gt; &gt; <br>&gt; &gt;&gt;This brings us back to<br>&gt; &gt;&gt; my question: does the compiler identify itself with any documented<br>&gt; &gt;&gt; preprocessor symbol?<br>&gt; &gt; <br>&gt; &gt; I checked Absoft documentation and also asked Absoft support guys, there<br>&gt; &gt; doesn't seem to be a pre-processor macro which identifies itself. Except<br>&gt; &gt; fot using f95 -v option.<br>&gt; <br>&gt; This sounds like a feature request for the Absoft team.<br>&gt; I've never encountered a compiler that supports the C preprocessor<br>&gt; but does not define a macro to identify itself.  CMake depends on<br>&gt; these macros to distinguish compilers without guessing special flags.<br>&gt; This case is particularly problematic because the Absoft compiler<br>&gt; falsely identifies itself as GNU.<br>&gt; <br>&gt; For now I'll have to say CMake doesn't support this compiler.<br>&gt; You can submit a feature request here:<br>&gt; <br>&gt;   http://www.cmake.org/Bug<br>&gt; <br>&gt; -Brad<br>&gt; <br>&gt; &gt;&gt; What is the actual link line that is failing? You can see it<br>&gt; &gt;&gt; by running "make VERBOSE=1".<br>&gt; &gt; <br>&gt; &gt; I cut the paste the error output from make VERBOSE=1<br>&gt; &gt; <br>&gt; &gt; /usr/bin/cmake<br>&gt; &gt; -H/u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5<br>&gt; &gt; -B/u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5<br>&gt; &gt; --check-build-system CMakeFiles/Makefile.cmake 0<br>&gt; &gt; -- *The Fortran compiler identification is GNU*<br>&gt; &gt; -- Check for working Fortran compiler: /opt/absoft/bin/f95<br>&gt; &gt; -- Check for working Fortran compiler: /opt/absoft/bin/f95 -- broken<br>&gt; &gt; CMake Error at<br>&gt; &gt; */usr/share/cmake/Modules/CMakeTestFortranCompiler.cmake:25* (MESSAGE):<br>&gt; &gt;   The Fortran compiler "/opt/absoft/bin/f95" is not able to compile a simple<br>&gt; &gt;   test program.<br>&gt; &gt; <br>&gt; &gt;   It fails with the following output:<br>&gt; &gt; <br>&gt; &gt;    Change Dir:<br>&gt; &gt; /u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5/CMakeFiles/CMakeTmp<br>&gt; &gt;  <br>&gt; &gt; <br>&gt; &gt;   Run Build Command:/usr/bin/gmake "cmTryCompileExec/fast"<br>&gt; &gt; <br>&gt; &gt;   gmake[1]: Entering directory<br>&gt; &gt;  <br>&gt; &gt; `/u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5/CMakeFiles/CMakeTmp'<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;   /usr/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make<br>&gt; &gt;   CMakeFiles/cmTryCompileExec.dir/build<br>&gt; &gt; <br>&gt; &gt;   gmake[2]: Entering directory<br>&gt; &gt;  <br>&gt; &gt; `/u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5/CMakeFiles/CMakeTmp'<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;   /usr/bin/cmake -E cmake_progress_report<br>&gt; &gt;  <br>&gt; &gt; /u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5/CMakeFiles/CMakeTmp/CMakeFiles<br>&gt; &gt;   1<br>&gt; &gt; <br>&gt; &gt;   Building Fortran object<br>&gt; &gt;   CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o<br>&gt; &gt; <br>&gt; &gt;   /opt/absoft/bin/f95 -o<br>&gt; &gt;   CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -c<br>&gt; &gt;  <br>&gt; &gt; /u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5/CMakeFiles/CMakeTmp/testFortranCompiler.f<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;   Linking Fortran executable cmTryCompileExec<br>&gt; &gt; <br>&gt; &gt;   /usr/bin/cmake -E cmake_link_script<br>&gt; &gt;   CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1<br>&gt; &gt; <br>&gt; &gt;   /opt/absoft/bin/f95 -fPIC<br>&gt; &gt;   CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o<br>&gt; &gt; cmTryCompileExec<br>&gt; &gt;   -rdynamic<br>&gt; &gt; <br>&gt; &gt;   *ERROR: Unrecognized arguments: -rdynamic*<br>&gt; &gt; <br>&gt; &gt;   gmake[2]: *** [cmTryCompileExec] Error 1<br>&gt; &gt; <br>&gt; &gt;   gmake[2]: Leaving directory<br>&gt; &gt;  <br>&gt; &gt; `/u/xeon31/people/venugopal/cgns3.05/cgns/cgns/release/3.0.5/CMakeFiles/CMakeTmp'<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;   gmake[1]: *** [cmTryCompileExec/fast] Error 2<br>&gt; &gt; <br>&gt; &gt; Please help me get around with the error.<br>&gt; &gt; <br>&gt; &gt; Best Regards,<br>&gt; &gt; Venu<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; i'm EMAILING FOR THE GREATER GOOD<br>&gt; &gt; Join me &lt;http://im.live.com/Messenger/IM/Home/?source=EML_WLHM_GreaterGood&gt;<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt;&gt; Date: Mon, 31 Aug 2009 14:23:27 -0400<br>&gt; &gt;&gt; From: brad.king@kitware.com<br>&gt; &gt;&gt; To: gudimetlav@hotmail.com<br>&gt; &gt;&gt; CC: cmake@cmake.org<br>&gt; &gt;&gt; Subject: Re: [CMake] Unable to run cmake using absoft f95 Fortran compiler<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; venugopal gudimetla wrote:<br>&gt; &gt;&gt; &gt; Thank you very much for your quick response.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; BTW, Fortran support is greatly improved in CMake's development version.<br>&gt; &gt;&gt; If you can try the latest version from CVS HEAD, please do so.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt; Yeah I noticed too that for<br>&gt; &gt;&gt; &gt; some reason Cmakes is assuming f95 to be a GNU compiler.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; CMake is not assuming anything. It actually compiles a test source<br>&gt; &gt;&gt; file with the ".F" extension so that the preprocessor runs. The source<br>&gt; &gt;&gt; uses preprocessor definitions to detect the compiler identification.<br>&gt; &gt;&gt; I think the compiler is defining __GNUC__.<br>&gt; &gt;&gt; &gt; In the file<br>&gt; &gt;&gt; &gt; /cmake/Modules/CMakeDetermineFortranCompiler.cmake, I didn't see any<br>&gt; &gt;&gt; &gt; reference to Absoft compilers, even though f90/f95 compilers are being<br>&gt; &gt;&gt; &gt; listed as possible compilers.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Many Fortran compiler vendors provide tools called 'f90' and 'f95'.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt; 2. I also set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "") in my<br>&gt; &gt;&gt; &gt; CMakeLists.txt, which made no difference to the error message.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; What is the actual link line that is failing? You can see it<br>&gt; &gt;&gt; by running "make VERBOSE=1".<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; -Brad<br>&gt; <br>&gt; <br></body>
</html>