LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Anthony J. Ciani (aciani1_at_[hidden])
Date: 2005-06-29 09:38:17


Hello,

Set LAMHF77=ifort in your environment for proper compiling. If using
bash,

export LAMHF77=ifort

There is no need to link MPI or Intel libraries explicitly. Use mpif77 to
compile and link. Make certain to use the same processor options when
linking as were used when compiling, or ifort may give undefined symbols.

On Mon, 27 Jun 2005, Chris Fletcher wrote:
> 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
>
>
>
>
>

------------------------------------------------------------
               Anthony Ciani (aciani1_at_[hidden])
            Computational Condensed Matter Physics
    Department of Physics, University of Illinois, Chicago
               http://ciani.phy.uic.edu/~tony
------------------------------------------------------------