PGC-W-0267 Unsupported Compiler Detected

Hello,

Getting the following error while using 15.5 on OSX 10.10 and OSX 10.11:

PGC-W-0267-#warning – “Unsupported compiler detected” (/usr/include/sys/cdefs.h: 81)
PGC-S-0000-Internal compiler error. va_start, arg is not va_list 64 (ezxml.c: 123)


I tried upgrading to 15.9, and the error is still there (can’t do 15.10 at the moment, our license servers haven’t been updated yet).

Looking around at some past posts, looks like there might be a patch to a file or two that can resolve this. Is that correct, and if so, where can I get them?

PGI 16.1 compilers will be the first to support OS X 10.11 and Xcode 7.*

If you have Xcode 7.*, you will need to wait.

If you do not have Xcode 7.*, make sure every Xcode component (especially
the command line tool) is installed and all license assents are agreed to,
before installing the PGI compilers.

regards,
dave

Understood, thanks for the info. Just wanted to check though, according to this page, it looks like 10.10 should be supported: https://www.pgroup.com/support/install.htm

I’ve downgraded to Xcode 6.x (tried a couple of versions, along with changing out the proper command line tools, and even tried on a clean 10.10 install), but the same error results. Is this expected?

Try

sudo xcode-select --install

to make sure all Xcode parts are installed and license agreement assented.

Then install the compilers again. If they continue to fail, send the outputs of

gcc -m64 -o ./hello_64_gcc ./hello.c -v -Wl,-t

pgcc -m64 -o ./hello_64_pgcc ./hello.c -v -Wl,-t
==================hello.c
#include <stdio.h>
int main()
{
printf(" hello\n");
}

The components appear to be installed correctly, and the license is accepted.

Here is the output of the commands:

gcc -m64 -o ./hello_64_gcc ./hello.c -v -Wl,-t 

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc-5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.2.0/lto-wrapper
Target: x86_64-apple-darwin14.5.0
Configured with: /usr/local/src/objdir/../gcc-5.2.0/configure --prefix=/usr/local/gcc-5.2.0
Thread model: posix
gcc version 5.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.10.5' '-m64' '-o' './hello_64_gcc' '-v' '-I' '/usr/include' '-I' '/usr/local/gcc-5.2.0/include' '-I' '/usr/local/complibs-gcc/include' '-I' '/usr/local/netcdf-3.6.3-gfortran/include' '-I' '/usr/local/mpich-3.0.4-gfortran/include' '-I' '/usr/local/parallel-netcdf-1.5.0-gfortran/include' '-I' '/usr/local/pio-1.9.19-gcc/include' '-L/usr/lib' '-L/usr/local/gcc-5.2.0/lib' '-L/usr/local/complibs-gcc/lib' '-L/usr/local/netcdf-3.6.3-gfortran/lib' '-L/usr/local/mpich-3.0.4-gfortran/lib' '-L/usr/local/parallel-netcdf-1.5.0-gfortran/lib' '-L/usr/local/pio-1.9.19-gcc/lib' '-mtune=core2'
 /usr/local/gcc-5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.2.0/cc1 -quiet -v -I /usr/include -I /usr/local/gcc-5.2.0/include -I /usr/local/complibs-gcc/include -I /usr/local/netcdf-3.6.3-gfortran/include -I /usr/local/mpich-3.0.4-gfortran/include -I /usr/local/parallel-netcdf-1.5.0-gfortran/include -I /usr/local/pio-1.9.19-gcc/include -D__DYNAMIC__ ./hello.c -fPIC -quiet -dumpbase hello.c -mmacosx-version-min=10.10.5 -m64 -mtune=core2 -auxbase hello -version -o /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T//ccZ9bxd4.s
GNU C11 (GCC) version 5.2.0 (x86_64-apple-darwin14.5.0)
	compiled by GNU C version 5.2.0, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/../../../../x86_64-apple-darwin14.5.0/include"
ignoring duplicate directory "/usr/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "/usr/local/gcc-5.2.0/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/complibs-gcc/include
 /usr/local/netcdf-3.6.3-gfortran/include
 /usr/local/mpich-3.0.4-gfortran/include
 /usr/local/parallel-netcdf-1.5.0-gfortran/include
 /usr/local/pio-1.9.19-gcc/include
 /usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/include
 /usr/local/include
 /usr/local/gcc-5.2.0/include
 /usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
