LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2004-11-01 14:53:25


On Oct 27, 2004, at 11:54 PM, John Lau wrote:

> I am working on LAM 7.1.1. When I compile it with tm boot module, the
> mpicc needs to add "-L/usr/pbs/lib" to compile. I read the mailing list
> and find the problem have been fixed in 7.1.2 beta.

Clarification -- what was fixed was that -L was no longer added when
you compile modules as DSO's; in this case, the linkage is established
in the module itself and it isn't necessary to have linkage anywhere
else.

> It seems that 7.1.2 beta add "-L/usr/pbs/lib" into mpicc. So it will
> link libpbs when we use mpicc (even when I compile ssi-boot-tm as
> static). But I use 7.0.3 before and it seems that LAM static linked the
> libpbs at compile time, so that we don't need libpbs when using mpicc.

I looked into the matter further to determine what changed between
7.0.x and 7.1.x. What happened is that we now examine the generated
libtool scripts for each statically-compiled module and extract any
discovered LDFLAGS and LIBS. This allows us to find -Wl kinds of
flags, for example, which typically make a better user experience
(e.g., -Wl,-rpath... kinds of things).

I have uploaded 7.1.2b8 which should fix this issue -- please give it a
whirl and let me know if it works.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/