[mpich-discuss] Compile error on AIX when using --with-device=ch3:shm

Bin Bao bao at cs.rochester.edu
Fri Feb 19 10:39:38 CST 2010


AIX3.5, gcc 4.2.4

The configure command was:
../mpich2-1.2.1/configure --prefix=/p/compiler/bao/usr/mpich2-1.2.1 --with-device=ch3:shm

Error Message:
/p/compiler/bao/mpich2-1.2.1/src/mpid/ch3/util/shmbase/ch3_shm.c: In function 'MPIDI_CH3I_SHM_read_progress':
/p/compiler/bao/mpich2-1.2.1/src/mpid/ch3/util/shmbase/ch3_shm.c:317: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
/p/compiler/bao/mpich2-1.2.1/src/mpid/ch3/util/shmbase/ch3_shm.c:317: error: expected expression before '.' token
/p/compiler/bao/mpich2-1.2.1/src/mpid/ch3/util/shmbase/ch3_shm.c:346: error: 'u_ptrs' undeclared (first use in this function)
/p/compiler/bao/mpich2-1.2.1/src/mpid/ch3/util/shmbase/ch3_shm.c:346: error: (Each undeclared identifier is reported only once
/p/compiler/bao/mpich2-1.2.1/src/mpid/ch3/util/shmbase/ch3_shm.c:346: error: for each function it appears in.)


After looking into ch3_shm.i, I found that the statement
MPIDI_CH3I_SHM_Queue_t *shmptr;

becomes

MPIDI_CH3I_SHM_Queue_t *u_ptrs.shmptr;

, which causes the compiler error.





More information about the mpich-discuss mailing list