LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2004-12-21 15:21:59


Are you using the LAM wrapper compilers to compile? LAM adds a couple
of compiler flags to make the compiler and linker allow the duplicate
symbols with the memory manager (LAM needs to overload some memory
manager features for the OS bypass interconnects like InfiniBand and
Myrinet). You can either use mpicc -showme to see what the compiler
flags are or you can disable the memory manager code (which will cause
IB and GM not to be available) by configuring LAM with
--with-memory-manager=none.

Hope this helps,

Brian

On Dec 21, 2004, at 11:03 AM, Warner Yuen wrote:

> Hello fellow LAM users:
>
> I'm using the latest LAM-MPI beta, 7.1.2b11. I'm working with code
> that is having problems with multiple definitions, as you can see
> below, during compile, its trying to link with both
> "/usr/lib/libC.dylib" and "/hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a"
> It won't generate the executables, it just stops compiling. Any idea
> why I'm getting duplicate routines? Does LAM generate the duplicate
> routines?
>
> Thanks, and have a LAM-MPI day!
>
> -Warner
>
> ------------------------ output error
> ----------------------------------
>
> xlC_r -framework Accelerate -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/../../..
> -L/hpc/tools/lam/7.1.2b10/xlc/lib -lxlf90 -lxlopt -lxlomp_ser -lxl
> -lxlfmath -llam -llamf77mpi -llammpi++ -llammpio -lmpi
> -qxlf90=noautodealloc:nosignedzero -O3 -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 -L/home/oueddie/local/lib
> -lstdc++ -llapack_atl_xlf -lptcblas_xlf -lptf77blas_xlf -latlas_xlf
> ld: multiple definitions of symbol _szone_batch_malloc
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _szone_batch_malloc
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _szone_batch_malloc in section (__TEXT,__text)
> ld: multiple definitions of symbol _malloc_jumpstart
> /usr/lib/libC.dylib(scalable_malloc.So) definition of _malloc_jumpstart
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _malloc_jumpstart in section (__TEXT,__text)
> ld: multiple definitions of symbol _szone_check_counter
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _szone_check_counter
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _szone_check_counter in section (__DATA,__data)
> ld: multiple definitions of symbol _szone_check_start
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _szone_check_start
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _szone_check_start in section (__DATA,__data)
> ld: multiple definitions of symbol _szone_check_modulo
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _szone_check_modulo
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _szone_check_modulo in section (__DATA,__data)
> ld: multiple definitions of symbol _malloc_freezedry
> /usr/lib/libC.dylib(scalable_malloc.So) definition of _malloc_freezedry
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _malloc_freezedry in section (__TEXT,__text)
> ld: multiple definitions of symbol _scalable_zone_info
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _scalable_zone_info
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _scalable_zone_info in section (__TEXT,__text)
> ld: multiple definitions of symbol _szone_batch_free
> /usr/lib/libC.dylib(scalable_malloc.So) definition of _szone_batch_free
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _szone_batch_free in section (__TEXT,__text)
> ld: multiple definitions of symbol _scalable_zone_statistics
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _scalable_zone_statistics
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _scalable_zone_statistics in section (__TEXT,__text)
> ld: multiple definitions of symbol _create_scalable_zone
> /usr/lib/libC.dylib(scalable_malloc.So) definition of
> _create_scalable_zone
> /hpc/tools/lam/7.1.2b10/xlc/lib/libmpi.a(scalable_malloc.o) definition
> of
> _create_scalable_zone in section (__TEXT,__text)
> make[1]: *** [phoenix] Error 1
> make: *** [all] Error 2
> [oueddie_at_portal:34]%
> [oueddie_at_portal:34]%
> [oueddie_at_portal:34]%
>
> 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/
>

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have an LAM/MPI day: http://www.lam-mpi.org/