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

970801: Help Install, please.



Dear Dr. Shuhei OKUBO,

> To: address@hidden
> From: address@hidden (Shuhei OKUBO)
> Subject: Help Install, please.
> Organization: University of TOKYO/Earthquake Research Institute
> Keywords: 199708010835.CAA07349

In the above message, you wrote:

> I would greatly appreciate your help
> on installing netCDF 3.3 on my WS.
> 
> Problem is that 
> compilation of  "fort-attio.c" fails.
> 
> a)  I am using "acc" and "f77" of SC1.0, not SC 3.0.

The SC1.0 compilers are very old (5 years?).  We no longer have
them here.  The SC1.0 C compiler is not a conforming (Standard C)
compiler.  Helping you with these compilers might be very difficult.  A
quicker and better solution might be to upgrade your compilers (they
are very inexpensive here).  Another solution might be to use the
freely-available GNU C compiler (gcc) instead of acc(1).

> b) I do not have  C++ 

gcc(1) supports C++ as well as C.  This is another reason to use it
rather than the SC1.0 acc(1).

> c) I have f77
> d) I chose enviroment variables as follows.
>  CPPFLAGS=-DNDEBUG
>  CC =acc
>  CFLAGS='-O -temp=.'
>  FC=f77
>  FFLAGS='-O -temp=.'
>  CXX=CC

If you do not have a C++ compiler, then you should set the "CXX"
environment variable to the empty string, i.e.

    CXX=''

>  LIBS=-ldl
> 
> 
> For your reference, I enclose 
> 1) out of "uname -a"
> 2) VERSION
> 3) output and error output of "configure"
> 4) config.log
> 5) output and error output of "make"

Thank you for sending all the information I need.  It is appreciated.

> 
> Best regards,
> 
> Dr. Shuhei OKUBO
> Earthquake Research Institute
> University of TOKYO
> Fax:+81-3-5802-3317
> 
> ==============
> 1) out of "uname -a ":  SunOS gravity 4.1.4-JL 1 sun4m
> ==============
> 2) VERSION:  3.3

There is a later version of the netCDF package.  It is version 3.3.1.
It corrects several bugs in the installation process.  You can see the
changes at the following URL:

    http://www.unidata.ucar.edu/packages/netcdf/announce-3.3.1.html

I suggest that you try to install it rather than version 3.3 --
regardless of which compilers you use.

