[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble with netCDF build on IBM RISC-6000
- Subject: Re: Trouble with netCDF build on IBM RISC-6000
- Date: Thu, 06 Oct 1994 14:51:58 -0600
> Organization: Sandia LAbs
> Keywords: 199410051935.AA21091
Hi Jim,
> I am attempting to build netCDF-2.3.2, patch level 2 on an IBM RISC-6000
> model 370 running AIX 3.2 (version 3, release 2.)
>
> Unfortunately, "make test" failed in libsrc.
> ncattget: attribute "TITLE" not found
> Assertion failed: file cdftest.c, line 393
This has become one of our Frequently Asked Questions for netCDF. The
answer from the netCDF FAQ (available as
http://www.unidata.ucar.edu/packages/netcdf/faq.html):
12. Is there a problem with building netCDF under AIX 3.2?
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". This problem will be fixed in the next release.
It seems to work best if you delete the ncdump/ncdump and ncgen/ncgen
executables before rerunning make, because otherwise they don't get relinked
with the new version of the library (this seems to be a bug in the Makefile
rules).
--
Russ Rew UCAR Unidata Program
address@hidden P.O. Box 3000
http://www.unidata.ucar.edu/ Boulder, CO 80307-3000