LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Andras Szabo (szaboan_at_[hidden])
Date: 2003-07-03 08:46:44


Hi all!

I have downloaded lam-7.0 and installed it using the Intel Fortran and C++
compilers (version 7.1).

#mpicc --showme
icc -I/usr/local/include -D_REENTRANT -L/usr/local/lib -llammpio -llamf77mpi
 -lmpi -llam -lutil -lpthread
#mpif77 --showme
ifc -I/usr/local/include -L/usr/local/lib -llammpio -llamf77mpi -lmpi -llam
-lutil -lpthread

My earlier program compiled fine (with xled support), but i have problems
with the test suite:

#./configure
Configuring LAM test suite version 7.0
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for mpicc... yes
checking for gcc... mpicc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether mpicc accepts -g... yes
checking for mpicc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of mpicc... icc
checking for mpic++... yes
checking whether we are using the GNU C++ compiler... no
checking whether mpic++ accepts -g... yes
checking dependency style of mpic++... icc
checking for mpif77... yes
checking whether we are using the GNU Fortran 77 compiler... no
checking whether mpif77 accepts -g... yes
checking for ranlib... ranlib
checking for mpi.h... yes
checking for MPI_Initialized in -lmpi... yes
checking if have Fortran MPI bindings... yes
checking how to get verbose linking output from mpif77... -v
checking for Fortran 77
libraries... -L/usr/local/lib -llammpio -llamf77mpi -lmpi -llam -lutil -lpt
hread" -L\ -lpthread -L/opt/intel/compiler70/ia32/lib -L/usr/lib -lsvml -lin
trins -lIEPCF90 -lF90 -limf -lm -lirc -lcxa -lunwind
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.

In config log i've discovered the following snippet:

configure:4350: mpicc -o conftest

conftest.c -L/usr/local/lib -llammpio -llamf77mpi -lmpi -llam -lutil -lpth
read" -L\ -lpthread -L/opt/intel/compiler70/ia32/lib -L/usr/lib -lsvml -lint
rins -lIEPCF90 -lF90 -limf -lm -lirc -lcxa -lunwind >&5
IPO: using IR for /tmp/iccz64ZgQ.o
IPO: performing single-file optimizations
ld: cannot find -lpthread"
mpicc: No such file or directory
configure:4353: $? = 1
configure: failed program was:
| #line 4327 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LAMTEST_MAJOR_VERSION 7
| #define LAMTEST_MINOR_VERSION 0
| #define LAMTEST_RELEASE_VERSION 0
| #define LAMTEST_ALPHA_VERSION 0
| #define LAMTEST_BETA_VERSION 0
| #define LAMTEST_CVS_VERSION 0
| #define LAMTEST_VERSION "7.0"
| #define LAMTEST_ARCH "i686-pc-linux-gnu"
| #ifdef __cplusplus
| #include <stdlib.h>
| #endif
| /* end confdefs.h. */
| #define F77_DUMMY_MAIN MAIN_
| #ifdef F77_DUMMY_MAIN
| # ifdef __cplusplus
| extern "C"
| # endif
| int F77_DUMMY_MAIN() { return 1; }
| #endif
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4350: mpicc -o conftest

conftest.c -L/usr/local/lib -llammpio -llamf77mpi -lmpi -llam -lutil -lpth
read" -L\ -lpthread -L/opt/intel/compiler70/ia32/lib -L/usr/lib -lsvml -lint
rins -lIEPCF90 -lF90 -limf -lm -lirc -lcxa -lunwind >&5
IPO: using IR for /tmp/iccWmLipU.o
IPO: performing single-file optimizations
ld: cannot find -lpthread"
mpicc: No such file or directory

If i run the command from shell

#mpicc -o conftest

conftest.c -L/usr/local/lib -llammpio -llamf77mpi -lmpi -llam -lutil -lpth
read" -L\ -lpthread -L/opt/intel/compiler70/ia32/lib -L/usr/lib -lsvml -lint
rins -lIEPCF90 -lF90 -limf -lm -lirc -lcxa -lunwind >&5 IPO: using IR for
/tmp/iccWmLipU.o

I get the above message.
ld: cannot find -lpthread"

If i remove the " char from the -lpthread" switch it compiles fine.

What's wrong. I don't know how to figure it out.

Thanks
Andras Szabo