Problem building PNetCDF 1.12.0 with GCC 7.4.0 and OpenMPI-4.0.2
Wei-keng Liao
wkliao at eecs.northwestern.edu
Sun Oct 20 19:36:23 CDT 2019
Hi, Carl
Since you mentioned you have checked file src/include/config.h,
could you please let me know whether this line below appears there?
#define HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER 0
This line shows that PnetCDF configure.ac does check whether the
deprecated MPI constant MPI_COMBINER_HVECTOR_INTEGER is still
defined in mpi.h. Therefore, that compile error from line 390 of
file dtype_decode.c should not happen.
389 #if defined HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER && HAVE_DECL_MPI_COMBINER_HVECTOR_INTEGER
390 case MPI_COMBINER_HVECTOR_INTEGER:
391 #endif
Wei-keng
> On Oct 20, 2019, at 11:36 AM, Carl Ponder via parallel-netcdf <parallel-netcdf at lists.mcs.anl.gov> wrote:
>
> I'm seeing this error building PNetCDF 1.12.0 with GCC 7.4.0 and OpenMPI-4.0.2:
> make[6]: Entering directory '/gpfs/fs1/SHARE/Utils/PNetCDF/1.12.0/GCC-7.4.0_OpenMPI-4.0.2/distro/src/drivers/common'
> CC utf8proc.lo
> CC mem_alloc.lo
> CC dtype_decode.lo
> In file included from dtype_decode.c:16:0:
> dtype_decode.c: In function ‘ncmpii_dtype_decode’:
> dtype_decode.c:390:14: error: expected expression before ‘_Static_assert’
> case MPI_COMBINER_HVECTOR_INTEGER:
> ^
> dtype_decode.c:390:14: error: expected expression before ‘_Static_assert’
> dtype_decode.c:390:42: error: expected expression before ‘:’ token
> case MPI_COMBINER_HVECTOR_INTEGER:
> ^
> dtype_decode.c:396:43: error: expected expression before ‘:’ token
> case MPI_COMBINER_HINDEXED_INTEGER:
> ^
> In file included from dtype_decode.c:16:0:
> dtype_decode.c:462:14: error: expected expression before ‘_Static_assert’
> case MPI_COMBINER_HVECTOR_INTEGER:
> ^
> dtype_decode.c:462:14: error: expected expression before ‘_Static_assert’
> dtype_decode.c:462:42: error: expected expression before ‘:’ token
> case MPI_COMBINER_HVECTOR_INTEGER:
> ^
> In file included from dtype_decode.c:16:0:
> dtype_decode.c:473:14: error: expected expression before ‘_Static_assert’
> case MPI_COMBINER_HINDEXED_INTEGER:
> ^
> dtype_decode.c:473:14: error: expected expression before ‘_Static_assert’
> dtype_decode.c:473:43: error: expected expression before ‘:’ token
> case MPI_COMBINER_HINDEXED_INTEGER:
> ^
> Makefile:535: recipe for target 'dtype_decode.lo' failed
> make[6]: *** [dtype_decode.lo] Error 1
> make[6]: Leaving directory '/gpfs/fs1/SHARE/Utils/PNetCDF/1.12.0/GCC-7.4.0_OpenMPI-4.0.2/distro/src/drivers/common'
> Makefile:452: recipe for target 'all' failed
> make[5]: *** [all] Error 2
> make[5]: Leaving directory '/gpfs/fs1/SHARE/Utils/PNetCDF/1.12.0/GCC-7.4.0_OpenMPI-4.0.2/distro/src/drivers/common'
> Makefile:473: recipe for target 'all-recursive' failed
> make[4]: *** [all-recursive] Error 1
> There has been some work done on the src/include/config.h file, that look like compatibility fixes for OpenMPI 4.0.2.
> I'm able to build the same OpenMPI & PNetCDF with the PGI 19.9 compiler without any problem.
> Do any of you have some settings I can use to get around this?
> I don't mind moving up to GCC 9.* if I have to.
> Thanks in advance,
>
> Carl
>
> This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
More information about the parallel-netcdf
mailing list