[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: netCDF problem on AIX 3.2.5
- Subject: Re: netCDF problem on AIX 3.2.5
- Date: Mon, 26 Sep 1994 10:17:24 -0600
> From address@hidden Sat Sep 24 20:52:11 1994
Hi,
> I was trying to install netcdf on IBM RS6000 AIX3.2.5 but got an error
> message during the stage of "make test"
> ==============================================================================
>
> making `test' in directory /var/tmp/jlchen/netcdf-232pl2/xdr
>
> make[1]: Entering directory `/var/tmp/jlchen/netcdf-232pl2/xdr'
> ./xdrtest > xdrtest_out.new
> diff xdrtest_out.new testout.sav
> *** XDR passes formatted test ***
> cmp test.xdr test_xdr.sav
> *** XDR passes binary test ***
> make[1]: Leaving directory `/var/tmp/jlchen/netcdf-232pl2/xdr'
>
> returning to directory /var/tmp/jlchen/netcdf-232pl2
>
>
> making `test' in directory /var/tmp/jlchen/netcdf-232pl2/libsrc
>
> make[1]: Entering directory `/var/tmp/jlchen/netcdf-232pl2/libsrc'
> 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
> xlc -O cdftest.o libnetcdf.a -o cdftest
> ./cdftest > cdftest_out.new
> ncattget: attribute "TITLE" not found
> Assertion failed: file cdftest.c, line 393
> make[1]: *** [test] Error 1
> make[1]: Leaving directory `/var/tmp/jlchen/netcdf-232pl2/libsrc'
> make: *** [libsrc/test] Error 1
> ==============================================================================
>
> So is there any ways to get around this problem?
> Thanks!
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