What is happening is that configure is trying to compile and run a fortran test with gfortran and it is failing because it can't find libgfortran.so.3. Here's the relevant lines from config.log:
-----
configure:28735: gfortran -o conftest conftest.f >&5
configure:28735: $? = 0
configure:28735: ./conftest
./conftest: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
configure:28735: $? = 127
configure: program exited with status 127
configure: failed program was:
| program main
|
| end
configure:28751: result: no
configure:28765: error: Could not run a simple Fortran 77 program. Aborting.
-----
Perhaps you need to set your LD_LIBRARY_PATH to point to where libgfortran is located?
In short: when you can run gfortran manually to compile/run trivial fortran programs, then configure will succeed.
> I am getting following error while bulding openmpi
>
> *** Fortran 90/95 compiler
> checking whether we are using the GNU Fortran compiler... yes
> checking whether gfortran accepts -g... yes
> checking if Fortran 77 compiler works... no
> **********************************************************************
> * It appears that your Fortran 77 compiler is unable to produce working
> * executables. A simple test application failed to properly
> * execute. Note that this is likely not a problem with Open MPI,
> * but a problem with the local compiler installation. More
> * information (including exactly what command was given to the
> * compiler and what error resulted when the command was executed) is
> * available in the config.log file in this directory.
> **********************************************************************
> configure: error: Could not run a simple Fortran 77 program. Aborting.
> make: *** No targets specified and no makefile found. Stop.
> make: *** No rule to make target `install'. Stop.
> [root@pmd openmpi-1.6.3]#
>
> System has gfortran installed
> _______________________________________________
> users mailing list
> users@open-mpi.org
> http://www.open-mpi.org/mailman/listinfo.cgi/users
--
Jeff Squyres
jsquyres@cisco.com
For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
_______________________________________________
users mailing list
users@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users