> ==============
> 3) output and error output of "configure"
> creating cache ./config.cache
> checking for m4... m4
> checking user-defined C compiler "acc"
> checking C compiler... works
> checking for how to make dependencies... cc -M
> checking for CC... CC
> checking C++ compiler "CC"... configure: warning: CC failed to compile test
> program
> configure: warning: Could not find working C++ compiler
> configure: warning: Setting CXX to the empty string
> configure: warning: The C++ interface will not be built
> checking user-defined FORTRAN compiler "f77"... works
> checking for math library
> checking for -lc... yes
> checking FORTRAN-type equivalent to netCDF "byte"... byte
> checking FORTRAN-type equivalent to C "signed char"... byte
> checking FORTRAN fill-value for netCDF version 2 byte... -127
> checking FORTRAN-type equivalent to netCDF "short"... integer*2
> checking FORTRAN-type equivalent to C "short"... integer*2
> checking FORTRAN-type equivalent to netCDF "long"... integer*4
> checking FORTRAN-type equivalent to C "int"... integer
> checking FORTRAN-type equivalent to netCDF "float"... real*4
> checking FORTRAN-type equivalent to C "float"... real*4
> checking FORTRAN-type equivalent to netCDF "double"... real*8
> checking FORTRAN-type equivalent to C "double"... real*8
> checking for ar... ar
> checking for ranlib... ranlib
> checking how to run the C preprocessor... acc -E
> checking for stdlib.h... yes
> checking for sys/types.h... yes
> checking for strerror... yes
> checking for ftruncate... yes
> checking for st_blksize in struct stat... yes
> checking whether cross-compiling... no
> checking for IEEE floating point format... yes
> checking for ANSI C header files... yes
> checking for size_t... yes
> checking for off_t... yes
> checking for ssize_t... no
> checking for ptrdiff_t... yes
> checking for uchar... no
> checking whether char is unsigned... no
> checking whether byte ordering is bigendian... yes
> checking size of short... 2
> checking size of int... 4
> checking size of long... 4
> checking size of float... 4
> checking size of double... 8
> checking size of off_t... 4
> checking size of size_t... 4
> checking for command to create manual-page index... catman -w -M $(MANDIR)
> checking binary distribution directory... /home/ftp/pub/binary/dummy_system
> updating cache ./config.cache
> creating ./config.status
> creating macros.make
> creating libsrc/ncconfig.h
> libsrc/ncconfig.h is unchanged
> creating fortran/netcdf-cpp.inc
> fortran/netcdf-cpp.inc is unchanged
> 
> ==============
> 4) config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> configure:989: acc -c -O -temp=. -DNDEBUG conftest.c 1>&5
> configure:1117: CC -c  -DNDEBUG conftest.C 1>&5
> ./configure: CC: not found
> configure:1224: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>  MAIN:
> configure:1313: f77 -c -O -temp=. -w conftest.F
> ./cpp.29909.0.f:
>         foo:
> configure:1345: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -lc  -ldl 1>&5
> configure:1421: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>  MAIN:
> configure:1448: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>         sub:
> configure:1465: acc -o conftest -DNDEBUG -O -temp=.  conftest.c conftestf.o 
> -ldl
> configure:1475: ./conftest
> configure:1512: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>  MAIN:
> configure:1539: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>         sub:
> configure:1556: acc -o conftest -DNDEBUG -O -temp=.  conftest.c conftestf.o 
> -ldl
> configure:1566: ./conftest
> configure:1591: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>  MAIN:
> configure:1618: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>         sub:
> configure:1635: acc -o conftest -DNDEBUG -O -temp=.  conftest.c conftestf.o 
> -ldl
> configure:1645: ./conftest
> configure:1670: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>  MAIN:
> configure:1697: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>         sub:
> configure:1714: acc -o conftest -DNDEBUG -O -temp=.  conftest.c conftestf.o 
> -ldl
> configure:1724: ./conftest
> configure:1749: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>  MAIN:
> configure:1776: f77 -c -O -temp=. -w conftest.f
> conftest.f:
>         sub:
> configure:1793: acc -o conftest -DNDEBUG -O -temp=.  conftest.c conftestf.o 
> -ldl
> configure:1803: ./conftest
> configure:1898: acc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1944: acc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:1978: acc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2028: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2076: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2110: acc -c -O -temp=. -DNDEBUG conftest.c 1>&5
> configure:2142: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2194: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2223: acc -E -DNDEBUG conftest.c >/dev/null 2>conftest.out
> configure:2288: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2506: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> "configure", line 2502: warning: initializer does not fit: 255
> configure:2544: acc -c -O -temp=. -DNDEBUG conftest.c 1>&5
> "configure", line 2539: undefined symbol: bogus
> "configure", line 2539: syntax error before or at: endian
> Compilation failed
> configure:2590: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2628: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2662: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2696: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2730: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2764: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2802: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> configure:2840: acc -o conftest -O -temp=. -DNDEBUG  conftest.c -ldl 1>&5
> 
> ==============
> 5) output and error output of "make"
> make[1]: Entering directory `/data2/netcdf/netcdf-3.3/src'
> 
> Making `all' in directory /data2/netcdf/netcdf-3.3/src/libsrc
> 
> make[2]: Entering directory `/data2/netcdf/netcdf-3.3/src/libsrc'
> acc -c -O -temp=. -I.  -DNDEBUG attr.c
> "attr.c", line 208: warning: argument is incompatible with prototype: arg #1
> acc -c -O -temp=. -I.  -DNDEBUG dim.c
> "dim.c", line 212: warning: argument is incompatible with prototype: arg #1
> acc -c -O -temp=. -I.  -DNDEBUG error.c
> acc -c -O -temp=. -I.  -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
> acc -c -O -temp=. -I.  -DNDEBUG nc.c
> "nc.c", line 102: warning: argument is incompatible with prototype: arg #1
> "nc.c", line 121: warning: argument is incompatible with prototype: arg #1
> acc -c -O -temp=. -I.  -DNDEBUG ncio.c
> acc -c -O -temp=. -I.  -DNDEBUG ncx.c
> "ncx.c", line 664: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 674: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 1268: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 1278: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 1786: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 1794: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 1878: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 1892: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 1992: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 2001: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 2101: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 2121: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 2154: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2183: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2212: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2241: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2270: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2322: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2612: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 2943: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 2975: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 3093: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 3125: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 3280: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 3486: warning: argument is incompatible with prototype: arg #2
> "ncx.c", line 3711: warning: argument is incompatible with prototype: arg #1
> "ncx.c", line 3913: warning: argument is incompatible with prototype: arg #2
> acc -c -O -temp=. -I.  -DNDEBUG putget.c
> "putget.c", line 4925: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 4925: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5027: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5027: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5128: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5128: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5229: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5229: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5330: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5330: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5431: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5431: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5532: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5532: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5633: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5633: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5778: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5778: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5874: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5874: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 5969: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 5969: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 6064: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 6064: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 6159: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 6159: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 6254: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 6254: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 6349: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 6349: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 6444: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 6444: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 11302: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 11347: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 11516: warning: argument is incompatible with prototype: arg 
> #1
> "putget.c", line 11516: warning: argument is incompatible with prototype: arg 
> #2
> "putget.c", line 11530: warning: argument is incompatible with prototype: arg 
> #1
> acc -c -O -temp=. -I.  -DNDEBUG string.c
> "string.c", line 80: warning: argument is incompatible with prototype: arg #1
> acc -c -O -temp=. -I.  -DNDEBUG v1hpg.c
> "v1hpg.c", line 1166: warning: argument is incompatible with prototype: arg #1
> "v1hpg.c", line 1172: warning: argument is incompatible with prototype: arg #1
> "v1hpg.c", line 1172: warning: argument is incompatible with prototype: arg #2
> acc -c -O -temp=. -I.  -DNDEBUG v2i.c
> acc -c -O -temp=. -I.  -DNDEBUG var.c
> "var.c", line 50: warning: argument is incompatible with prototype: arg #1
> "var.c", line 100: warning: argument is incompatible with prototype: arg #1
> "var.c", line 100: warning: argument is incompatible with prototype: arg #2
> "var.c", line 122: warning: argument is incompatible with prototype: arg #1
> "var.c", line 122: warning: argument is incompatible with prototype: arg #2
> "var.c", line 124: warning: argument is incompatible with prototype: arg #1
> "var.c", line 124: warning: argument is incompatible with prototype: arg #2
> "var.c", line 200: warning: argument is incompatible with prototype: arg #1
> ar cru   libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o
> putget.o string.o v1hpg.o v2i.o var.o
> ranlib libnetcdf.a
> m4 -B7168 -DAPI=C ../man/netcdf.m4 >netcdf.3  || rm netcdf.3
> make[2]: Leaving directory `/data2/netcdf/netcdf-3.3/src/libsrc'
> 
> Returning to directory /data2/netcdf/netcdf-3.3/src
> 
> make[1]: Leaving directory `/data2/netcdf/netcdf-3.3/src'
> make[1]: Entering directory `/data2/netcdf/netcdf-3.3/src'
> 
> Making `all' in directory /data2/netcdf/netcdf-3.3/src/nc_test
> 
> make[2]: Entering directory `/data2/netcdf/netcdf-3.3/src/nc_test'
> acc -c -O -temp=. -I../libsrc  -DNDEBUG nc_test.c
> acc -c -O -temp=. -I../libsrc  -DNDEBUG error.c
> acc -c -O -temp=. -I../libsrc  -DNDEBUG test_get.c
> acc -c -O -temp=. -I../libsrc  -DNDEBUG test_put.c
> acc -c -O -temp=. -I../libsrc  -DNDEBUG test_read.c
> acc -c -O -temp=. -I../libsrc  -DNDEBUG test_write.c
> acc -c -O -temp=. -I../libsrc  -DNDEBUG util.c
> acc -o nc_test -O -temp=.  nc_test.o error.o test_get.o test_put.o
> test_read.o test_write.o util.o -L../libsrc -lnetcdf -lm -ldl
> make[2]: Leaving directory `/data2/netcdf/netcdf-3.3/src/nc_test'
> 
> Returning to directory /data2/netcdf/netcdf-3.3/src
> 
> make[1]: Leaving directory `/data2/netcdf/netcdf-3.3/src'
> make[1]: Entering directory `/data2/netcdf/netcdf-3.3/src'
> 
> Making `all' in directory /data2/netcdf/netcdf-3.3/src/fortran
> 
> make[2]: Entering directory `/data2/netcdf/netcdf-3.3/src/fortran'
> sed 's/@FILBYTE@/-127/g'        \
>     netcdf.in >netcdf.inc
> acc -c -O -temp=. -I../libsrc  -DNDEBUG fort-attio.c
> "fort-attio.c", line 12: parameter not in identifier list: fncid
> "fort-attio.c", line 12: parameter not in identifier list: fvarid
> "fort-attio.c", line 19: parameter not in identifier list: fncid
> "fort-attio.c", line 19: parameter not in identifier list: fvarid
> "fort-attio.c", line 26: parameter not in identifier list: fncid
> "fort-attio.c", line 26: parameter not in identifier list: fvarid
> "fort-attio.c", line 33: parameter not in identifier list: fncid
> "fort-attio.c", line 33: parameter not in identifier list: fvarid
> "fort-attio.c", line 40: parameter not in identifier list: fncid
> "fort-attio.c", line 40: parameter not in identifier list: fvarid
> "fort-attio.c", line 47: parameter not in identifier list: fncid
> "fort-attio.c", line 47: parameter not in identifier list: fvarid
> "fort-attio.c", line 54: parameter not in identifier list: fncid
> "fort-attio.c", line 54: parameter not in identifier list: fvarid
> "fort-attio.c", line 61: parameter not in identifier list: fncid
> "fort-attio.c", line 61: parameter not in identifier list: fvarid
> "fort-attio.c", line 68: parameter not in identifier list: fncid
> "fort-attio.c", line 68: parameter not in identifier list: fvarid
> "fort-attio.c", line 75: parameter not in identifier list: fncid
> "fort-attio.c", line 75: parameter not in identifier list: fvarid
> "fort-attio.c", line 82: parameter not in identifier list: fncid
> "fort-attio.c", line 82: parameter not in identifier list: fvarid
> "fort-attio.c", line 89: parameter not in identifier list: fncid
> "fort-attio.c", line 89: parameter not in identifier list: fvarid

I think (but am not certain) that the above problem is fixed in version
3.3.1 of the netCDF package.  Please try it.

> Compilation failed
> make[2]: *** [fort-attio.o] Error 2
> make[2]: Leaving directory `/data2/netcdf/netcdf-3.3/src/fortran'
> make[1]: *** [subdir_target] Error 1
> make[1]: Leaving directory `/data2/netcdf/netcdf-3.3/src'
> make: *** [fortran/all] Error 2
> 
> - ----Ends here

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>