I have successfully built mvapich2-1.6 with PGI 10.0 on rhel 5.7 and rhel 4.9 systems.
But on rhel 6.1 system, the same build failed with following error:
CC topology-linux.lo
PGC-W-0221-Redefinition of symbol CPU_SET
(/usr/pgi/linux86-64/10.0/include/sched.h: 20)
PGC-W-0221-Redefinition of symbol CPU_CLR
(/usr/pgi/linux86-64/10.0/include/sched.h: 21)
PGC-W-0221-Redefinition of symbol CPU_ISSET
(/usr/pgi/linux86-64/10.0/include/sched.h: 22)
PGC-W-0221-Redefinition of symbol CPU_ZERO
(/usr/pgi/linux86-64/10.0/include/sched.h: 23)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier
sched_setaffinity by typedef id .Z0000 (topology-linux.c: 60)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier pid by
typedef id .Z0001 (topology-linux.c: 60)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier lg by
typedef id .Z0002 (topology-linux.c: 60)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier mask by
typedef id .Z0003 (topology-linux.c: 60)
PGC-W-0156-Type not specified, ‘int’ assumed (topology-linux.c: 60)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier
sched_getaffinity by typedef id .Z0004 (topology-linux.c: 93)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier pid by
typedef id .Z0005 (topology-linux.c: 93)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier lg by
typedef id .Z0006 (topology-linux.c: 93)
PGC-S-0035-Syntax error: Recovery attempted by replacing identifier mask by
typedef id .Z0007 (topology-linux.c: 93)
PGC-W-0156-Type not specified, ‘int’ assumed (topology-linux.c: 93)
PGC/x86-64 Linux 10.0-1: compilation completed with severe errors
make[8]: *** [topology-linux.lo] Error 1
make[8]: Leaving directory
`/usr/src/redhat/BUILD/mvapich2-1.6/src/mpid/ch3/channels/mrail/src/hwloc/src’
make[7]: *** [all-recursive] Error 1
Is this a known problem?
Does PGI have a fix for this?
Thank you for your help
Limin