Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Fortran linking problem: libraries have changed
From: Ralph Castain (rhc_at_[hidden])
Date: 2012-04-22 12:53:49

Hmmm…I don't see that happening, Eugene:

[rhc_at_odin001 ~/svn-trunk]$ mpifort --showme
gfortran -I/nfs/rinfs/san/homedirs/rhc/openmpi/include -I/nfs/rinfs/san/homedirs/rhc/openmpi/lib -L/nfs/rinfs/san/homedirs/rhc/openmpi/lib -lmpi_usempi -lmpi_mpifh -lmpi -lopen-rte -lopen-pal -ldl -lm -lpci -lresolv -Wl,--export-dynamic -lrt -lnsl -lutil -lm -lpthread -ldl

Did you change your MTT config to use mpifort instead of mpif77 and mpif90? If not, then they would indeed fail.

On Apr 22, 2012, at 9:57 AM, Eugene Loh wrote:

> Next Fortran problem.
> Oracle MTT managed to build the trunk (r26307) in some cases. No test-run failures in these cases, but the pass counts are way low. Turns out, the Fortran tests aren't being built (or run). I try compiling a Fortran code:
> ld: fatal: library -lmpi_f77: not found
> ld: fatal: library -lmpi_f90: not found
> ld: fatal: File processing errors. No output written to a.out
> I try "mpifort --showme" and see that it's trying to link in "-lmpi_f77 -lmpi_f90", but those libraries no longer exist. They have been replaced by
> -lmpi_mpifh
> -lmpi_usempi_ignore_tkr
> -lmpi_usempif08
> So, the Fortran wrapper needs to be updated.
> _______________________________________________
> devel mailing list
> devel_at_[hidden]