From: lfm@pgroup.com (Larry Meadows)
Newsgroups: comp.parallel.mpi
Subject: Re: compiling mpich on redhat 5.1
Date: 18 Dec 1998 10:00:52 -0800
Organization: The Portland Group, Inc.
Message-Id: <75e58k$8cq@pacific.pgroup.com>
References: <75b392$l64$1@nnrp1.dejanews.com>
    <367A14D9.575C14A0@lfbs.rwth-aachen.de>


It might have been helpful if the original poster had asked us rather
than posting.

I don't have the original posting, but if the problem was missing
definition of some of the profiling routines, that's due to an
EXTERNAL statement in mpif.h. The problem is fixed in the next
release, due in January, but for now, you can configure as follows:

configure -fc=pgf77 -f90=pgf90 -fflags=-My,124,0x1000 -f90flags=-My,124,0x1000

Also, if you're trying to use mpich compiled with g77, you should read the
following:

I use g77 to compile the objects in the MPI library.  When I use pgf77 to
compile and link against the MPI library, I see undefined references during
the linking phase.  The error messages are of the form:
    cavit.o (.data+0x170): undefined reference to mpi_send_
 
The g77 compiler appends an underscore to a global name and appends a second
underscore if the name contains an underscore.  For example, the routine
'mpi_send' will appear as 'mpi_send__' in the library.
 
By default, pgf77 only appends a single  underscore to global names.
To direct pgf77 to append the second underscore, add the compile option
    -Mx,119,0x02000000
 
In the next release, this option will be named
    -Msecond_underscore

Please send problems to trs@pgroup.com

lfm
Joachim Worringen <joachim@lfbs.rwth-aachen.de> writes:

>hutch@my-dejanews.com wrote:
>> 
>> I'm trying to install mpich on a redhat 5.1 system using the Portland Group
>> fortran 77 compiler.  Here is the configure command that I'm using:
>> 
>> configure -noc++ -fc=pgf77 -flinker=pgf77
>> 
>> Then, make fails during the link step.  Here is the error:

>This has nothing to do with F77 since only C-Source is involved. Seems
>to be a linking problem between libmpich.a and libpmich.a (profiling
>version). Try to see what mpicc really does by issuing the commands
>manually with the -show option. You might have to change the order of
>the libraries on the resulting commandline (or add libpmich.a).

>  Joachim

>-- 
>----------------------------------------------------------------------------
>|  _      :  Joachim Worringen, Lehrstuhl fuer Betriebssysteme
>|_|_`__   :  RWTH Aachen, Kopernikusstr. 16, D-52056 Aachen
>  | |__)  :  Tel.   : +49-241/80-7609  |  Fax : +49-241/8888-339
>    |__)S :  e-Mail :  joachim@lfbs.rwth-aachen.de

