PGC-S-0204-Actual parameters too long for ...

I am presently unable to compile the test suite for our software with pgcc because I see the following

PGC-S-0204-Actual parameters too long for TIME_OPERATION (/home/pcp1/phargrov/UPC/upcr/gasnet/tests/testmisc.c: 318)
PGC-S-0204-Actual parameters too long for TIME_OPERATION (/home/pcp1/phargrov/UPC/upcr/gasnet/tests/testmisc.c: 318)
[SAME LINE MANY MORE TIMES]
PGC-S-0204-Actual parameters too long for TIME_OPERATION (/home/pcp1/phargrov/UPC/upcr/gasnet/tests/testmisc.c: 318)
PGC-F-0008-Error limit exceeded (/home/pcp1/phargrov/UPC/upcr/gasnet/tests/testmisc.c)
PGC/x86 Linux/x86 6.0-2: compilation aborted

We use the preprocessor to build some test cases (timed in this case), and pgi-6.0 appears unable to deal with the size of the arguments.

Are there any suggested (realistic) workarounds?

-Paul

Hi Paul,

You’ve come across a hard limit in the compiler. The total length of the parameters in a macro call can not exceed 2048 characters. I don’t know how realistic this, but the only solution is reduce the number of characters you use.

  • Mat