It looks like the localrc has the system correctly configured for GNU 4.4.7 but there must also be a GNU 6.2 installation (as seen in the GPPDIR and GCCINC variables).
Did you or someone else manually edit the localrc file?
I ask because the script that creates the localrc file, makelocalrc, greps the verbose output from a g++ compilation to determine which include directories to add. Also, it tests if g++ successfully links with “-latomic” before setting the “GNUATOMIC” variable. In other words, the GNU version used when creating the localrc file successfully linked with -latomic.
If you didn’t manually edit localrc, I’ll investigate why having multiple GNU installs would cause the makelocalrc script to create this hybrid localrc file.
To fix your immediate issue, edit your localrc file to remove “-latomic”:
The gcc 6.2 include directories might cause some issues as well, but I’m not sure. If so, then you may want to remove these as well.
Alternatively, you can try rerunning the makelocalrc script from your current environment or move to a network install so that each system has it’s own localrc configuration.
A third option is to run the script “addlocalrc”. This script attempts to find all GNU instalations and then create a localrc file for each. You would then use the environment variable “PGI_LOCALRC” to set which localrc file to use.
Hope this helps,