[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
961227: F90 standard "byte" (reprise)
- Subject: 961227: F90 standard "byte" (reprise)
- Date: Fri, 27 Dec 96 13:11:42 -0700
John,
>Date: Fri, 27 Dec 1996 12:23:09 -0500 (EST)
>From: address@hidden (John Sheldon)
>Organization: Princeton/GFDL
>To: address@hidden (Steve Emmerson)
>Subject: Re: 961217: F90 standard "byte" (reprise)
>Keywords: 199612271722.KAA28950
In the above message you wrote:
> To avoid confusion, I re-did the 2.4.2 build from scratch
> (`make distclean' was giving me a "don't know how" message)....:
>
> Here's the process (SGI Indigo2 XZ Irix 5.3):
>
> cd /net/jps/unidata.ucar.edu/pub/netcdf
> \rm -r netcdf-2.4.2
>
> zcat netcdf-2.4.2.tar.Z | tar xvf -
> cd netcdf-2.4.2/src
>
> setenv CXX
> unsetenv LIBS
> unsetenv CFLAGS
> unsetenv FFLAGS -O2
> setenv FC f90
> setenv CPPFLAGS -DDEBUG
>
> ./configure > & ! configure.log &
> tail -f configure.log
>
> EDIT fortran.irix5.m4 to "define FORTRAN_HAS_NO_BYTE" and
> "define(`BYTE_INT',`INTEGER')"......
>
> make all > & ! make_all.log &
> tail -f make_all.log
>
> GOT all kinds of errors from "cc -c -O -I../libsrc -DDEBUG jackets.c"...
>
> "configure.log" and "make_all.log" are pasted in below...
>
>
> John
> ====================================================================
> configure.log:
> -------------
> creating cache ./config.cache
> checking for catman... no
> checking for fill-value usage... new usage
> checking the installation prefix...
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2
> checking the installation exec-prefix...
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2
> checking for cc... cc
> checking type of operating system... irix5
> checking for ranlib... :
> checking how to run the C preprocessor... cc -E
> checking the C preprocessor... works
> checking for FORTRAN compiler... f90
> checking for C++ compiler...
> checking for yacc... yacc
> checking for neqn... neqn
> checking for tbl... tbl
> checking for ar... ar
> checking for makeinfo... no
> checking for tar flags... -chof
> checking for dependency generation mechanism... cc -M
> checking whether cross-compiling... no
> checking size of int... 4
> checking size of long... 4
> checking type of nclong... long
> checking endianess... big endian
> checking type of netlong... long
> checking type of internal netlong... long
> 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 library for xdr_getint()... 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...
> 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/ip22-irix5
> 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'
All of the above looks ok.
>
>
>
> make_all.log:
> ------------
> making `all' in directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src/port
>
>
> returning to directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src
>
>
> making `all' in directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src/xdr
>
>
> returning to directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src
>
>
> making `all' in directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src/libsrc
>
> cc -c -O -DDEBUG array.c
> cc -c -O -DDEBUG attr.c
> cc -c -O -DDEBUG cdf.c
> cc -c -O -DDEBUG dim.c
> cc -c -O -DDEBUG file.c
> cc -c -O -DDEBUG iarray.c
> cc -c -O -DDEBUG error.c
> cc -c -O -DDEBUG globdef.c
> cc -c -O -DDEBUG putget.c
> cc -c -O -DDEBUG putgetg.c
> cc -c -O -DDEBUG sharray.c
> case `uname -sv` in \
> 'AIX 3') \
> CFLAGS=`echo -O | sed 's/-O[23]//g;s/-O//g'`; \
> cc -c $CFLAGS -DDEBUG string.c; \
> ;; \
> *) \
> cc -c -O -DDEBUG string.c; \
> ;; \
> esac
> cc -c -O -DDEBUG var.c
> cc -c -O -DDEBUG 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
> s - creating archive symbol table. Wait...
> s - done
> case "" in \
> '') ;; \
> *) ar rucv libnetcdf.a ;; \
> esac
> : libnetcdf.a
>
> returning to directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src
>
>
> making `all' in directory
> /local/home/unidata.ucar.edu/pub/netcdf/netcdf-2.4.2/src/fortran
>
> ./fortc -L . -O irix5 common.inc > netcdf.inc
> ./fortc -L . -O irix5 jackets.src > jackets.c
> cc -c -O -I../libsrc -DDEBUG jackets.c
> cfe: Error: jackets.c, line 35: Syntax Error
> extern int ncopts;
> -----------------^
Hmmm... Looks like you'd better send me the file `fortran/jackets.c' so
I can see what happened. It's hard to imagine the above line having a
syntax error.
--------
Steve Emmerson <address@hidden>