LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Konz (jkonz_at_[hidden])
Date: 2004-04-05 14:58:33


Amey,

Looking at the end of the make output ...

/bin/sh ../../../libtool --mode=link /opt/pgi/linux86-64/5.1//bin/pgcc -O
-fpic ... -lpthread -lc -soname liblamf77mpi.so.0
 -o .libs/liblamf77mpi.so.0.0.0

pgcc-Warning-Unknown switch: -soname

It appears to me the problem is that -soname needs to be preceded by "-Wl,"
so that it is passed to ld. I notice in libtool that there is a variable
'{wl}' but I don't see where it is defined. I think the definition (or lack
of) of '{wl}' is the cause of the problem.

-Jeff

Jeff Konz
Linux Networx

-----Original Message-----
From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf Of
Amey Dharurkar
Sent: Saturday, April 03, 2004 2:33 PM
To: General LAM/MPI mailing list
Subject: Re: LAM: problem building shared libs with PGI

Hi,
Portland compilers require special flags to build shared libraries which
are apparently not well-supported by libtool. Please refer to the
Installation Guide (http://www.lam-mpi.org/using/docs)
where the issue is discussed in Section 4.4.4 (Portland Group Compilers)

Hope this helps,

Amey S. Dharurkar
----------------------------------------------------------
Graduate Student, Indiana University
Ph. O:(812)855-3609, H:(812)331-8203

On Fri, 2 Apr 2004, Jeff Konz wrote:

>
> I am attempting to build lam7.0.3 on x86_64 architecture with shared
> libraries.
>
> I get the following error from make .
>
> pgcc-Warning-Unknown switch: -soname
> File with unknown suffix passed to linker: liblamf77mpi.so.0
> /usr/bin/ld: cannot open liblamf77mpi.so.0: No such file or directory
> make[3]: *** [liblamf77mpi.la] Error 2
>
>
> It seems the '-Wl,' prefix is not getting passed to pgcc.
>
> Where is the '${wl}' variable defined?
>
> Configure and make output attached.
>
> Thanks,
>
> Jeff Konz
> Linux Networx
>
>
>
>
>
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/