LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Ole Holm Nielsen (Ole.H.Nielsen_at_[hidden])
Date: 2005-06-29 04:39:40


Hi Ralf,

I added the Portland Group compiler lines as requested in 2 different
places (about lines 4330 and 4414) in the configure script. Now it
really works for lamtests-7.1.1 with the PGI x86 compilers v6.0-4 !
The single-quote following -ldl is gone. The lamtests "make" stage
also works without errors.

I also checked lamtests-7.1.1 on another system with the Portland
Group compiler 5.2-4, and there we have the very same problem
with a single-quote after the -ldl library. Apparently this problem
has been around for some time now, so I'm very pleased that you've
come up with a solution !

Thanks a lot,
Ole

Ralf Wildenhues <Ralf.Wildenhues_at_[hidden]> wrote:
> Maybe. First, Autoconf CVS (post 2.59) macro _AC_PROG_FC_V_OUTPUT has
> seen a fix from Jeff to cope with double-quoted output of
> pgf95 -v
> but this needs fixes for singly quoted output. Seems PGI changed their
> command line quoting from double quotes to single quotes.
>
> Please try the following and tell us whether it fixes your problem (so
> that we can then have Autoconf update their macro):
> Search for each occurrence of "mGLOB_options_string" in the configure
> script, insert these two cases after the intel case:
>
> # Portland Group compiler has singly- or doubly-quoted -cmdline argument
> *-cmdline\ \'*)
> ac_f77_v_output=`echo $ac_f77_v_output | sed "s/-cmdline *'[^']*'/ /g"` ;;
> *-cmdline*)
> ac_f77_v_output=`echo $ac_f77_v_output | sed 's/-cmdline *"[^"]*"/ /g'` ;;
>
> Then rerun configure. Does this work?

Ole Holm Nielsen wrote:
> I've built LAM 7.1.1 with the Portland Group PGI 6.0-4 compiler.
> However, when I want to build the LAM test suite the "configure"
> phase bombs out with an error:
>
> ./configure
> (lines deleted)
> checking for Fortran libraries of mpif77... -lpthread -lpbs -lnsl
> -L/usr/local/lam-7.1.1-pgi/lib -llammpio -llamf77mpi -lmpi -llam -lutil
> -ldl' -L/usr/pgi/linux86/6.0/lib -L/usr/lib
> -L/usr/lib/gcc/i386-redhat-linux/3.4.3 -ldl -lpgf90 -lpgf90_rpm1
> -lpgf902 -lpgf90rtl -lpgftnrtl -lnspgc -lpgc -lm
> checking for dummy main to link with Fortran libraries... unknown
> configure: error: linking to Fortran libraries from C fails
> See `config.log' for more details.
>
> The config.log shows an interesting error:
>
> configure:4657: mpicc -o conftest conftest.c -lpthread -lpbs -lnsl
> -L/usr/local/lam-7.1.1-pgi/lib -llammpio -llamf77mpi -lmpi -llam -lutil
> -ldl' -L/usr
> /pgi/linux86/6.0/lib -L/usr/lib -L/usr/lib/gcc/i386-redhat-linux/3.4.3
> -ldl -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpgftnrtl -lnspgc -lpgc
> -lm >&5
> /usr/bin/ld: cannot find -ldl'
>
> and also has a rather strange variable setting:
>
> ac_cv_f77_libs=' -lpthread -lpbs -lnsl -L/usr/local/lam-7.1.1-pgi/lib
> -llammpio -llamf77mpi -lmpi -llam -lutil -ldl'\''
> -L/usr/pgi/linux86/6.0/lib -L/usr/li
> b -L/usr/lib/gcc/i386-redhat-linux/3.4.3 -ldl -lpgf90 -lpgf90_rpm1
> -lpgf902 -lpgf90rtl -lpgftnrtl -lnspgc -lpgc -lm'
>
> Notice the strange and misplaced single-quote placed right after
> the "-ldl" item. The setting of ac_cv_f77_libs is obviously
> in error, but I cannot figure out how that extra single-quote
> got there.
>
> Can anyone help fix this problem ?
>
> Ole Holm Nielsen
> Department of Physics, Technical University of Denmark