build error in latest trunk

Jim Edwards edwards.jim at gmail.com
Fri Aug 28 14:48:21 CDT 2009


Hi Rob,

The reason I was rebuilding was to add some debug info for the xlc
compiler.  I've dropped back a couple of revisions to r657 and was able to
build.

On Fri, Aug 28, 2009 at 1:41 PM, Rob Latham <robl at mcs.anl.gov> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20090828/90d43761/attachment.htm>


More information about the parallel-netcdf mailing list