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

Re: netcdf2.3.2 Test Error



> Keywords: 199407102149.AA25388 netCDF 2.3.2 IBM RS/6000 AIX 3.2.5 test error
> Organization: Plymouth State College, Plymouth NH

Hi Jim,

> These are my three "out" files for configure, make all, and make test that
> Tom Yoksas requested:

  ...

> ***********************************************
> *****This is the output from making "test"*****
> ***********************************************

> ncattget: attribute "TITLE" not found
> Assertion failed: file cdftest.c, line 393

Sorry to take so long to answer this, but I was on vacation.

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".  

If you still have the object files around from when you last tried this, the
simplest fix is to just use the following to recompile
netcdf/libsrc/string.c

   cc -c   -DNDEBUG -D_ALL_SOURCE string.c

and then rerun "make all" from the netcdf top-level source directory.  After
that, "make test" should work fine.

--
Russ Rew                                                   UCAR Unidata Program
address@hidden                                             P.O. Box 3000
http://www.unidata.ucar.edu/                             Boulder, CO 80307-3000