Hi Ole,
* Ole Holm Nielsen wrote on Tue, Jun 28, 2005 at 10:40:56PM CEST:
> 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
*snip*
> 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 ?
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?
Thanks,
Ralf
|