Open MPI logo

Open MPI User's Mailing List Archives

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

From: Ralph Castain (rhc_at_[hidden])
Date: 2007-06-10 15:16:16

Not a dumb question at all. :-)

I think the problem is your ­L flag. Our mpif90 wrapper compiler should
already know where to find the MPI library, which is located in wherever you
installed openmpi. Your flag is trying to overload our settings and I
believe is causing confusion.

So just eliminate the flag and I think you¹ll find everything compiles just

Hope that helps

On 6/10/07 1:08 PM, "Jeff Pummill" <jpummil_at_[hidden]> wrote:

> Maybe the "dumb question" of the week, but here goes...
> I am trying to compile a piece of code (NPB) under OpenMPI and I am having a
> problem with specifying the right library. Possibly something I need to define
> in a LD_LIBRARY_PATH statement?
> Using Gnu mpich, the line looked like this...
> FMPI_LIB = -L/opt/mpich/gnu/lib/ -lmpich
> I tried to replace this with...
> FMPI_LIB = -L/usr/lib/openmpi/ -llibmpi
> to which the make responded...
> mpif90 -O -o ../bin/cg.A.2 cg.o ../common/print_results.o ../common/randdp.o
> ../common/timers.o -L/usr/lib/openmpi/ -llibmpi
> /usr/bin/ld: cannot find -llibmpi
> collect2: ld returned 1 exit status
> Wrong library file? Setup or path issue?