Sun workstation; cannot get test programs to Make

Robert Latham robl at mcs.anl.gov
Thu May 20 10:24:50 CDT 2004


On Thu, May 20, 2004 at 10:50:07AM -0400, Corelli.Eileen wrote:
> 
> Im trying to compile p-netcdf test cases "nc_test" and "nc_test2" on
> a Sun workstation and get the following error (while executing the
> Makfile).  Can anyone shed some light on what is happening?

This is a strange error...

> /home/corelli/MPI/pnetcdf/test/nc_test> make
> /apps/mpi/bin/mpicc -c -O -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/export/disk1/parallel-netcdf-0.9.3/src/lib -I.  nc_test.c
> In file included from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/time.h:90,
>                  from /usr/include/sys/time.h:411,
>                  from /usr/include/sys/select.h:17,
>                  from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/sys/types.h:281,
>                  from /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/unistd.h:15,
>                  from nc_test.c:7:
> /usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
> /usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or union
> /usr/include/sys/siginfo.h:76: parse error before `}'
> *** Error code 1
> make: Fatal error: Command failed for target `nc_test.o'
> /home/corelli/MPI/pnetcdf/test/nc_test> 

nc_test.c is where we include 'unistd.h', which in turn includes some
header files specific to gcc-2.7.2.  Those header files seem to be
incompatible with the solaris header files in /usr/include/sys/siginfo
somehow.

Based on the line
'/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.5.1/2.7.2/include/unistd.h:15',
I would have to guess that you are running on solaris 2.5.1 and using
GCC 2.7.2.   Both of those are quite old, and there is a good chance
that we do not support that version of solaris or that version of gcc.

I do not know exactly what we can do differently to make
parallel-netcdf compile if compiler headers conflict with system
headers.  I know it's not terribly helpful to you if I pass the blame
to the operating system, but that's all I can think of.

==rob

-- 
Rob Latham
Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
Argonne National Labs, IL USA                B29D F333 664A 4280 315B




More information about the parallel-netcdf mailing list