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

Re: 961011: netCDF building problem



>To: address@hidden
>From: Richard Drake <address@hidden>
>Subject: netCDF building problem
>Organization: Armstrong Labs, Tyndall AFB
>Keywords: 199610111407.AA20765

Hi Richard,

> i'm with Armstrong Labs at Tyndall AFB.  i read about
> the netCDF software and decided to install it on my
> DEC Alpha.  i also want to install GMT which requires
> netCDF.
> 
> I ran into a problem though.  The make all failed.  At
> the end of the INSTALL file, it gives this email address.
> I am attaching the output i obtained from the installation
> process.  I wonder if you could help me?

Yes, thanks for sending all the information needed to diagnose the problem.

> ATTACHMENTS ......
> 
> uname -a: OSF1 aleqdec1 V3.2 41 alpha
> - ---------
> 
> env:
> - ----
>      DISPLAY=:0.0
>      HOME=/usr/users/drake
>      LOGNAME=drake
>      PATH=/usr/users/drake/bin:/usr/bin:/usr/bin/X11:.
>        :/usr/local/bin:/usr/local/teTeX/bin:/sbin:/usr/local/bin:
>        /usr/local/teTeX/bin:/sbin
>      SHELL=/bin/csh
>      USER=drake
>      LANG=
>      MAIL=/usr/spool/mail/drake
>      MANPATH=/usr/share/man:/usr/local/man:/usr/local/teTeX/man
>      TEXINPUTS=.:/usr/users/drake/tex:
>      EDITMODE=vi
>      TERM=xterm
>      WINDOWID=29360141
>      TERMCAP=vs|xterm|vs100|xterm terminal emulator (X window
>         system):  (more ...)
> 
> file CUSTOMIZE:
> - ---------------
> 
> #############################################################################
> #
> # C compiler (default is `cc'):
> # CC=gcc
> #
> # C compiler flags (default is `-O'):
> # CFLAGS=-g
> #
> # C preprocessor flags (default is empty):
> # CPPFLAGS=-DDEBUG
> #
> # C++ compiler (default is system-dependent).  Define as the empty 
> # string to avoid building the C++ interface.
> # CXX=CC
> #
> # Installation prefix (default is `..'):
> prefix=/usr/local/unidata
> 
> output from configure:
> - ----------------------
> 
> creating cache ./config.cache
> checking for catman... no
> checking for fill-value usage... new usage
> checking the installation prefix... /usr/local/unidata
> checking the installation exec-prefix... /usr/local/unidata
> checking for cc... cc
> checking type of operating system... osf1
> checking for ranlib... ranlib
> checking how to run the C preprocessor... cc -E
> checking the C preprocessor... works
> checking for f77... f77
> checking for cxx... no
> checking for CC... no
> checking for cxx... no
> checking for c++... c++

The configure script finds "c++" as the name for your C++ compiler, so
it will set up things to try to build and test the C++ interface.

