can't build on linux system...

Rob Ross rross at mcs.anl.gov
Tue Oct 21 17:20:08 CDT 2008


Hi Ed,

What version of our stuff?

Thanks,

Rob

On Oct 21, 2008, at 5:06 PM, Ed Hartnett wrote:

> Howdy all!
>
> I am trying to build pnetcdf on a very plain linux system, but it is
> not working.
>
> I configure like this:
>
> CC=mpicc ./configure --with-mpi=/shecky/local --prefix=/shecky/ 
> local_pnetcdf --disable-fortran
>
> But when I build, I get an error:
> /shecky/local/bin/mpicc -c -g -O2 -I.    attr.c
> In file included from ncx.h:32,
>                 from attr.c:14:
> nctypes.h:12: error: conflicting types for ‘ptrdiff_t’
> /usr/lib/gcc/x86_64-redhat-linux/4.3.0/include/stddef.h:152: error:  
> previous declaration of ‘ptrdiff_t’ was here
> make[3]: *** [attr.o] Error 1
> make[3]: Leaving directory `/upc/share/ed/downloads/parallel- 
> netcdf-1.0.2/src/lib'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/upc/share/ed/downloads/parallel- 
> netcdf-1.0.2/src'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/upc/share/ed/downloads/parallel- 
> netcdf-1.0.2'
> make: *** [src/lib/all] Error 2
>
> This is on platform:
>
> bash-3.2$ uname -a
> Linux shecky.unidata.ucar.edu 2.6.26.3-29.fc9.x86_64 #1 SMP Wed Sep  
> 3 03:16:37 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
>
> I note that the configure does not find ptrdiff_t. From the
> config.log:
>
> configure:8131: mpicc -c -g -O2  conftest.c >&5
> conftest.c: In function 'main':
> conftest.c:96: error: 'uchar' undeclared (first use in this function)
> conftest.c:96: error: (Each undeclared identifier is reported only  
> once
> conftest.c:96: error: for each function it appears in.)
> conftest.c:96: error: expected expression before ')' token
> configure:8137: $? = 1
>
> The mpicc compiler has this to say for itself:
> bash-3.2$ mpicc --version
> gcc (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
>
> Does any of this seem familiar to anyone? What am I doing wrong here?
>
> Thanks!
>
> Ed
> -- 
> Ed Hartnett  -- ed at unidata.ucar.edu
>




More information about the parallel-netcdf mailing list