I am trying to build VASP (https://www.vasp.at/) on an IBM power9 processor with v100 GPUs. I can compile many of the VASP FORTRAN subroutines but when I try to compile xspin.f90 I get error messages from C++ header files. It looks like pgfortran is using the system gcc compiler (version 4.8.5) rather than the gcc compiler I have loaded in my environment (version 8.4.0) when I installed the HPC toolkit and when I build VASP. The file I have uploaded with this post shows the error messages I get. Is there a workaround for this issue?
error.log (52.5 KB)