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