Hi,
aren't those mpi compilers the ones configured for MPICH out of Argonne
Labs? I ran a setup like that on MPICH before I switched to LAM (small
plug for Jeff & co. here: LAM ROCKS. Oh, that's bad...) It might be as
simple as making sure you're using the LAM version of mpiCC.
Damien
> Hello,
>
> I have just downloaded and configured LAM/MPI, and all seemed to go well
> for the configure, make, amd make install, there were no errors with any
> of them. However I am using MPI to run an atmospheric model and when I
> attempted to configure the model and to link the MPI library using
> pgf90, I got the following error messages (for a lot more files than
> I've pasted below):
>
> -----------------------------------------------------------
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scan.o)(.text+0x31): In
> function `lam_ssi_coll_lam_basic_scan':
> : undefined reference to `lam_mkcoll'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scan.o)(.text+0x172): In
> function `lam_ssi_coll_lam_basic_scan':
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scan.o)(.text+0x17f): In
> function `lam_ssi_coll_lam_basic_scan':
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scatter.o)(.text+0x56):
> In function `lam_ssi_coll_lam_basic_scatter':
> : undefined reference to `lam_mkcoll'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scatter.o)(.text+0x87):
> In function `lam_ssi_coll_lam_basic_scatter':
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scatter.o)(.text+0x10a):
> In function `lam_ssi_coll_lam_basic_scatter':
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scatterv.o)(.text+0x4f):
> In function `lam_ssi_coll_lam_basic_scatterv':
> : undefined reference to `lam_mkcoll'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scatterv.o)(.text+0x7c):
> In function `lam_ssi_coll_lam_basic_scatterv':
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_coll_lam_basic_scatterv.o)(.text+0xf9):
> In function `lam_ssi_coll_lam_basic_scatterv':
> : undefined reference to `lam_mkpt'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_check_priority.o)(.text+0x80): In
> function `lam_ssi_rpi_base_check_priority':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_fault.o)(.text+0x93): In function
> `lam_ssi_rpi_commfault':
> : undefined reference to `al_next'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x7d):
> In function `lam_ssi_rpi_crtcp_bookmark_exchange_alltoall':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0xfd):
> In function `lam_ssi_rpi_crtcp_bookmark_exchange_alltoall':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x167):
> In function `send_bookmarks_alltoall':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x1ae):
> In function `send_bookmarks_alltoall':
> : undefined reference to `nsend'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x1d6):
> In function `send_bookmarks_alltoall':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x1f2):
> In function `receive_bookmarks_alltoall':
> : undefined reference to `lam_getpid'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x220):
> In function `receive_bookmarks_alltoall':
> : undefined reference to `nrecv'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x243):
> In function `receive_bookmarks_alltoall':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(ssi_rpi_crtcp_bookmarks_alltoall.o)(.text+0x26b):
> In function `receive_bookmarks_alltoall':
> : undefined reference to `lam_debug'
> /home/ccm33/MPI/lib/libmpi.a(pallgather.o)(.text+0x8a): In function
> `PMPI_Allgather':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pallgather.o)(.text+0xde): In function
> `PMPI_Allgather':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pbarrier.o)(.text+0x5b): In function
> `PMPI_Barrier':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pbarrier.o)(.text+0xb5): In function
> `PMPI_Barrier':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pbcast.o)(.text+0xae): In function
> `PMPI_Bcast':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pbcast.o)(.text+0x103): more undefined
> references to `_kio' follow
> /home/ccm33/MPI/lib/libmpi.a(pcsetname.o)(.text+0x6c): In function
> `PMPI_Comm_set_name':
> : undefined reference to `lam_strncpy'
> /home/ccm33/MPI/lib/libmpi.a(pcsetname.o)(.text+0x78): In function
> `PMPI_Comm_set_name':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pcsplit.o)(.text+0x65): In function
> `PMPI_Comm_split':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pcsplit.o)(.text+0xb2): In function
> `PMPI_Comm_split':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pcsplit.o)(.text+0x134): In function
> `PMPI_Comm_split':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pcsplit.o)(.text+0x18a): In function
> `PMPI_Comm_split':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pcsplit.o)(.text+0x2b6): In function
> `PMPI_Comm_split':
> : undefined reference to `al_insert'
> /home/ccm33/MPI/lib/libmpi.a(pcsplit.o)(.text+0x31e): In function
> `PMPI_Comm_split':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pgather.o)(.text+0xc8): In function
> `PMPI_Gather':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pgather.o)(.text+0x11c): In function
> `PMPI_Gather':: undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pgatherv.o)(.text+0xdf): In function
> `PMPI_Gatherv':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pgatherv.o)(.text+0x139): In function
> `PMPI_Gatherv':
> : undefined reference to `_kio'
> /home/ccm33/MPI/lib/libmpi.a(pirecv.o)(.text+0x52): more undefined
> references to `_kio' follow
> gmake: *** [test_mpi] Error 2
> ----------------------------------------------------------
>
> I am pretty sure that this is some underscore/double underscore
> misunderstanding, however I am not sure how to fix it. I am using
> pgf90, pgf77, mpicc-mpich and mpiCC-mpich compilers on an intel linux
> cluster, and I built the MPI library using pgf90.
>
> Thanks,
> Cathy
>
>
> --
> Cathryn Meyer
> Department of Geology and Geophysics
> Yale University
> cathryn.meyer_at_[hidden]
> (203)432-1959
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
|