Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] gfortran, gcc4.2, openmpi 1.3.3, fortran compile errors
From: Jason Palmer (jason_at_[hidden])
Date: 2009-08-25 08:46:16


Hi,

 

I'm trying to build openmpi with gcc4.2. I built gcc with thread support in
order to use OpenMP. I have been able to compile and run a threaded OpenMP
program with gfortran from gcc4.2, so the gfortran program itself seems to
be working.

 

However, when I try to configure OpenMPI 1.3.3, setting the FC, F77, and F90
environment variables to the gfortran I built, and thd CC to the gcc, it
fails to "run a simple Fortran 77 program" and exits the configure script
saying Fortran doesn't work. But I know the gfortran I'm specifying does
work.

 

I have tried specifying -m64 in the flags, and specifying the gcc4.2 library
directory (for libgfortran etc.) but it still fails on the simple Fortran
test.

 

I'm using Fedora Redhat Linux, gcc 4.2, and openmpi 1.3.3. Has anyone gotten
OpenMPI to configure and build with a gcc with OpenMP (thread) support?

 

The configure output and config.log are attached.

 

Thanks!

 

Jason