From: William Yim <wlyim@cuhk.edu.hk>
Newsgroups: comp.parallel.mpi
Subject: Re: Lam 6.2.0b & Linux & g77
Date: Thu, 08 Jul 1999 11:38:19 +0800
Organization: The Chinese University of Hong Kong
Message-Id: <37841D2B.6FE8EC47@mailserv.cuhk.edu.hk>
References: <7lc969$2rq$1@unx1.shsu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:5299


Hi,

    I also use the LAM/MPI and it works. You should try to get the source
code of lam mpi, in order to make sure everything is ok. During the
compilation of MPI, we need to change the config file, replacing the fortran
compiler flag to desire value.

regards,
William Yim

Bob Farmer wrote:

> I've installed LAM 6.2.0b on a Linux system from the RPM that NASA
> provides on its Beowulf pages.  I've set the LAMHF77 env var to g77 to
> make sure it uses g77.  Compiling the C examples that come with LAM works
> fine.  When trying to compile the Fortran examples (such as wave1d),
> though, I get this:
>
> $make
> hf77 -o wave wave.f -lmpi
> /tmp/cca021271.o: In function `MAIN__':
> /tmp/cca021271.o(.text+0xe): undefined reference to `mpi_init__'
> /tmp/cca021271.o(.text+0x24): undefined reference to `mpi_comm_rank__'
> /tmp/cca021271.o(.text+0x3a): undefined reference to `mpi_comm_size__'
> /tmp/cca021271.o(.text+0xb8): undefined reference to `mpi_finalize__'
> /tmp/cca021271.o(.text+0x3e6): undefined reference to `mpi_finalize__'
> <...etc...>
>
> It seems the function names the compiler is generating aren't matching up
> with the library's somehow?  Maybe something to do with the double
> underscore that's being used?
>
> Any info would be appreciated...
>
> --
> Bob Farmer                                     ucs_brf@shsu.edu
> Computer Services, Sam Houston State University; Huntsville, TX

