Newsgroups: comp.parallel.mpi
From: adams@paul@erc.msstate.edu (F. P. Adams, Jr.)
Subject: MPI Compile Problems on Cray C-90
Organization: Mississippi State University - Eng. Research Center
Date: 23 Jan 1995 15:58:14 GMT
Message-ID: <3g0jmm$pne@prop.wes.army.mil>


I am trying to compile MPI on the Cray C-90 here at WES.  I am
using version 1.0.7 of MPI.  The proceedure I follow ro compile 
the program is :

     zcat mpich-1.0.7.tar.Z | tar xf -
     cd mpich
     vi configure                  Line ~596, made default cf77, not f77
     configure -arch=CRAY -device=ch_p4
     cd mpid/ch_p4/p4-1.4
     vi configure                  Line ~71, made P4ARCH="cray", not "unknown"
                                   Line ~74, made default cf77, not f77
                                   Line ~76, made default cf77, not f77
                                   Line ~77, made RANLIB=:
     configure -p4arch=CRAY
     cd ../../..
     make

I preform some of the above edits to ensure the a) it finds the Fortran
compiler and b) to avoid using ranlib on the Cray since it does not exist.
The program comiles fine up to a point.  It has problems with the file
~mpich/src/env/init.c.  The output (editted to keep it from scolling 
off the screen since it is over 80 characters long) is :


	cc -DFORTRANCAPS  -DHAS_XDR=1 -DSTDC_HEADERS=1 -DHAVE_STDLIB_H=1 
           -DHAVE_SYSTEM=1 -DPOINTER_64_BITS=1 -DHAVE_LONG_DOUBLE=1 
           -DHAVE_LONG_LONG_INT=1 -g -I../../mpid/ch_p4 -I../../include 
           -DMPI_CRAY  -c -DCONFIGURE_ARGS_CLEAN='"-arch=CRAY -device=ch_p4"' \
	    init.c
cc-653 cc: ERROR File = init.c, Line = 545
  The number of function parameters does not match a previous declaration.
cc-151 cc: WARNING File = init.c, Line = 545
  The function call argument #1 is not assignment compatible.
cc-653 cc: ERROR File = init.c, Line = 546
  The number of function parameters does not match a previous declaration.
cc-151 cc: WARNING File = init.c, Line = 546
  The function call argument #1 is not assignment compatible.
cc-653 cc: ERROR File = init.c, Line = 547
  The number of function parameters does not match a previous declaration.
cc-151 cc: WARNING File = init.c, Line = 547
  The function call argument #1 is not assignment compatible.


I am _not_ a C guru, so when I look at lines 544-547 :

    /* Create Error handlers */
    MPI_Errhandler_create( MPIR_Errors_are_fatal, &MPI_ERRORS_ARE_FATAL );
    MPI_Errhandler_create( MPIR_Errors_return, &MPI_ERRORS_RETURN );
    MPI_Errhandler_create( MPIR_Errors_warn, &MPIR_ERRORS_WARN );

and compare them with lines 192-197:

    extern void MPIR_Errors_are_fatal();
    extern void MPIR_Errors_return();
    extern void MPIR_Errors_warn();

    MPI_Errhandler MPI_ERRORS_ARE_FATAL, MPI_ERRORS_RETURN,
           MPIR_ERRORS_WARN;

as well as (what I think) are the appropriate lines in the header file
(../../include/binding.h):

    int MPI_Errhandler_create(MPI_Handler_function *function,
                               MPI_Errhandler *errhandler);

I cannot see any problems.  Does anyone have any ideas as to what the compiler
is complaining about as well as how to fix it?  Thanks in Advance.

Paul
-- 
F. Paul Adams, Jr.                 Scientific Subject Matter Specialist
Email: adams@kona.wes.army.mil     U. S. Army Corps of Engineers
Vicksburg, MS                      Waterways Experiment Station



