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

20030430: netCDF build problem on Linux: cfortran.h



Jiping,

>Date: Wed, 30 Apr 2003 17:51:27 -0400 (EDT)
>From: Jiping Liu <address@hidden>
>Organization: Georgia Tech
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20030430: netCDF build problem on Linux: cfortran.h 

The above message contained the following:

> Thanks. make distclean works. I changed the environment setup.
> 
> [root@jiping root]# export CC=/usr/bin/gcc
> [root@jiping root]# export CPPFLAGS=-Df2cFortran
> [root@jiping root]# export FC=/usr/bin/f77
> [root@jiping root]# export F95=/usr/bin/local/f95

The configure script uses the environment variable F90 rather than F95.
If you want the Fortran-90 interface, then you'll have to redo the build
with F90 set.

Other than that, your "configure" and "make" output look OK.  You can
either proceed to "make test" and "make install" or start over in order
to get the Fortran-90 interface as well.

Regards,
Steve Emmerson

> [root@jiping root]# export FFLAGS=-Wno-globals
> 
> configure.log:
> creating cache ./config.cache
> checking for top-level source-directory
> /usr/local/netcdf-3.5.1-beta10/src
> checking for m4 preprocessor
> checking for m4... m4
> checking m4 flags... -B10000
> checking C compiler "/usr/bin/gcc"... works
> checking how to make dependencies... false
> checking for CC... no
> checking for cxx... no
> checking for c++... c++
> checking C++ compiler "c++"... works
> checking how to run the C preprocessor... /usr/bin/gcc -E
> checking user-defined Fortran-77 compiler "/usr/bin/f77"... works
> checking for Fortran .F compiler...
> checking if Fortran-77 compiler handles *.F files... yes
> checking "/usr/bin/f77" as Fortran-90 compiler... failed to build test 
> program
> checking for xlf90... no
> checking for f90... no
> configure: warning: Could not find working Fortran-90 compiler
> configure: warning: The Fortran-90 interface will not be built
> checking for nm utility
> checking for nm... nm
> checking nm flags...
> checking for C-equivalent to Fortran routine "SUB"... sub_
> checking for Fortran "byte"... yes
> checking for Fortran "integer*2"... yes
> checking if Fortran "byte" is C "signed char"... yes
> checking if Fortran "byte" is C "short"... no
> checking if Fortran "byte" is C "int"... no
> checking if Fortran "byte" is C "long"... no
> checking if Fortran "integer*2" is C "short"... yes
> checking if Fortran "integer*2" is C "int"... no
> checking if Fortran "integer*2" is C "long"... no
> checking if Fortran "integer" is C "int"... yes
> checking if Fortran "real" is C "float"... yes
> checking if Fortran "doubleprecision" is C "double"... yes
> checking for Fortran-equivalent to netCDF "byte"... byte
> checking for Fortran-equivalent to netCDF "short"... integer*2
> checking for math library
> checking for tanh in -lc... no
> checking for tanh in -lm... yes
> checking for ar utility
> checking for ar... ar
> checking ar flags... cru
> checking for nm utility
> checking for nm... (cached) nm
> checking nm flags...
> checking for ranlib... ranlib
> checking for stdlib.h... yes
> checking for sys/types.h... yes
> checking for strerror... yes
> checking for working ftruncate()... yes
> checking for working alloca.h... yes
> checking for alloca... yes
> checking for st_blksize in struct stat... yes
> 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... yes
> checking for ptrdiff_t... yes
> checking for uchar... no
> checking whether char is unsigned... no
> checking whether byte ordering is bigendian... no
> 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 manual-page index command...
> checking binary distribution directory... 
> /home/ftp/pub/binary/dummy_system
> updating cache ./config.cache
> creating ./config.status
> creating macros.make
> udcreating fortran/nfconfig.inc
> creating libsrc/ncconfig.h
> 
> There is libsrc/ncconfih.h.
> 
> make.log:
> make[1]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src'
> 
> Making `all' in directory /usr/local/netcdf-3.5.1-beta10/src/libsrc
> 
> make[2]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src/libsrc'
> 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
> make[2]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src/libsrc'
> 
> Returning to directory /usr/local/netcdf-3.5.1-beta10/src
> 
> make[1]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src'
> make[1]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src'
> 
> Making `all' in directory /usr/local/netcdf-3.5.1-beta10/src/fortran
> 
> make[2]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src/fortran'
> ar cru ../libsrc/libnetcdf.a fort-attio.o fort-control.o fort-dim.o 
> fort-genatt.o fort-geninq.o fort-genvar.o fort-lib.o fort-misc.o 
> fort-v2compat.o fort-vario.o fort-var1io.o fort-varaio.o fort-varmio.o 
> fort-varsio.o
> ranlib ../libsrc/libnetcdf.a
> make[2]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src/fortran'
> 
> Returning to directory /usr/local/netcdf-3.5.1-beta10/src
> 
> make[1]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src'
> Not making `f90/all' because no FORTRAN-90 compiler
> make[1]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src'
> 
> Making `all' in directory /usr/local/netcdf-3.5.1-beta10/src/ncdump
> 
> make[2]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src/ncdump'
> /usr/bin/gcc -o ncdump -O  ncdump.o vardata.o dumplib.o 
> ../libsrc/libnetcdf.a
> make[2]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src/ncdump'
> 
> Returning to directory /usr/local/netcdf-3.5.1-beta10/src
> 
> make[1]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src'
> make[1]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src'
> 
> Making `all' in directory /usr/local/netcdf-3.5.1-beta10/src/ncgen
> 
> make[2]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src/ncgen'
> /usr/bin/gcc -o ncgen -O  main.o load.o ncgentab.o escapes.o getfill.o 
> init.o genlib.o ../libsrc/libnetcdf.a
> make[2]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src/ncgen'
> 
> Returning to directory /usr/local/netcdf-3.5.1-beta10/src
> 
> make[1]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src'
> make[1]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src'
> 
> Making `all' in directory /usr/local/netcdf-3.5.1-beta10/src/cxx
> 
> make[2]: Entering directory `/usr/local/netcdf-3.5.1-beta10/src/cxx'
> ar cru libnetcdf_c++.a netcdf.o ncvalues.o
> ranlib libnetcdf_c++.a
> c++ -o nctst   nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf
> make[2]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src/cxx'
> 
> Returning to directory /usr/local/netcdf-3.5.1-beta10/src
> 
> make[1]: Leaving directory `/usr/local/netcdf-3.5.1-beta10/src'