GNU C11 (GCC) version 5.2.0 (x86_64-apple-darwin14.5.0)
	compiled by GNU C version 5.2.0, GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: acf52a2f3fc1867209eb321e5b9d3a90
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.10.5' '-m64' '-o' './hello_64_gcc' '-v' '-I' '/usr/include' '-I' '/usr/local/gcc-5.2.0/include' '-I' '/usr/local/complibs-gcc/include' '-I' '/usr/local/netcdf-3.6.3-gfortran/include' '-I' '/usr/local/mpich-3.0.4-gfortran/include' '-I' '/usr/local/parallel-netcdf-1.5.0-gfortran/include' '-I' '/usr/local/pio-1.9.19-gcc/include' '-L/usr/lib' '-L/usr/local/gcc-5.2.0/lib' '-L/usr/local/complibs-gcc/lib' '-L/usr/local/netcdf-3.6.3-gfortran/lib' '-L/usr/local/mpich-3.0.4-gfortran/lib' '-L/usr/local/parallel-netcdf-1.5.0-gfortran/lib' '-L/usr/local/pio-1.9.19-gcc/lib' '-mtune=core2'
 as -arch x86_64 -force_cpusubtype_ALL -o /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T//ccDCudWp.o /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T//ccZ9bxd4.s
COMPILER_PATH=/usr/local/gcc-5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.2.0/:/usr/local/gcc-5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.2.0/:/usr/local/gcc-5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/:/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/:/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/
LIBRARY_PATH=/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/:/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.10.5' '-m64' '-o' './hello_64_gcc' '-v' '-I' '/usr/include' '-I' '/usr/local/gcc-5.2.0/include' '-I' '/usr/local/complibs-gcc/include' '-I' '/usr/local/netcdf-3.6.3-gfortran/include' '-I' '/usr/local/mpich-3.0.4-gfortran/include' '-I' '/usr/local/parallel-netcdf-1.5.0-gfortran/include' '-I' '/usr/local/pio-1.9.19-gcc/include' '-L/usr/lib' '-L/usr/local/gcc-5.2.0/lib' '-L/usr/local/complibs-gcc/lib' '-L/usr/local/netcdf-3.6.3-gfortran/lib' '-L/usr/local/mpich-3.0.4-gfortran/lib' '-L/usr/local/parallel-netcdf-1.5.0-gfortran/lib' '-L/usr/local/pio-1.9.19-gcc/lib' '-mtune=core2'
 /usr/local/gcc-5.2.0/libexec/gcc/x86_64-apple-darwin14.5.0/5.2.0/collect2 -dynamic -arch x86_64 -macosx_version_min 10.10.5 -weak_reference_mismatches non-weak -o ./hello_64_gcc -L/usr/lib -L/usr/local/gcc-5.2.0/lib -L/usr/local/complibs-gcc/lib -L/usr/local/netcdf-3.6.3-gfortran/lib -L/usr/local/mpich-3.0.4-gfortran/lib -L/usr/local/parallel-netcdf-1.5.0-gfortran/lib -L/usr/local/pio-1.9.19-gcc/lib -L/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0 -L/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/../../.. /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T//ccDCudWp.o -t -rpath /usr/local/complibs-gcc/lib -rpath /usr/local/gcc-5.2.0/lib -lz -lnetcdf -lpnetcdf -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 5.2.0
/usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.10.5 -weak_reference_mismatches non-weak -o ./hello_64_gcc -L/usr/lib -L/usr/local/gcc-5.2.0/lib -L/usr/local/complibs-gcc/lib -L/usr/local/netcdf-3.6.3-gfortran/lib -L/usr/local/mpich-3.0.4-gfortran/lib -L/usr/local/parallel-netcdf-1.5.0-gfortran/lib -L/usr/local/pio-1.9.19-gcc/lib -L/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0 -L/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0/../../.. /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T//ccDCudWp.o -t -rpath /usr/local/complibs-gcc/lib -rpath /usr/local/gcc-5.2.0/lib -lz -lnetcdf -lpnetcdf -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v
/var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T//ccDCudWp.o
/usr/lib/libz.dylib
/usr/lib/libSystem.dylib
/usr/local/gcc-5.2.0/lib/libgcc_ext.10.5.dylib
/usr/lib/system/libcache.dylib
/usr/lib/system/libcommonCrypto.dylib
/usr/lib/system/libcompiler_rt.dylib
/usr/lib/system/libcopyfile.dylib
/usr/lib/system/libcorecrypto.dylib
/usr/lib/system/libdispatch.dylib
/usr/lib/system/libdyld.dylib
/usr/lib/system/libkeymgr.dylib
/usr/lib/system/liblaunch.dylib
/usr/lib/system/libmacho.dylib
/usr/lib/system/libquarantine.dylib
/usr/lib/system/libremovefile.dylib
/usr/lib/system/libsystem_asl.dylib
/usr/lib/system/libsystem_blocks.dylib
/usr/lib/system/libsystem_c.dylib
/usr/lib/system/libsystem_configuration.dylib
/usr/lib/system/libsystem_coreservices.dylib
/usr/lib/system/libsystem_coretls.dylib
/usr/lib/system/libsystem_dnssd.dylib
/usr/lib/system/libsystem_info.dylib
/usr/lib/system/libsystem_kernel.dylib
/usr/lib/system/libsystem_m.dylib
/usr/lib/system/libsystem_malloc.dylib
/usr/lib/system/libsystem_network.dylib
/usr/lib/system/libsystem_networkextension.dylib
/usr/lib/system/libsystem_notify.dylib
/usr/lib/system/libsystem_platform.dylib
/usr/lib/system/libsystem_pthread.dylib
/usr/lib/system/libsystem_sandbox.dylib
/usr/lib/system/libsystem_secinit.dylib
/usr/lib/system/libsystem_stats.dylib
/usr/lib/system/libsystem_trace.dylib
/usr/lib/system/libunc.dylib
/usr/lib/system/libunwind.dylib
/usr/lib/system/libxpc.dylib
@(#)PROGRAM:ld  PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h armv6m armv7m armv7em
Library search paths:
	/usr/lib
	/usr/local/gcc-5.2.0/lib
	/usr/local/complibs-gcc/lib
	/usr/local/netcdf-3.6.3-gfortran/lib
	/usr/local/mpich-3.0.4-gfortran/lib
	/usr/local/parallel-netcdf-1.5.0-gfortran/lib
	/usr/local/pio-1.9.19-gcc/lib
	/usr/local/gcc-5.2.0/lib/gcc/x86_64-apple-darwin14.5.0/5.2.0
	/usr/local/gcc-5.2.0/lib
	/usr/lib
	/usr/local/lib
Framework search paths:
	/Library/Frameworks/
	/System/Library/Frameworks/



pgcc -m64 -o ./hello_64_pgcc ./hello.c -v -Wl,-t 

Export PGI=/opt/pgi
Export PGIBIN=/opt/pgi/osx86-64/15.9/bin

/opt/pgi/osx86-64/15.9/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 117 0x1000 -x 120 0x80 -x 122 0x40 -x 123 0x1000 -x 127 21 -tp nehalem -y 80 0x40000000 -x 120 0x400 -x 120 0x1000 -astype 1 -stdinc /opt/pgi/osx86-64/15.9/include:/usr/local/include:/Applications/Xcode.app/Contents/Developer/usr/lib/llvm-gcc/4.2.1/include:/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_6XC__ -predicate '#machine(x86_64) #lint(off) #system(unix) #system(posix) #cpu(x86_64)' -idir /usr/include -idir /opt/pgi/osx86-64/15.9/include -idir /usr/local/complibs-pgi64/include -idir /opt/pgi/osx86-64/2015/mpi/mpich/include -idir /usr/local/netcdf-3.6.3-pgi64/include -idir /usr/local/pio-1.9.19-pgi64/include -idir /usr/local/parallel-netcdf-1.5.0-pgi64/include -cmdline '+pgcc ./hello.c -m64 -o ./hello_64_pgcc -v -Wl,-t -I/usr/include -I/opt/pgi/osx86-64/15.9/include -I/usr/local/complibs-pgi64/include -I/opt/pgi/osx86-64/2015/mpi/mpich/include -I/usr/local/netcdf-3.6.3-pgi64/include -I/usr/local/pio-1.9.19-pgi64/include -I/usr/local/parallel-netcdf-1.5.0-pgi64/include -L/usr/lib -L/opt/pgi/osx86-64/15.9/lib -L/usr/local/complibs-pgi64/lib -Wl,-rpath,/usr/local/complibs-pgi64/lib -Wl,-rpath,/opt/pgi/osx86-64/15.9/lib -lz -L/opt/pgi/osx86-64/2015/mpi/mpich/lib -L/usr/local/netcdf-3.6.3-pgi64/lib -lnetcdf -L/usr/local/pio-1.9.19-pgi64/lib -L/usr/local/parallel-netcdf-1.5.0-pgi64/lib -lpnetcdf' -x 123 0x80000000 -x 123 4 -x 2 0x400 -x 119 0x20 -alwaysinline /opt/pgi/osx86-64/15.9/lib/libintrinsics.il 4 -x 120 0x200000 -x 70 0x40000000 -x 117 0x2000 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 198 0x40000 -asm /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T/pgccqhOfWALmvI5r.s
PGC-W-0267-#warning --  "Unsupported compiler detected" (/usr/include/sys/cdefs.h: 81)
PGC/x86-64 OSX 15.9-0: compilation completed with warnings

/usr/bin/as -arch x86_64 /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T/pgccqhOfWALmvI5r.s -I/usr/include/ -I/opt/pgi/osx86-64/15.9/include/ -I/usr/local/complibs-pgi64/include/ -I/opt/pgi/osx86-64/2015/mpi/mpich/include/ -I/usr/local/netcdf-3.6.3-pgi64/include/ -I/usr/local/pio-1.9.19-pgi64/include/ -I/usr/local/parallel-netcdf-1.5.0-pgi64/include/ -o hello.o

/usr/bin/ld /usr/lib/crt1.o /opt/pgi/osx86-64/15.9/lib/pgimainmx.o -L/usr/lib -L/opt/pgi/osx86-64/15.9/lib -L/usr/local/complibs-pgi64/lib -L/opt/pgi/osx86-64/2015/mpi/mpich/lib -L/usr/local/netcdf-3.6.3-pgi64/lib -L/usr/local/pio-1.9.19-pgi64/lib -L/usr/local/parallel-netcdf-1.5.0-pgi64/lib -L/opt/pgi/osx86-64/15.9/lib -L/usr/lib -L/Applications/Xcode.app/Contents/Developer/usr/lib/llvm-gcc/4.2.1 -L/Applications/Xcode.app/Contents/Developer/usr/lib/llvm-gcc/4.2.1 hello.o -t -rpath /usr/local/complibs-pgi64/lib -rpath /opt/pgi/osx86-64/15.9/lib -lz -lnetcdf -lpnetcdf -macosx_version_min 10.10.5 -rpath /opt/pgi/osx86-64/15.9/lib -o ./hello_64_pgcc -framework Security -framework IOKit -framework CoreFoundation -no_pie -no_new_main -lpgmp -lpthread -lc -lnspgc -lpgc -lm -lgcc -lc -lgcc -lSystem
/usr/lib/crt1.o
/opt/pgi/osx86-64/15.9/lib/pgimainmx.o
hello.o
/usr/lib/libz.dylib
/System/Library/Frameworks//Security.framework/Security
/System/Library/Frameworks//IOKit.framework/IOKit
/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation
/usr/lib/libpthread.dylib
/usr/lib/libc.dylib
/usr/lib/libm.dylib
/usr/lib/libSystem.dylib
/usr/lib/system/libcache.dylib
/usr/lib/system/libcommonCrypto.dylib
/usr/lib/system/libcompiler_rt.dylib
/usr/lib/system/libcopyfile.dylib
/usr/lib/system/libcorecrypto.dylib
/usr/lib/system/libdispatch.dylib
/usr/lib/system/libdyld.dylib
/usr/lib/system/libkeymgr.dylib
/usr/lib/system/liblaunch.dylib
/usr/lib/system/libmacho.dylib
/usr/lib/system/libquarantine.dylib
/usr/lib/system/libremovefile.dylib
/usr/lib/system/libsystem_asl.dylib
/usr/lib/system/libsystem_blocks.dylib
/usr/lib/system/libsystem_c.dylib
/usr/lib/system/libsystem_configuration.dylib
/usr/lib/system/libsystem_coreservices.dylib
/usr/lib/system/libsystem_coretls.dylib
/usr/lib/system/libsystem_dnssd.dylib
/usr/lib/system/libsystem_info.dylib
/usr/lib/system/libsystem_kernel.dylib
/usr/lib/system/libsystem_m.dylib
/usr/lib/system/libsystem_malloc.dylib
/usr/lib/system/libsystem_network.dylib
/usr/lib/system/libsystem_networkextension.dylib
/usr/lib/system/libsystem_notify.dylib
/usr/lib/system/libsystem_platform.dylib
/usr/lib/system/libsystem_pthread.dylib
/usr/lib/system/libsystem_sandbox.dylib
/usr/lib/system/libsystem_secinit.dylib
/usr/lib/system/libsystem_stats.dylib
/usr/lib/system/libsystem_trace.dylib
/usr/lib/system/libunc.dylib
/usr/lib/system/libunwind.dylib
/usr/lib/system/libxpc.dylib
/opt/pgi/osx86-64/15.9/lib/libpgc.a(trace.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(stkchk.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(preinit.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(trace_osx.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(mxcsr.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(cpuinfo.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(pgstdinit.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(init_pthr.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(crit.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(preinit2.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(cpuid.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(unified7.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(lcpu.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(setaff.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(omp_parallel.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(barrier.o)
/opt/pgi/osx86-64/15.9/lib/libpgc.a(mpmalloc.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(taskv2.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(nesting.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(task64v2.o)
/opt/pgi/osx86-64/15.9/lib/libpgmp.a(hash.o)
Unlinking /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T/pgccqhOfWALmvI5r.s
Unlinking /var/folders/2z/79jgf44s7wg00vwpy3phcgtm0000gp/T/pgccqhOfWWq5tG73.ll

gcc 5.2 ? We are working on supporting that, on Linux as well as OS X.

We may have it by 16.1 for Linux, but no guarantee OS X will get
it at that time.

dave