Page tree


Failure building HDF5 with PGI compiler

Users have encountered issues building HDF5 with the PGI compiler. The make step fails.  A workaround for this issue is to use the GNU C pre-processor in place of the PGI pre-processor. For example:

CPP=cpp ./configure …

One user saw errors from “make” similar to the following  when encountering this issue:

 PGC-I-0222-Redundant definition for symbol __THROW (/usr/include/sys/cdefs.h: 63)
PGC-I-0222-Redundant definition for symbol __extension__ (/usr/include/sys/cdefs.h: 287)
PGC-I-0155-Long value is passed to a nonprototyped function - argument #3 (H5system.c: 206)

  – cut –

 PGC-I-0155-Long value is passed to a nonprototyped function - argument #3 (H5system.c: 1010)
PGC-W-0095-Type cast required for this conversion (H5system.c: 1021)
PGC-W-0155-Pointer value created from a nonlong integral type (H5system.c: 1021)
PGC/x86-64 Linux 16.5-0: compilation completed with severe errors