<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>Hi Everyone,<br><br>I am using CMake 2.6.4 on Linux 64 bit platform. We are using absoft f95 compiler. I am trying to build cgns3.0 which uses CMake for building the package. <br>Now when I enable Fortran and try running cmake, I get the following error :<br><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 /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>.....<br>.....<br><br>/opt/absoft/bin/f95 -fPIC<br> CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o cmTryCompileExec<br> -rdynamic<br><br> ERROR: Unrecognized arguments: -rdynamic<br><br>could someone please help me how to circumvent this problem/error? I also tried setting <br>set(CMAKE_SHARED_LIBRARY_Fortran_Flags "") but it didn't help me. I also saw one similar problem which said that this problem occurs when the system has multiple Fortran compilers. Is it true? if so, what is the solution.<br><br>Thanks in advance.<br><br>Regards,<br>Venugopal Gudimetla<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></body>
</html>