[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20000627: netcdf3.5 beta with f90 interface AIX build
- Subject: 20000627: netcdf3.5 beta with f90 interface AIX build
- Date: Tue, 27 Jun 2000 15:34:06 -0600
Paul,
>Date: Tue, 27 Jun 2000 13:36:10 -0400
>From: Paul van Delst <address@hidden>
>Organization: CIMSS @ NOAA/NCEP
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20000627: netcdf3.5 beta with f90 interface AIX build
>Keywords: 200006271504.e5RF4mT06820
In the above message, you wrote:
...
> Step 3 (I started from scratch, untaring the archive file):
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : make distclean
> "macros.make", line 0: make: 1254-027 Cannot open macros.make.
> make: 1254-058 Fatal errors encountered -- cannot continue.
Just FYI, a "make distclean" (or any other "make" for that matter) won't
work until the configure script has been executed because that script
creates the makefiles.
> Step 4:
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : rm -f config.cache
>
> Step 5:
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export CC=/bin/xlc
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export CPPFLAGS=-DNODEBUG
Just FYI, the "assert()" C macro is disabled via the NDEBUG macro rather
than NODEBUG.
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export CFLAGS=-O
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export FC=/bin/xlf
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export FFLAGS=-O
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export CXX=/bin/xlC
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export F90=/bin/xlf90
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : export F90FLAGS="-g
> -qsuffix=f=f90"
...
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : env | grep CC; env | grep
> CPPFLAGS; env | grep CFLAGS; env | grep CXX
> CC=/bin/xlc
> CPPFLAGS=-DNODEBUG
> CFLAGS=-O
> CXX=/bin/xlC
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : env | grep FC; env | grep
> FFLAGS; env | grep F90
> FC=/bin/xlf
> FFLAGS=-O
> F90FLAGS=-g -qsuffix=f=f90
> F90=/bin/xlf90
The above looks good, although to be consistent with the requested level
of optimization in the C, C++, and Fortran-77 compilers, you probably
want the F90FLAGS environment variable to contain "-O" rather than "-g".
> > 4. Perform steps 6 through 9 near the end of the INSTALL file
>
> Step 6:
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : ./configure >configure.log
>
> Worked fine - no errors or messages.
>
>
> Step 7:
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : make >> make.log 2>make.log
>
> Also worked fine - no errors or messages
>
>
> Step 8:
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : make test >> test.log
> 2>>test.log
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : more test.log
>
> Making `test' in directory /u/wx20pd/local/netcdf-3.5-beta3/src/libsrc
>
> /bin/xlc -c -O -I. -DNODEBUG t_nc.c
> ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o
> ncx.o putget.o string.o v1hp
> g.o v2i.o var.o
> ranlib libnetcdf.a
> /bin/xlc -o t_nc -O t_nc.o -L. -lnetcdf
> ./t_nc
> Assertion failed: *lp >= 0 && *lp <= X_OFF_MAX, file ncx.c, line 1757
> make: 1254-059 The signal code from the last command is 6.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 2.
>
>
> Stop.
>
> Huh? Is this a problem? I assume if it's in the testing phase it isn't a
> problem, but still.....
I just built the netcdf-3.5-beta3 package on our AIX 4.3 system using
exactly the same environmental settings that you used:
/tmp/netcdf-3.5-beta3/src: CC=/bin/xlc CPPFLAGS=-DNODEBUG CFLAGS=-O
FC=/bin/xlf FFLAGS=-O CXX=/bin/xlC F90=/bin/xlf90 F90FLAGS="-g -qsuffix=f=f90"
./configure &>configure.log
Everything went fine -- including the "make test".
The problem might be that we have different versions of the same C
development environment. Here's the version of the C compiler that I
used (getting version information is non-trivial):
$ (cd libsrc; /bin/xlc -c -O -I. -DNODEBUG -qLIST attr.c; \
grep Version attr.lst | head -1; rm attr.lst)
C for AIX Compiler Version 3.1.4.10 --- attr.c 06/27/00 15:23:07 (C)
> Step 9:
> ------
> nco1n05:/u/wx20pd/local/netcdf-3.5-beta3/src : make install >>
> install.log 2>>install.log
>
> Worked fine - no errors or messages.
>
>
>
> > Please let me know if this helps.
>
> Yes, it did. Very much! I guess the F90 and F90FLAGS definition was the
> kicker. I figured it would be something simple. Doh!
>
> Thanks again!
>
> cheers,
>
> paulv
> --
> Paul van Delst Ph: (301) 763-8000 x7274
> CIMSS @ NOAA/NCEP Fax: (301) 763-8545
> Rm.202, 5200 Auth Rd. Email: address@hidden
> Camp Springs MD 20746
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>