problem compiling openmpi 3.1.1 with pgi 17.5

Hi,

Im trying to compile openmpi 3.1.1 with pgi 17.5 on centos 7.4


When its compiling a file called “lustre_fs.c”:

pgcc -noswitcherror -DHAVE_CONFIG_H -I. -I…/…/…/…/opal/include -I…/…/…/…/ompi/include -I…/…/…/…/oshmem/include -I…/…/…/…/opal/mca/hwloc/hwloc1117/hwloc/include/private/autogen -I…/…/…/…/opal/mca/hwloc/hwloc1117/hwloc/include/hwloc/autogen -I…/…/…/…/ompi/mpiext/cuda/c -I…/…/…/… -I…/…/…/…/orte/include -I/scratch/git/mpi-roll/src/openmpi/openmpi-3.1.1/opal/mca/event/libevent2022/libevent -I/scratch/git/mpi-roll/src/openmpi/openmpi-3.1.1/opal/mca/event/libevent2022/libevent/include -I/scratch/git/mpi-roll/src/openmpi/openmpi-3.1.1/opal/mca/hwloc/hwloc1117/hwloc/include -O -DNDEBUG -fPIC -noswitcherror -c fs_lustre.c -MD -fpic -DPIC -o .libs/fs_lustre.o

it exits after printing the errors:

PGC-S-0040-Illegal use of symbol, u_int64_t (/usr/include/sys/quota.h: 157)
PGC-W-0156-Type not specified, ‘int’ assumed (/usr/include/sys/quota.h: 157)

multiple times

Any help would be appreciated.
Thanks,

Jerry

Looking at section “C and C++ Data Types”, Reference Manual :: PGI version 18.7 Documentation for x86 and NVIDIA Processors, it seems that “unsigned long int” is what you need.

Yes,

I tried that yesterday after I posted: I put the typedef in the header file and that did it.

Jerry