From gudimetlav at hotmail.com Mon Aug 31 11:35:54 2009 From: gudimetlav at hotmail.com (venugopal gudimetla) Date: Mon, 31 Aug 2009 11:35:54 -0400 Subject: [CMake-Promote] CMake absoft f95 Fortran compiler unable to compile simple problem Message-ID: Hi Everyone, 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. Now when I enable Fortran and try running cmake, I get the following error : -- The Fortran compiler identification is GNU -- Check for working Fortran compiler: /opt/absoft/bin/f95 -- Check for working Fortran compiler: /opt/absoft/bin/f95 -- broken CMake Error at /usr/share/cmake/Modules/CMakeTestFortranCompiler.cmake:25 (MESSAGE): The Fortran compiler "/opt/absoft/bin/f95" is not able to compile a simple test program. ..... ..... ..... /opt/absoft/bin/f95 -fPIC CMakeFiles/cmTryCompileExec.dir/testFortranCompiler.f.o -o cmTryCompileExec -rdynamic ERROR: Unrecognized arguments: -rdynamic could someone please help me how to circumvent this problem/error? I also tried setting 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. Thanks in advance. Regards, Venugopal Gudimetla EMAILING FOR THE GREATER GOOD Join me -------------- next part -------------- An HTML attachment was scrubbed... URL: From brad.king at kitware.com Mon Aug 31 12:04:34 2009 From: brad.king at kitware.com (Brad King) Date: Mon, 31 Aug 2009 12:04:34 -0400 Subject: [CMake-Promote] CMake absoft f95 Fortran compiler unable to compile simple problem In-Reply-To: References: Message-ID: <4A9BF492.8070000@kitware.com> venugopal gudimetla wrote: > 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. Please post this to the CMake User's list (cmake at cmake.org): http://public.kitware.com/cgi-bin/mailman/listinfo/cmake -Brad