LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Yu Chen (chen_at_[hidden])
Date: 2007-03-30 09:57:03


Thanks, Jeff

No, I am using the same version of fortran compiler g95, and using mpif77
wrapper. Here is the env used when compiling application.

SYSTEM = g95-lam
COMMENT = g95 Fortran compiler for LAM version of MPI
LAMHG77 = g95
DEFS = -Dmpi -Dg95 -Dg95_lam
FC = mpif77
FC_NOMPI = g95
FFLAGS = -fno-underscoring -O
FFLAGS2 = -fno-underscoring -O

Regards,
Chen

> It sounds like you have a case of compiling LAM/MPI with one fortran
> compiler and compiling your application with a different Fortran
> compiler.
>
> Can you verify that you're using the same Fortran compiler for both?
>
>
> On Mar 29, 2007, at 1:39 PM, Yu Chen wrote:
>
>> Hi, wondering if someone can help me out;
>>
>> I am using RHEL 4, with g95 version of G95 (GCC 4.0.3 (g95 0.90!)
>> Jul 27
>> 2006), when installing LAM-MPI 7.1.3, everything is fine, the
>> "laminfo"
>> and "mpif77 --showme" outputs follows. Then when I
>> tried to compile our program, it gave out following error.
>>
>> ......
>> In function `MAIN_':
>> : undefined reference to `mpi_init'
>> In function `MAIN_':
>> : undefined reference to `mpi_comm_rank'
>> In function `MAIN_':
>> : undefined reference to `mpi_comm_size'
>> In function `MAIN_':
>> : undefined reference to `mpi_barrier'
>> In function `MAIN_':
>> : undefined reference to `mpi_bcast'
>> In function `MAIN_':
>> : undefined reference to `mpi_bcast'
>> undefined reference to `mpi_comm_dup_fn'
>> undefined reference to `mpi_comm_null_delete_fn'
>> undefined reference to `mpi_comm_null_copy_fn'
>> undefined reference to `mpi_dup_fn'
>> undefined reference to `mpi_null_copy_fn'
>> undefined reference to `mpi_null_delete_fn'
>> undefined reference to `mpi_type_null_copy_fn'
>> undefined reference to `mpi_type_null_delete_fn'
>> undefined reference to `mpi_type_dup_fn'
>> undefined reference to `mpi_win_null_copy_fn'
>> undefined reference to `mpi_win_dup_fn'
>> undefined reference to `mpi_win_null_delete_fn'
>> ......
>>
>> #### Laminfo output ####
>> LAM/MPI: 7.1.3
>> Prefix: /usr/local/lam-g95
>> Architecture: x86_64-unknown-linux-gnu
>> Configured by: cheny
>> Configured on: Thu Mar 29 10:26:01 EDT 2007
>> Memory manager: ptmalloc2
>> C bindings: yes
>> C++ bindings: yes
>> Fortran bindings: yes
>> C compiler: gcc
>> C++ compiler: g++
>> Fortran compiler: /usr/local/g95-32/bin/g95
>> Fortran symbols: double_underscore
>> C profiling: yes
>> C++ profiling: yes
>> Fortran profiling: yes
>> C++ exceptions: no
>> Thread support: yes
>> ROMIO support: yes
>> IMPI support: no
>> Debug support: no
>> Purify clean: no
>> SSI boot: globus (API v1.1, Module v0.6)
>> SSI boot: rsh (API v1.1, Module v1.1)
>> SSI boot: slurm (API v1.1, Module v1.0)
>> SSI coll: lam_basic (API v1.1, Module v7.1)
>> SSI coll: shmem (API v1.1, Module v1.0)
>> SSI coll: smp (API v1.1, Module v1.2)
>> SSI rpi: crtcp (API v1.1, Module v1.1)
>> SSI rpi: lamd (API v1.0, Module v7.1)
>> SSI rpi: sysv (API v1.0, Module v7.1)
>> SSI rpi: tcp (API v1.0, Module v7.1)
>> SSI rpi: usysv (API v1.0, Module v7.1)
>> SSI cr: self (API v1.0, Module v1.0)
>>
>> #### mpif77 --showme outputs ####
>> /usr/local/g95-32/bin/g95 -I/usr/local/lam-g95/include -pthread
>> -L/usr/local/lam-g95/lib -llammpio -llamf77mpi -lmpi -llam -laio -laio
>> -lutil -ldl
>>
>> Thank you
>>
>> Chen
>>
>> ===========================================
>> Yu Chen
>> Howard Hughes Medical Institute
>> Chemistry Building, Rm 182
>> University of Maryland at Baltimore County
>> 1000 Hilltop Circle
>> Baltimore, MD 21250
>>
>> phone: (410)455-6347 (primary)
>> (410)455-2718 (secondary)
>> fax: (410)455-1174
>> email: chen_at_[hidden]
>> ===========================================
>> _______________________________________________
>> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
>

===========================================
Yu Chen
Howard Hughes Medical Institute
Chemistry Building, Rm 182
University of Maryland at Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

phone: (410)455-6347 (primary)
         (410)455-2718 (secondary)
fax: (410)455-1174
email: chen_at_[hidden]
===========================================