Hi,
I try to compile a parallel fluid flow/transport code on a Debian Lenny
system at home. I successfully have done this using Debian Squeeze at
work.
I use two libs. Aztec and Metis. Just when binding all modules I get
undefined references to lam_mpi_...
# BINDING:
==========
mpif90 -o t2eco2n_mp -O -fdefault-real-8 Data_DD.o Mem_Alloc.o MULTI.o
Main_Comp.o TOUGH2.o Compu_Eos.o Input_Output.o Mesh_Maker.o Paral_Subs.o
Utility_F.o libmetis.a libaztec.a
libaztec.a(az_old_matvec_mult.o): In function `AZ_matvec_mult':
az_old_matvec_mult.c:(.text+0xc3): undefined reference to
`lam_mpi_comm_world'
az_old_matvec_mult.c:(.text+0xd9): undefined reference to
`lam_mpi_comm_world'
libaztec.a(md_wrap_mpi_c.o): In function `md_mpi_iwrite':
md_wrap_mpi_c.c:(.text+0xe): undefined reference to `lam_mpi_comm_world'
md_wrap_mpi_c.c:(.text+0x18): undefined reference to `lam_mpi_byte'
md_wrap_mpi_c.c:(.text+0x31): undefined reference to `lam_mpi_comm_world'
md_wrap_mpi_c.c:(.text+0x3b): undefined reference to `lam_mpi_byte'
libaztec.a(md_wrap_mpi_c.o): In function `md_wrap_iwrite':
# ...and so on
# Bind with "-showme"
gfortran -I/usr/lib/openmpi/include -pthread -I/usr/lib/openmpi/lib -o
t2eco2n_mp -O -fdefault-real-8 Data_DD.o Mem_Alloc.o MULTI.o Main_Comp.o
TOUGH2.o Compu_Eos.o Input_Output.o Mesh_Maker.o Paral_Subs.o Utility_F.o
libmetis.a libaztec.a -L/usr/lib/openmpi/lib -lmpi_f90 -lmpi_f77 -lmpi
-lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil -lm -ldl
Looks as Aztec lib is the problem. But it wasn't in Debian Squeeze...
Any idea? Is there any lib I have to add?
Thank you,
Torsten
|