LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Chris Fletcher (cgf_at_[hidden])
Date: 2005-06-27 19:01:35


Dear lam-list

I am compiling an atmospheric model, with the following set up:
Fedora Core 3, LAM-7.1.1, Intel C and Fortran compilers v8.1. I've used
mpif77 to get the following to pass to ifort:
LDFLAGS = -L/usr/local/lib -lnetcdf -L/usr/local/lib -llammpio -
llamf77mpi -lmpi -lcprts -llam -laio -lutil -ldl

The compilation is failing at the linking stage with the following (a
sample of many such errors):
/my/dir/% ifort [.o file list] -o output.x $LDFLAGS
<...CUT...>
mpp_util.o(.text+0x17b2): In function `mpp_util_mod_mp_mpp_node_':
: undefined reference to `mld_id_'
<...CUT...>
mpp_io_read.o(.text+0x16e5): In function
`mpp_io_read_mod_mp_read_record_':
: undefined reference to `nf_get_vara_double_'
<...CUT...>
: undefined reference to `pthread_setspecific'
/usr/local/lib/libmpi.a(malloc.o)(.text+0x363): In function
`ptmalloc_init':
<...CUT...>
/usr/local/lib/liblam.a(lamthreads.o)(.text+0x2b): In function
`lam_thread_join':
: undefined reference to `pthread_join'
<...CUT...>
make: *** [fms_m45_am2p14_1990.x] Error 1
ERROR: make failed for m45_am2p14_1990

Does this sound like an MPI library problem? The libraries definitely
exist at /usr/local/lib, but I cannot tell if they are the right
libraries or if they being found/seen...

Hope this is enough info -- any advice greatfully received. Thanks in
advance.
Chris