tcu
July 12, 2019, 3:48pm
1
PGI 19.4 community, XCode 10.2.1, Mac OS 10.14.5, XCode Command-line tools installed (xcode-select version 2354).
$ pgcc helloworld.c
PGC-S-0226-Syntax error in #if (/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/AvailabilityInternal.h: 33)
PGC-F-0206-Can't find include file AvailabilityInternalPrivate.h (/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/AvailabilityInternal.h: 34)
Using pgcc18 gives me the same issue as in [PGI Compiler Issue macOS Mojave ]
tcu
July 12, 2019, 6:16pm
2
Fixed the pgcc18 (and pgfortran from other thread) issue
[https://github.com/nodejs/node-gyp/issues/569 ]
Comment from jfmercer, Apr 21, 2015
Install Xcode
Run sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
But the original pgcc issue persists.
tcu
July 12, 2019, 6:56pm
3
Can’t edit my own reply for some reason:
Basically, this is the issue:
if your
xcodebuild -version
produces an error message due to being selected via the command-line tools switch, this breaks the makelocalrc script and it will fail to include a line with
set LCRT1=;
in localrc for Mac Mojave.
Simplest fix: just manually add the “set” line to your localrc in /opt/pgi/osx86-64/19.4/bin