build error in latest trunk
Rob Latham
robl at mcs.anl.gov
Fri Aug 28 14:41:15 CDT 2009
On Fri, Aug 28, 2009 at 12:55:36PM -0600, Jim Edwards wrote:
> Just trying to build the latest trunk on AIX, I have a host of errors of
> this nature:
>
> "mpinetcdf.c", line 12803.33: 1506-519 (S) Index operator ([]) cannot be
> applied to pointer to void.
> "mpinetcdf.c", line 12805.33: 1506-519 (S) Index operator ([]) cannot be
> applied to pointer to void.
> "mpinetcdf.c", line 12813.68: 1506-519 (S) Index operator ([]) cannot be
> applied to pointer to void.
Interesting. In the past I did not have this problem when building
with the XL compiler on our BlueGene, but I get these same warnings
(and others).
Here are the code fragments for those lines:
if (i==0){
displacement[i] = 0;
MPI_Get_address( &(xbuf[i][0]), &a0 );
} else {
MPI_Get_address( &(xbuf[i][0]), &ai );
displacement[i] = (MPI_Aint) (ai-a0);
}
xbuf is declared up at the beginning of ncmpi_get_mvara_all as
void **xbuf = NULL, **cbuf = NULL;
I guess this should be declared as size_t** ?
I'll try to clean this up. In the meantime, can you use gcc to build
pnetcdf?
==rob
--
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA
More information about the parallel-netcdf
mailing list