bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"wl" not set properly when using PGI compiler (resubmitted)


From: Marc Rieffel
Subject: "wl" not set properly when using PGI compiler (resubmitted)
Date: Tue, 1 Jun 2004 10:08:08 -0700

[Resubmitted with compressed attachement, as my previous attempt was too large.]


Bug-Libtool,

I was unable to build LAM-MPI 7.0.6 on my Opteron system running Rocks 3.1.0 (a 
recompiled RHEL 3.0) and the PGI compiler.  I got these errors and the LAM 
folks suggested I report a libtool bug.

> /bin/sh ../../libtool --mode=link pgcc -O -o lamboot lamboot.o 
> ../../share/libmpi.la ../../share/liblam.la -laio -lutil -lpthread 
> -lpthread
> pgcc -O -o lamboot lamboot.o ../../share/.libs/libmpi.a -L/opt/gm/lib 
> /opt/gm/lib/libgm.so ../../share/.libs/liblam.a -laio -lutil -lpthread 
> --rpath /opt/gm/lib --rpath /opt/gm/lib
> pgcc-Warning-Unknown switch: --rpath
> pgcc-Warning-Unknown switch: --rpath
> File with unknown suffix passed to linker: /opt/gm/lib
> File with unknown suffix passed to linker: /opt/gm/lib
> /opt/gm/lib: file not recognized: Is a directory
>

I have been able to work around it by changing "libtool" to use the "-Wl," 
option for linker arguments,

--- libtool     2004-05-25 14:46:01.000000000 -0700
+++ libtool.orig        2004-05-25 14:45:39.000000000 -0700
@@ -119,7 +119,7 @@
 reload_cmds="\$LD\$reload_flag -o \$output\$reload_objs"

 # How to pass a linker flag through the compiler.
-wl="-Wl,"
+wl=""

 # Object file suffix (normally "o").
 objext="o"

The output of config.guess:

# ./share/ssi/coll/lam_basic/config/config.guess
x86_64-unknown-linux-gnu

I've attached the "configure" output.

 <<configure.myrinet.pgi.log.gz>> 

If you need more information, let me know and I'll try to provide it.  Thanks.

Attachment: configure.myrinet.pgi.log.gz
Description: configure.myrinet.pgi.log.gz


reply via email to

[Prev in Thread] Current Thread [Next in Thread]