I installed PGI 6.1 on a machine running Centos 4.3. Centos is derived from Red Hat Enterprise Linux and is the basis for the ROCKS cluster distribution, which we run on our clusters. I am trying to compile one of the libraries we provide for users, HDF5 1.6.5 (this is the latest stable version). The configure line is
./configure --prefix=/opt/hdf5/pgi --enable-fortran --enable-cxx --disable-shared --enable-static
The result is
pgCC -I. -I…/src -I./…/src -I…/…/test -I…/…/src -I…/…/src -D_BSD_SOURCE -D_POSIX_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -c tfile.cpp -o tfile.o
“tfile.cpp”, line 484: error: identifier “offsetof” is undefined
comp_type.insertMember(“a”, HOFFSET(s1_t, a), PredType::NATIVE_INT);
1 error detected in the compilation of “tfile.cpp”.
HDF5 compiles without problems with Intel 9.1.
I’ve tried fiddling with copying stddef.h into PGI’s include directory but that hasn’t helped.