Problem when build hdf5-1.10.3 on CentOS5.11 with PGI compillers

When I build HDF-1.10.3 on Linux 2.6.18-400.1.1.el5 CentOS 5.11 with PGI compiler. During the make install procedure, there were some errors happened. Below is the errors explanation:

[ka@joker01 hdf5-1.10.3]$ make check
Making check in src
make[1]: Entering directory /home/ka/library/hdf5-1.10.3/src' CC H5Ofill.lo 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 PGC-S-0000-Internal compiler error. sst_zero problem 27 (H5Ofill.c: 224) PGC/x86-64 Linux 10.9-0: compilation completed with severe errors make[1]: *** [H5Ofill.lo] Error 1 make[1]: Leaving directory/home/ka/library/hdf5-1.10.3/src’
make: *** [check-recursive] Error 1

Could anyone help me check where is the problem? Thank you very much.


This issue appears to be the same issue that is described here:

The workaround is to use the GNU C pre-processor in place of the PGI pre-processor. For example:
CPP=cpp ./configure …