On 9/2/2011 7:33 AM, Jeff Squyres wrote:
> You should probably be using Open MPI. I don't know if that will fix your problem, but LAM/MPI was basically abandoned several years ago in favor of Open MPI. Specifically: Open MPI is where all the development and community is these days.
>
Anyway, you can't mix lam and openmpi as you are doing by creating .o
files with lam and using the openmpi mpif90 to link.
>
> On Sep 2, 2011, at 7:31 AM, tlange_at_[hidden] wrote:
>
>> 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
>>
--
Tim Prince
|