I had to get PGI 19.10 to work on macOS Big Sur with XCode 12 to build some software (Gaussian). Even though not officially supported it seems to work with minor adjustments.
I already had PGI 19.10 installed prior to the update and it might not even be possible to install it on newer macOS, but if you already have PGI 19.x installed and updated to Big Sur, here are some instructions to make it run:
After an update of macOS/XCode, you probably have to run
makelocalrcto update the include/library paths. But
makelocalrccontains a version check for XCode, hence “fix” the version check in
if test $xcodever -gt 11 ; then
if test $xcodever -gt 12 ; then
sudo makelocalrc -x /opt/pgi/osx86-64/19.10.
Compiling software may fail at the linker step stating that either
Security frameworkcould not be found (even though you haven’t specified either). Comparing the linker invocation emitted by
pgcc -v somefile.cand comparing to
clang -v somefile.creveals that
-syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdkis missing. Add it to the
variable EXTRAPGILNKOPT is default (-syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -framework Security -framework IOKit -framework CoreFoundation);
After that I was able to use
pgf90 again to build functional executables.