[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netCDF: make test problems



> Organization: University of Bergen, Norway
> Keywords: 199404201539.AA11584

Hi Arne,

> I want to install netCDF 2.3.2. The first step ('make all') goes 
> without complaints, but the 'make test' procesdure produces the
> following:
> 
> - --
> nmiam@rscca(276): make test
> 
> making `test' in directory /home/b/nmi/nmiam/projects/netcdf-2.3.2/xdr
> 
>         cc -c -I/usr/include/rpc -DNDEBUG -D_ALL_SOURCE -O xdrtest.c
> cc -O xdrtest.o -o xdrtest
>         ./xdrtest > xdrtest_out.new
> diff xdrtest_out.new testout.sav
> *** XDR passes formatted test ***
> cmp test.xdr test_xdr.sav
> *** XDR passes binary test ***
> 
> returning to directory /home/b/nmi/nmiam/projects/netcdf-2.3.2
> 
> 
> making `test' in directory /home/b/nmi/nmiam/projects/netcdf-2.3.2/libsrc
> 
>         cc -c   -DNDEBUG -D_ALL_SOURCE -O cdftest.c
>         ar rcuv libnetcdf.a array.o attr.o cdf.o dim.o file.o iarray.o 
> error.o  globdef.o putget.o putgetg.o sharray.o string.o var.o  xdrposix.o
>         ranlib libnetcdf.a
> cc -O cdftest.o libnetcdf.a -o cdftest
>         ./cdftest > cdftest_out.new
> ncattget: attribute "TITLE" not found
> Assertion failed: file cdftest.c, line 393
> make: 1254-004 The error code from the last command is 1.

 ...

> Is this a serious error? What can I do about it?
> I have not used netCDF before.
> I am using ver. 2.3.2, with patch 1 and path 2 applied.
> I am on an IBM RS6000/590 running AIX 3.2.5.
> I use the standard ('cc') C compiler.

   We have observed a problem with the optimizer in the C compiler of AIX
   3.2. The default for our configure script is to specify optimization by
   using the "-O" compiler flag, but that causes the netCDF library to be
   built incorrectly under AIX 3.2, with the symptom that "make test" will
   fail even though there are no compile or link errors when building from
   source. A workaround is to build the netCDF library with CFLAGS="" (or
   "-g") explicitly, by setting the environment variable CFLAGS to "" or
   "-g" before invoking configure, or by using one of the other methods
   suggested in the INSTALL file to prevent the use of the "-O" flag for
   compilation. The specific file that is incorrectly compiled with "-O" is
   libsrc/string.c, so another workaround is to just compile that file
   without "-O" and then rebuild. This problem will be fixed in the next
   release.

__________________________________________________________________________
                      
Russ Rew                                              UCAR Unidata Program
address@hidden                                        P.O. Box 3000
(303)497-8645                                 Boulder, Colorado 80307-3000