I am trying to compile an extremely small example:
#include <stdio.h>
#include <stdarg.h>
int main(int argc,char **args)
{
printf("testing\n");
return 0;
}
with the following result
pgcc -V dummy.c
pgcc 14.6-0 64-bit target on Mac OS X -tp penryn
The Portland Group - PGI Compilers and Tools
Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
NOTE: your trial license will expire in 13 days, 5.12 hours.
PGC/x86-64 OSX 14.6-0
Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
PGC-S-0040-Illegal use of symbol, __BEGIN_DECLS (/usr/include/stdio.h: 154)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier __BEGIN_DECLS by ';' (/usr/include/stdio.h: 228)
PGC-W-0156-Type not specified, 'int' assumed (/usr/include/stdio.h: 228)
PGC-S-0036-Syntax error: Recovery attempted by inserting keyword typeof before '(' (/usr/include/stdio.h: 240)
PGC-S-0138-Missing identifier for declarator in function prototype definition (/usr/include/stdio.h: 240)
PGC-S-0138-Missing identifier for declarator in function prototype definition (/usr/include/stdio.h: 240)
PGC-S-0040-Illegal use of symbol, __DARWIN_ALIAS_STARTING (/usr/include/stdio.h: 240)
PGC-S-0033-Missing declarator for dummy argument (/usr/include/stdio.h: 240)
PGC-S-0035-Syntax error: Recovery attempted by replacing typedef id __printflike by '=' (/usr/include/stdio.h: 242)
PGC-S-0072-Initializer not allowed in this context (/usr/include/stdio.h: 242)
PGC-S-0140-Declaration for formal fprintf found in prototype function definition (/usr/include/stdio.h: 242)
PGC-S-0070-fprintf is not a dummy argument (/usr/include/stdio.h: 242)
PGC-S-0072-Initializer not allowed in this context (/usr/include/stdio.h: 242)
PGC-W-0095-Type cast required for this conversion (/usr/include/stdio.h: 242)
PGC-W-0155-Pointer value created from a nonlong integral type (/usr/include/stdio.h: 242)
PGC-S-0140-Declaration for formal fputc found in prototype function definition (/usr/include/stdio.h: 243)
PGC-S-0070-fputc is not a dummy argument (/usr/include/stdio.h: 243)
PGC-S-0037-Syntax error: Recovery attempted by deleting typedef id __DARWIN_ALIAS (/usr/include/stdio.h: 244)
PGC-S-0069-Dummy parameter specification not allowed here (/usr/include/stdio.h: 244)
PGC-S-0082-Function returning array not allowed (/usr/include/stdio.h: 244)
PGC-S-0140-Declaration for formal fputs found in prototype function definition (/usr/include/stdio.h: 244)
PGC-S-0070-fputs is not a dummy argument (/usr/include/stdio.h: 244)
PGC-S-0140-Declaration for formal fread found in prototype function definition (/usr/include/stdio.h: 245)
PGC-S-0070-fread is not a dummy argument (/usr/include/stdio.h: 245)
PGC-S-0037-Syntax error: Recovery attempted by deleting typedef id __DARWIN_ALIAS (/usr/include/stdio.h: 247)
PGC-S-0069-Dummy parameter specification not allowed here (/usr/include/stdio.h: 247)
PGC-S-0082-Function returning array not allowed (/usr/include/stdio.h: 247)
PGC-S-0140-Declaration for formal freopen found in prototype function definition (/usr/include/stdio.h: 247)
PGC-F-0008-Error limit exceeded (/usr/include/stdio.h: 247)
PGC/x86-64 OSX 14.6-0: compilation aborted
$
cc dummy.c
compiles just fine.
I would greatly appreciate if someone would advice what should be done to avoid this error.
[/code]