PGI config error on Summit

Created by: jychoi-hpc

We config XGC with the following command:

ADIOS2_DIR ?= ${USER_LIB_DIR}/adios2/devel/pgi
ADIOS2_INC=$(shell $(ADIOS2_DIR)/bin/adios2-config --fortran-flags)
ADIOS2_LIB=$(shell $(ADIOS2_DIR)/bin/adios2-config --fortran-libs --cxx-libs)

Then, with the most recent version (compiled today), I am getting the following error:

pgfortran-Error-Unknown switch: -WF,-DADIOS2_HAVE_MPI_F
pgfortran-Error-Unknown switch: -WF,
gmake[1]: *** [build_info.o] Error 1

On Summit, I am using PGI 19.4.