Dear list,
I've got LAM 7.1.3 compiled with GCC 4.2 and Fortran support on some
G5 XServes. I'm trying to compile a Fortran-based program using
mpif77 and I'm getting the following error:
/usr/bin/ld: multiple definitions of symbol _atexit
/usr/local/lib/gcc/powerpc-apple-darwin8.6.0/4.2.0/crt3.o private
external definition of _atexit in section (__TEXT,__text)
/usr/lib/libdl.dylib(atexit.So) definition of _atexit
/usr/bin/ld: multiple definitions of symbol ___cxa_atexit
/usr/local/lib/gcc/powerpc-apple-darwin8.6.0/4.2.0/crt3.o private
external definition of ___cxa_atexit in section (__TEXT,__text)
/usr/lib/libdl.dylib(atexit.So) definition of ___cxa_atexit
collect2: ld returned 1 exit status
make[1]: *** [par] Error 1
make: *** [mac-gfortran-lammpi] Error 2
Any ideas what might be causing this?
If it's any help, here's some output from laminfo
C++ bindings: yes
Fortran bindings: yes
C compiler: /usr/local/bin/gcc
C++ compiler: g++
Fortran compiler: /usr/local/bin/gfortran
Fortran symbols: underscore
C profiling: yes
C++ profiling: yes
Fortran profiling: yes
And /usr/local/lammpi/bin/mpif77 -showme ouputs:
/usr/local/bin/gfortran -I/usr/local/lammpi/include -Wl,-u -
Wl,_lam_darwin_malloc_linker_hack -Wl,-multiply_defined,suppress -Wl,-
force_flat_namespace -Wl,-flat_namespace -Wl,-multiply_defined -
Wl,suppress -L/usr/local/lammpi/lib -llammpio -llamf77mpi -lmpi -llam
-ldl
Thank you!
Aaron Thompson
Vanderbilt University
aaron.p.thompson_at_[hidden]
|