> checking for yacc... yacc
> checking for neqn... neqn
> checking for tbl... tbl
> checking for ar... ar
> checking for makeinfo... makeinfo
> checking for tar flags... -chof
> checking for dependency generation mechanism... cc -M
> checking for C position-independent-code compile-option... 
> checking whether cross-compiling... no
> checking size of int... 4
> checking size of long... 8
> checking type of nclong... int
> checking endianess... little endian
> checking type of netlong... int
> checking type of internal netlong... int
> checking for XDR header-file... -I/usr/include/rpc
> checking for XDR library... 
> checking for xdr_long in default library... yes
> checking XDR implementation... ok
> checking type pointed to by inline XDR function... netlong
> checking XDR structure xdr_ops for x_getint member... no
> checking which XDR module to use... xdrposix
> checking for function prototype... yes
> checking for working const... yes
> checking for variadic function support... yes
> checking for strerror... yes
> checking compiler options for IEEE arithmetic... -ieee_with_inexact
> checking for size of block buffer... 8192
> checking for float.h... yes
> checking for stdlib.h... yes
> checking C header file <stdlib.h> for function malloc()... declared
> checking for package version... 2.4
> checking binary distribution directory... /home/ftp/pub/binary/alpha-osf1
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating xdr/Makefile
> creating libsrc/Makefile
> creating fortran/Makefile
> creating cxx/Makefile
> creating ncgen/Makefile
> creating ncdump/Makefile
> creating nctest/Makefile
> creating doc/Makefile
> creating port/master.mk
> creating port/Makefile
> creating libsrc/local_nc.h
> expanding `include's in file `Makefile'
> expanding `include's in file `xdr/Makefile'
> expanding `include's in file `libsrc/Makefile'
> expanding `include's in file `fortran/Makefile'
> expanding `include's in file `cxx/Makefile'
> expanding `include's in file `ncgen/Makefile'
> expanding `include's in file `ncdump/Makefile'
> expanding `include's in file `nctest/Makefile'
> expanding `include's in file `doc/Makefile'
> expanding `include's in file `port/master.mk'
> expanding `include's in file `port/Makefile'
> 
> output from "make all >&! log &":
> - ---------------------------------
> 
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/port
> returning to
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/xdr
> returning to
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/libsrc
> cc -c -O -ieee_with_inexact -std array.c
> cc -c -O -ieee_with_inexact -std attr.c
> cc -c -O -ieee_with_inexact -std cdf.c
> cc -c -O -ieee_with_inexact -std dim.c
> cc -c -O -ieee_with_inexact -std file.c
> cc -c -O -ieee_with_inexact -std iarray.c
> cc -c -O -ieee_with_inexact -std error.c
> cc -c -O -ieee_with_inexact -std globdef.c
> cc -c -O -ieee_with_inexact -std putget.c
> cc -c -O -ieee_with_inexact -std putgetg.c
> cc -c -O -ieee_with_inexact -std sharray.c
> case `uname -sv` in  'AIX 3')  CFLAGS=`echo -O -ieee_with_inexact
>   | sed 's/-O[23]//g;s/-O//g'`;  cc -c $CFLAGS -std string.c;  ;;  *)
>   cc -c -O -ieee_with_inexact -std string.c;  ;;  esac
> cc -c -O -ieee_with_inexact -std var.c
> cc -c -O -ieee_with_inexact -std xdrposix.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
> a - array.o
> a - attr.o
> a - cdf.o
> a - dim.o
> a - file.o
> a - iarray.o
> a - error.o
> a - globdef.o
> a - putget.o
> a - putgetg.o
> a - sharray.o
> a - string.o
> a - var.o
> a - xdrposix.o
> case "" in  '') ;;  *)  ar rucv libnetcdf.a ;;  esac
> ranlib libnetcdf.a
> returning to directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/fortran
> ./fortc -L . -O osf1 common.inc > netcdf.inc
> ./fortc -L . -O osf1 jackets.src > jackets.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std jackets.c
> ar rcuv ../libsrc/libnetcdf.a jackets.o
> a - jackets.o
> ranlib ../libsrc/libnetcdf.a
> returning to directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>    directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/ncdump
> cc -c -O -ieee_with_inexact -I../libsrc   -std ncdump.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std vardata.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std dumplib.c
> cc -o ncdump -O -ieee_with_inexact ncdump.o vardata.o
>    dumplib.o ../libsrc/libnetcdf.a
> returning to directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/ncgen
> cc -c -O -ieee_with_inexact -I../libsrc  -std main.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std load.c
> lex ncgen.l
> 496/2000 nodes(%e), 1695/6000 positions(%p), 234/2500 (%n), 14134 transitions
> , 301/1000 packed char classes(%k), 962/5000 packed
>   transitions(%a), 1151/5000 output slots(%o)
> mv lex.yy.c ncgenyy.c
> yacc -d ncgen.y
> mv y.tab.c ncgentab.c
> mv y.tab.h ncgentab.h
> cc -c -O -ieee_with_inexact -I../libsrc  -std ncgentab.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std escapes.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std getfill.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std init.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std close.c
> cc -c -O -ieee_with_inexact -I../libsrc  -std genlib.c
> cc -o ncgen -O -ieee_with_inexact main.o load.o ncgentab.o
>   escapes.o getfill.o init.o close.o genlib.o ../libsrc/libnetcdf.a
> returning to directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/nctest
> cc -c -O -ieee_with_inexact -I../libsrc   -std varget.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std vargetg.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std varput.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std varputg.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std vardef.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std vartests.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std vputget.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std vputgetg.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std driver.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std cdftests.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std dimtests.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std rec.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std atttests.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std misctest.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std add.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std error.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std emalloc.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std val.c
> cc -c -O -ieee_with_inexact -I../libsrc   -std slabs.c
> cc -o nctest -O -ieee_with_inexact varget.o vargetg.o varput.o
>   varputg.o vardef.o vartests.o vputget.o vputgetg.o driver.o
>   cdftests.o dimtests.o rec.o atttests.o misctest.o add.o error.o
>   emalloc.o val.o slabs.o ../libsrc/libnetcdf.a
> returning to directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src
> making `all' in
>   directory /usr/users/drake/gmt/netcdf/test/netcdf-2.4.3/src/cxx
> c++ -c  -I../libsrc   netcdf.cc
> In file included from netcdf.hh:16,
>                  from netcdf.cc:12:
> ncvalues.hh:13: generic.h: No such file or directory
> ncvalues.hh:14: iostream.h: No such file or directory
> ncvalues.hh:18: strstream.h: No such file or directory
> *** Exit 1

In trying to use c++, problems are detected trying to locate some
standard include files that should be installed with the C++ compilation
system.  From the above, the "c++" compiler probably won't even be able
to compile the following 2-line C++ program:

#include <iostream.h>
main() {cout << "Hello, world\n"; }

You can either find out what's needed to get the C++ compiler to compile
and link the above program first, or just disable the compilation and
testing of a C++ interface by setting

CXX=""

in your CUSTOMIZE file before invoking the configure script.

If this doesn't solve the problem, please let us know.

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu