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-28 15:40:56


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