[mvapich-discuss] Build failure of mvapich2-2.3rc2 when enabling GPFS support in ROMIO

Sourav Chakraborty chakraborty.52 at buckeyemail.osu.edu
Thu May 3 12:11:10 EDT 2018


Hi All,

The user has confirmed that applying the attached patch has resolved the
issue. It will be included in upcoming MVAPICH releases.

Thanks,
Sourav

On Tue, May 1, 2018 at 2:07 PM, Doug Johnson <djohnson at osc.edu> wrote:

> Hi MVAPICH devs,
>
> The build of mvapich2-2.3rc2 fails with the error below when GPFS
> support is enabled in ROMIO with "--with-file-system=ufs+nfs+gpfs".
>
>      CC       adio/ad_gpfs/ad_gpfs_rdcoll.lo
>    adio/ad_gpfs/ad_gpfs_open.c: In function ‘ADIOI_GPFS_Open’:
>    adio/ad_gpfs/ad_gpfs_open.c:118:20: error: storage size of
> ‘gpfs_statbuf’ isn’t known
>          struct stat64 gpfs_statbuf;
>                        ^~~~~~~~~~~~
>    adio/ad_gpfs/ad_gpfs_open.c:120:11: warning: implicit declaration of
> function ‘stat64’ [-Wimplicit-function-declaration]
>          rc = stat64(fd->filename, &gpfs_statbuf);
>               ^~~~~~
>
> These errors did not occur with identical configure options when
> building mvapich2-2.3rc1.  The errors occur uniformly for multiple
> versions of GNU, Intel, and PGI compilers (output above is from GNU
> 6.3.0.)
>
> The build completes when "--with-file-system=ufs+nfs" is used for the
> ROMIO file system configure option.
>
>
> Best,
> Doug
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mailman.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20180503/bf28bd9d/attachment.html>
-------------- next part --------------
diff --git a/src/mpi/romio/adio/ad_gpfs/ad_gpfs_open.c b/src/mpi/romio/adio/ad_gpfs/ad_gpfs_open.c
index f4fef37..7037b88 100644
--- a/src/mpi/romio/adio/ad_gpfs/ad_gpfs_open.c
+++ b/src/mpi/romio/adio/ad_gpfs/ad_gpfs_open.c
@@ -115,9 +115,9 @@ void ADIOI_GPFS_Open(ADIO_File fd, int *error_code)
 
 	MPI_Comm_rank(fd->comm, &rank);
 	if ((rank == fd->hints->ranklist[0]) || (fd->comm == MPI_COMM_SELF)) {
-	    struct stat64 gpfs_statbuf;
+	    struct stat gpfs_statbuf;
 	    /* Get the (real) underlying file system block size */
-	    rc = stat64(fd->filename, &gpfs_statbuf);
+	    rc = stat(fd->filename, &gpfs_statbuf);
 	    if (rc >= 0)
 	    {
 		fd->blksize = gpfs_statbuf.st_blksize;


More information about the mvapich-discuss mailing list