[mvapich-discuss] Building Panasis support for MVAPICH2, possible issue with included files

David Gunter dog at lanl.gov
Wed Mar 14 13:26:53 EDT 2007


I believe I have found a bug in the mvapich2 build process when  
enabling Panasas file system support.

I followed the advice in the README.romio file but I was getting an  
error associated with being unable to find mpi.h.

Along with my other configure options, I've included the "--enable- 
romio --with-file-system=panfs+ufs+nfs" part.  I have also made sure  
that CFLAGS contains a "-I/usr/include" since the panasas header  
files are located there.  The build follows the configure set up as  
normal until it gets to building the panfs bit:

...
compiling ROMIO in directory adio/ad_panfs
make[5]: Entering directory `/net/scratch1/dog/rpm/BUILD/ 
mvapich2-0.9.8/src/mpi/romio/adio/ad_panfs'
/usr/bin/gcc -D_X86_64_ -D_SMP_ -DUSE_HEADER_CACHING -DONE_SIDED - 
DMPID_USE_SEQUENCE_NUMBERS -I/usr/local/ofed/include -I/usr/include - 
O2 -D_SHMEM_COLL_ -D_X86_64_ -D_SMP_ -DUSE_HEADER_CACHING -DONE_SIDED  
-DMPID_USE_SEQUENCE_NUMBERS -I/usr/local/ofed/include -I/usr/include - 
O2 -D_SHMEM_COLL_ -DFORTRANUNDERSCORE -D_LARGEFILE64_SOURCE - 
D_FILE_OFFSET_BITS=64 -DHAVE_ROMIOCONF_H -I. -I/net/scratch1/dog/rpm/ 
BUILD/mvapich2-0.9.8/src/mpi/romio/adio/ad_panfs/../include -I../ 
include -I../../include -I/opt/panfs/include -c ad_panfs.c
In file included from ad_panfs.h:15,
                  from ad_panfs.c:9:
/net/scratch1/dog/rpm/BUILD/mvapich2-0.9.8/src/mpi/romio/adio/ 
ad_panfs/../include/adio.h:72:17: mpi.h: No such file or directory
In file included from /net/scratch1/dog/rpm/BUILD/mvapich2-0.9.8/src/ 
mpi/romio/adio/ad_panfs/../include/adio.h:73,
                  from ad_panfs.h:15,
                  from ad_panfs.c:9:
../../include/mpio.h:13:17: mpi.h: No such file or directory
In file included from /net/scratch1/dog/rpm/BUILD/mvapich2-0.9.8/src/ 
mpi/romio/adio/ad_panfs/../include/adio.h:73,
                  from ad_panfs.h:15,
                  from ad_panfs.c:9:
../../include/mpio.h:47: error: syntax error before "MPI_Datatype"
../../include/mpio.h:49: error: syntax error before "datatype"
../../include/mpio.h:119: error: syntax error before "char"
../../include/mpio.h:121: error: syntax error before "MPI_Info"
../../include/mpio.h:125: error: syntax error before "MPI_Group"
...
<100's of lines dealing with MPI_xxx defs deleted>

It appears that mvapich2-0.9.8/src/mpi/romio/adio/include/adio.h  
requires mpi.h, but there is no mpi.h to be found.  I changed a line in
mvapich2-0.9.8/src/mpi/romio/adio/ad_panfs/Makefile.in to point back  
to mvapich2-0.9.8/src/include and it then completes without error.

Here is the change I made:

From:
  INCLUDE_DIR = -I at MPI_INCLUDE_DIR@ -I${srcdir}/../include -I../ 
include -I../../include -I/opt/panfs/include

To:
INCLUDE_DIR = -I at MPI_INCLUDE_DIR@ -I${srcdir}/../include -I../include  
-I../../include -I../../../../include -I/opt/panfs
/include

Thanks,
david
--
David Gunter
HPC-4: HPC Environments: Parallel Tools Team
Los Alamos National Laboratory


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20070314/04ad3377/attachment.html


More information about the mvapich-discuss mailing list