“bits/c++config.h” should be included with the GNU include files: " <gnu_install_dir>/include/c++/4.8.3/x86_64-redhat-linux/bits/c++config.h"
When I created my “.mypgcpprc” file, makelocalrc added the path to this include directory in the rcfile “GPPDIR64” and “GPPDIR32” variables. Can you check if these contain the correct values?
How did you generate your “.mypgcpprc”? Are you compiling to target 32 or 64-bits? Which GNU and OS version are you using?
The file ist there and the path to <gnu_install_dir>/include is set in “GPPDIR64” “GPPDIR32”.
Even setting the path explicit while compiling results in this error.
I used the ‘makelocalrc’ with -o option and copied the output to ‘.mypgcpprc’.
On our cluster are several GNU versions avaiable, for generating I used GNU 4.9.2. I think the OS is Scientific Linux 6.0, but i’m not sure.
I’ve tried recreating the problem here but the only way I could get it fail was to remove the “bit/c++config.h” file or change my “.mypgcpprc” file so it doesn’t include the correct paths.
Can you please double check that “.mypgcpprc” is getting used by the compiler? The file should be located in your home directory. You can verify that it’s being used by running “pgc++ -dryrun” and looking for the line "
Reading local rcfile ~/.mypgcpprc".
Other than that, the next step is have you send to PGI Customer Service (trs@pgroup.com) your “.mypgcpprc” file so we can see if there are any errors.