Hi Warner -- sorry for the delay in replying; this one slipped by in
the holiday rush.
LAM requires that it be configured with the fortran compiler that
you're going to be using to compile applications.
This may not sound right, because you're clearly using a C++ linker to
compile your application below. But I'm guessing that you're mixing
several languages in the final application -- is that right? In this
case, LAM's mpic++ is not automatically linking in the fortran routines
(we only automatically link them when you use mpif77 -- is this why you
added "-llam..." manually? If so, the ordering doesn't look quite
right -- check "mpic++ -showme" for the correct ordering).
So I'm guessing from your output that LAM's fortran routines were
compiled with one fortran compiler, but the .o files in your link step
below contain at least some fortran objects that were compiled with a
different fortran compiler.
Does that help?
On Dec 24, 2004, at 12:58 PM, Warner Yuen wrote:
> We're trying to compile code and its coming down to the underscores.
> The mpi routines in the app are defined by fortran with underscores
> but I don't have the underscores, how can I compile a version to
> support them?:
>
> mpic++ -framework Accelerate -qextname -qaltivec
> -L/opt/ibmcmp/xlsmp/1.4/lib -L/opt/ibmcmp/xlf/8.1/lib
> -L/opt/ibmcmp/xlsmp/1.4/../../lib -L/opt/ibmcmp/xlf/8.1/../../lib
> -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin
> -L/usr/libexec/gcc/darwin/ppc/3.3/../../.. -lxlf90 -lxlopt -lxlomp_ser
> -lxl -lxlfmath -lm -lc -lgcc -lSystem
> -L/hpc/tools/lam/7.1.2b10/xlc/lib -llam -llamf77mpi -llammpi++
> -llammpio -lmpi -qxlf90=noautodealloc:nosignedzero -O3 -qextname
> -qarch=auto -qfloat=fltint:rsqrt -qinitauto=fff00000
> -qalign=4k:struct=natural -qcache=auto -qdpc=e -qmaxmem=-1
> -qnozerosize -qsave -qhot -qstrict -qtune=auto -qfixed -qspill=32648
> -qhalt=S -qnostrictieeemod -o phoenix phoenix.o makehydro.o
> MISC/misc.a FUZZ/fuzz.a FPPRESS/fppress.a machine.macosx-mpi.o
> windmain.o LTELINES/ltelines.a matpack.o cprusage.o opacalloc.o
> opacdealloc.o genalloc.o gendealloc.o eosalloc.o eosdealloc.o
> Cassandra/cassandra.a KAPCAL/kapcal.a S3R2T/s3r2t.a Sybil/sybil.a
> MISC/misc.a FPPRESS/fppress.a NLTE/nlte.a qdsolve.a interfaces.a
> QD/libqd.a SuperLU/superlu.a -lC /home/oueddie/phxdev/cio.o
> /home/oueddie/phxdev/LTELINES/kuruczid.o
> /home/oueddie/phxdev/LTELINES/molx.o
> /home/oueddie/phxdev/LTELINES/isotp.o
> /home/oueddie/phxdev/MISC/blockdata.o
> /home/oueddie/phxdev/FPPRESS/blockdata.o -qextname -lstdc++
> ld: Undefined symbols:
> _mpi_address_
> _mpi_allreduce_
> _mpi_barrier_
> _mpi_bcast_
> _mpi_comm_rank_
> _mpi_comm_size_
> _mpi_get_processor_name_
> _mpi_group_rank_
> _mpi_init_
> _mpi_recv_
> _mpi_reduce_
> _mpi_send_
> _mpi_type_commit_
> _mpi_type_struct_
> _mpi_abort_
> _mpi_finalize_
> _mpi_comm_create_
> _mpi_comm_dup_
> _mpi_comm_group_
> _mpi_group_free_
> _mpi_group_incl_
> _mpi_group_size_
> _mpi_group_union_
> _mpi_sendrecv_
> _mpi_irecv_
> _mpi_wait_
> _mpi_isend_
> make[1]: *** [phoenix] Error 1
> make: *** [all] Error 2
>
>
> Warner Yuen
> Research Computing Consultant
> Apple Computer
> email: wyuen_at_[hidden]
> Tel: 408.718.2859
> Fax: 408.718.0133
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|