[mvapich-discuss] Lustre 2.4 bug is back in MV2-2.1a

Adam T. Moody moody20 at llnl.gov
Tue Sep 30 19:07:24 EDT 2014


Hello MVAPICH team,
While building MV2-2.1a on our systems, I'm getting the following error:

In file included from /usr/include/linux/lustre_user.h:46,
                 from /usr/include/lustre/lustre_user.h:54,
                 from adio/ad_lustre/ad_lustre.h:30,
                 from adio/ad_lustre/ad_lustre_rwcontig.c:20:
/usr/include/sys/quota.h:221: error: expected declaration specifiers or 
'...' before 'caddr_t'
make[3]: *** [adio/ad_lustre/ad_lustre_rwcontig.lo] Error 1

This happens while trying to build 
mvapich2-2.1a/src/mpi/romio/adio/ad_lustre/ad_lustre_rwcontig.c.

This is due to an incompatibility with Lustre 2.4.  I first saw this 
with MV2-1.9, it was fixed in MV2-2.0, but now it's back with MV2-2.1a.

The problem lines are here, which can be found starting at line 5:

#ifdef _STDC_C99
#define _XOPEN_SOURCE 600
#else
#define _XOPEN_SOURCE 500
#endif

The solution before was to not define _XOPEN_SOURCE in this file.  If I 
comment out these definitions, I've verified that MV2-2.1a builds.

Here is a related MPICH ticket reported by Yan Li and Jerome Vienne:

http://trac.mpich.org/projects/mpich/ticket/1973
-Adam


More information about the mvapich-discuss mailing list