Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

From: Jeff Pummill (jpummil_at_[hidden])
Date: 2007-06-10 15:08:08

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?

Jeff F. Pummill
Senior Linux Cluster Administrator
University of Arkansas