I’ve completed a network install of PGI OpenACCToolkit2015, and executed the makelocalrc script on a development machine, but the resulting environment is unable to find stddef.h when compiling any program.
The network install was done to a shared (read only, cvmfs) file system. From a development machine makelocalrc was then run with:
$/cvmfs/rdlinux.ornl.gov/pgi/OpenACCToolkit2015/linux86-64/15.7/bin/makelocalrc -x /cvmfs/rdlinux.ornl.gov/pgi/OpenACCToolkit2015/linux86-64/15.7/ -net /usr/pgi/shared/15.7 -d /usr/pgi/shared/15.7/
The resultant directory on the development machine contains only:
$ls /usr/pgi/shared/15.7/* /usr/pgi/shared/15.7/localrc.linux-wc5v /usr/pgi/shared/15.7/lib64: libnuma.so
I’ve sourced the makelocalrc generated file: source /usr/pgi/shared/15.7/localrc.linux-wc5v
Though, I had to comment out this line from the generated file:
set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);
Otherwise it throws:
$source /usr/pgi/shared/15.7/localrc.linux-wc5v bash: /usr/pgi/shared/15.7/localrc.linux-wc5v: line 17: syntax error near unexpected token `(' bash: /usr/pgi/shared/15.7/localrc.linux-wc5v: line 17: `set LC=$if(-Bstatic,-lgcc -lgcc_eh -lc -lgcc -lgcc_eh -lc, -lgcc -lc -lgcc);'
However, when attempting to compile any program I receive:
$acc_c1> make pgcc -fast -Minfo -acc -o acc_c1.out acc_c1.c PGC-F-0206-Can't find include file stddef.h (/cvmfs/rdlinux.ornl.gov/pgi/OpenACCToolkit2015/linux86-64/15.7/include-gcc44/stddef.h: 16) PGC/x86-64 Linux 15.7-0: compilation aborted Makefile:28: recipe for target 'build' failed make: *** [build] Error 2