pgf90 17.4 trouble linking - can't find /usr/lib/crt1.o

Just upgraded my iMac to Sierra (10.12.4) from El Capitan (10.11.x) and pgf90 16.9 stopped working due to a linking problem. Upgraded pgf90 to 17.4 and still have linking problem: can’t find /usr/lib/crt1.o. Does PGI not support Sierra yet?

Make sure that you have installed and assented to the license agreement for Xcode, including the “Xcode command line tool”, before installing the compilers. Also make sure gcc
works and can find and use crt1.o, before installing the PGI compilers.

dave

Just to make sure, I tried it on Sierra

sierra2% uname -a
Darwin sierra2.xxx.xxx 16.5.0 Darwin Kernel Version 16.5.0: Fri Mar 3 16:52:33 PST 2017; root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64

sierra2% pgcc -o hello hello.c -v
Export PGI=/proj/pgi
Export PGIBIN=/proj/pgi/osx86-64/17.4/bin

/proj/pgi/osx86-64/17.4/bin/pgc hello.c -opt 1 -x 119 0x10000010 -x 129 0x80 -x 19 0x400000 -dollar ‘$’ -x 119 0x40610400 -x 119 0x1000 -x 59 4 -x 129 0x10 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 120 0x80 -x 122 0x40 -x 123 0x1000 -x 127 21 -tp sandybridge -y 80 0x40000000 -x 120 0x400 -x 120 0x1000 -astype 1 -stdinc /proj/pgi/osx86-64/17.4/include:/usr/local/include:/usr/local/include:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/lib/clang/8.0.0/include:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include:/usr/include:/System/Library/Frameworks:/Library/Frameworks:/Applications/Xcode.app/Contents/Developer/usr/lib/llvm-gcc/4.2.1/include:/usr/include -def unix -def __unix -def unix -def LITTLE_ENDIAN -def inline= -def osx86 -def __osx86 -def osx86 -def APPLE -def LP64 -def x86_64 -def _M_IX86 -def __NO_MATH_INLINES -def amd64 -def __PGI_STRPTIME -def extension= -def SSE -def MMX -def SSE2 -def SSE3 -def SSSE3 -def PGI_8XC -def PGI_XC_VER=80201 -predicate ‘#machine(x86_64) #lint(off) #system(unix) #system(posix) #cpu(x86_64)’ -cmdline ‘+pgcc hello.c -o hello -v’ -x 123 0x80000000 -x 123 4 -x 2 0x400 -x 119 0x20 -x 120 0x200000 -x 70 0x40000000 -x 117 0x2000 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -asm /var/tmp/pgccbEcqdH8HQ_xY.s
PGC/x86-64 OSX 17.4-0: compilation successful

/usr/bin/clang -x assembler -Qunused-arguments -arch x86_64 /var/tmp/pgccbEcqdH8HQ_xY.s -c -o hello.o

/usr/bin/ld /usr/lib/crt1.o /proj/pgi/osx86-64/17.4/lib/pgimainmx.o -L/proj/pgi/osx86-64/17.4/lib -L/usr/lib -L/Applications/Xcode.app/Contents/Developer/usr/lib/llvm-gcc/4.2.1 hello.o -macosx_version_min 10.12.3 -rpath /proj/pgi/osx86-64/17.4/lib -o hello -framework Security -framework IOKit -framework CoreFoundation -arch x86_64 -no_compact_unwind -no_new_main -lpgmp -lpthread -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc -lSystem
Unlinking /var/tmp/pgccbEcqdH8HQ_xY.s
Unlinking /var/tmp/pgccjEcqBPawnGdC.ll

\

It seems to have found /usr/lib/crt1.o

I am sure you used sudo to install the compilers, so I am thinking
the Xcode you are using is not fully installed with license agreement assent.

dave