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

20030709: 64-bit applicationof netcdf



>From: Bijoy Thompson <address@hidden>
>Organization: IITM
>Keywords: 200307091121.h69BLSLd006867 netCDF 3.5.0 IRIX -64

Bijoy,

>I have been running MOM4 in a 64bit SGI Octane IRIX 64 -6.5.
>I have created the netcdf library with the following flags.
>
>setenv CC "/bin/cc  -64"
>setenv CPPFLAGS " -DNDEBUG"
>setenv CFFLAGS "-O"
>setenv FC "/bin/f90 -64"
>setenv FFLAGS "-O"
>setenv F90 "/bin/f90 -64"
>setenv CXX "/bin/CC -64"
>setenv CXXFLAGS "-O"
>
>Netcdf was installed successfully however when we compiled the model the
>following fatal error
>
>ld64: FATAL   12 : Expecting 64-bit objects:
>/usr/people/guest/netcdf-3.5.0/lib/libnetcdf.a is 32-bit.
>
>The compilation flag used for compiling the model was
>"
>FFLAGS = -d8 -64 -i4 -r8 -mips4 -O2 -OPT:Olimit=0 -woff1670
>"

What was the line used to link against the netCDF library?

>I amsending the  files configre.log, make.log and install.log  .
>please help me to overcome this.

I just built netCDF 3.5.0 on our IRIX65 6.5 system using the same
flags that you have defined above.  After the installation step
I verified that the library that was installed in our netcdf-3.5.0/lib
directory is composed of 64-bit objects:

% cd ~/netcdf-3.5.0/lib
% file libnetcdf.a
libnetcdf.a:    current ar archive containing 64-bit objects

What does 'file' say about your libnetcdf.a library?

If 'file libnetcdf.a' indicates that the library is composed of
64 bit objects, then the problem is something outside of the
netCDF package.   If 'file libnetcdf.a' indicates that the library
is composed of 32-bit objects, then I would guess that the library
you are looking at is not the one that should have been created by
the netCDF build as you list below.

>Thanks in advance
>bijoy
>
>--------------678B1C6A9BAAA55822EFE900
>Content-Type: text/plain; charset=us-ascii;
> name="configure.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="configure.log"
>
>creating cache ./config.cache
>checking for top-level source-directory
>/usr/people/guest/netcdf-3.5.0/src
>checking for m4 preprocessor
>checking for m4... m4
>checking m4 flags... -B10000
>checking C compiler "/bin/cc  -64"... works
>checking how to make dependencies... cc -M
>checking for /bin/CC... /bin/CC -64
>checking C++ compiler "/bin/CC -64"... works
>checking how to run the C preprocessor... /bin/cc  -64 -E
>checking user-defined Fortran-77 compiler "/bin/f90 -64"... works
>checking for Fortran .F compiler... 
>checking if Fortran-77 compiler handles *.F files... no
>checking for Fortran preprocessor... /bin/cc  -64 -E
>checking user-defined Fortran-90 compiler "/bin/f90 -64"... works
>checking for nm utility
>checking for nm... nm
>checking nm flags... 
>checking for C-equivalent to Fortran routine "SUB"... sub_
>checking for Fortran "byte"... no
>checking for Fortran "integer*1"... yes
>checking for Fortran "integer*2"... yes
>checking if Fortran "integer*1" is C "signed char"... yes
>checking if Fortran "integer*1" is C "short"... no
>checking if Fortran "integer*1" is C "int"... no
>checking if Fortran "integer*1" 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"... integer*1
>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... :
>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... yes
>checking whether byte ordering is bigendian... yes
>checking size of short... 2
>checking size of int... 4
>checking size of long... 8
>checking size of float... 4
>checking size of double... 8
>checking size of off_t... 8
>checking size of size_t... 8
>checking for manual-page index command... /usr/lib/makewhatis -M $(MANDIR) $(M
> ANDIR)/whatis
>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
>
>--------------678B1C6A9BAAA55822EFE900
>Content-Type: text/plain; charset=us-ascii;
> name="make.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="make.log"
>
>
>Making `all' in directory /usr/people/guest/netcdf-3.5.0/src/libsrc
>
>       /bin/cc  -64 -c -O -I.   -DNDEBUG attr.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG dim.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG error.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG -DVERSION=`cat ../VERSION` libvers.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG nc.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG ncio.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG ncx.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG putget.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG string.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG v1hpg.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG v2i.c
>       /bin/cc  -64 -c -O -I.   -DNDEBUG var.c
>       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
>       : libnetcdf.a
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `all' in directory /usr/people/guest/netcdf-3.5.0/src/fortran
>
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-attio.c
        /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-control.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-dim.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-genatt.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-geninq.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-genvar.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-lib.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-misc.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-v2compat.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-vario.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-var1io.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-varaio.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-varmio.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG fort-varsio.c
>       ar cru ../libsrc/libnetcdf.a fort-attio.o        fort-control.o  fort-d
> im.o   fort-genatt.o   fort-geninq.o   fort-genvar.o   fort-lib.o      fort-m
> isc.o  fort-v2compat.o         fort-vario.o    fort-var1io.o   fort-varaio.o
>        fort-varmio.o   fort-varsio.o
>       : ../libsrc/libnetcdf.a
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `all' in directory /usr/people/guest/netcdf-3.5.0/src/f90
>
>       /bin/f90 -64 -c  typeSizes.f90
>       /bin/f90 -64 -c  netcdf.f90
>       ar cru ../libsrc/libnetcdf.a netcdf.o typeSizes.o
>       : ../libsrc/libnetcdf.a
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `all' in directory /usr/people/guest/netcdf-3.5.0/src/ncdump
>
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG ncdump.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG vardata.c
>       /bin/cc  -64 -c -O -I../libsrc   -DNDEBUG dumplib.c
>       /bin/cc  -64 -o ncdump -O  ncdump.o vardata.o dumplib.o ../libsrc/libne
> tcdf.a  
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `all' in directory /usr/people/guest/netcdf-3.5.0/src/ncgen
>
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG main.c
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG load.c
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG ncgentab.c
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG escapes.c
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG getfill.c
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG init.c
>       /bin/cc  -64 -c -O -I../libsrc -I.   -DNDEBUG genlib.c
>       /bin/cc  -64 -o ncgen -O  main.o load.o ncgentab.o escapes.o  getfill.o
>  init.o genlib.o ../libsrc/libnetcdf.a  
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `all' in directory /usr/people/guest/netcdf-3.5.0/src/cxx
>
>       /bin/CC -64 -c -O -I../libsrc -I.   -DNDEBUG netcdf.cpp
>       /bin/CC -64 -c -O -I../libsrc -I.   -DNDEBUG ncvalues.cpp
>       ar cru libnetcdf_c++.a netcdf.o ncvalues.o
>       : libnetcdf_c++.a
>       /bin/CC -64 -c -O -I../libsrc -I.   -DNDEBUG nctst.cpp
>       /bin/CC -64 -o nctst -O  nctst.o libnetcdf_c++.a -L../libsrc -lnetcdf 
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>--------------678B1C6A9BAAA55822EFE900
>Content-Type: text/plain; charset=us-ascii;
> name="install.log"
>Content-Transfer-Encoding: 7bit
>Content-Disposition: inline;
> filename="install.log"
>
>
>Making `install' in directory /usr/people/guest/netcdf-3.5.0/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
>       : libnetcdf.a
>       cp libnetcdf.a /usr/people/guest/netcdf-3.5.0/lib/libnetcdf.a
>       test -d /usr/people/guest/netcdf-3.5.0/man/man3 || mkdir /usr/people/gu
> est/netcdf-3.5.0/man/man3
>       cp netcdf.3 /usr/people/guest/netcdf-3.5.0/man/man3/netcdf.3
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `install' in directory /usr/people/guest/netcdf-3.5.0/src/fortran
>
>       test -d /usr/people/guest/netcdf-3.5.0/man/man3 || mkdir /usr/people/gu
> est/netcdf-3.5.0/man/man3
>       cp netcdf.3f /usr/people/guest/netcdf-3.5.0/man/man3/netcdf.3f
>       test -d /usr/people/guest/netcdf-3.5.0/man/man3f || mkdir /usr/people/g
> uest/netcdf-3.5.0/man/man3f
>       rm -f /usr/people/guest/netcdf-3.5.0/man/man3f/netcdf.3f
>       ln -s /usr/people/guest/netcdf-3.5.0/man/man3/netcdf.3f /usr/people/gue
> st/netcdf-3.5.0/man/man3f/netcdf.3f
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `install' in directory /usr/people/guest/netcdf-3.5.0/src/f90
>
>       cp NETCDF.mod /usr/people/guest/netcdf-3.5.0/include/NETCDF.mod
>       test -d /usr/people/guest/netcdf-3.5.0/man/man3 || mkdir /usr/people/gu
> est/netcdf-3.5.0/man/man3
>       cp netcdf.3f90 /usr/people/guest/netcdf-3.5.0/man/man3/netcdf.3f90
>       test -d /usr/people/guest/netcdf-3.5.0/man/man3f90 || mkdir /usr/people
> /guest/netcdf-3.5.0/man/man3f90
>       rm -f /usr/people/guest/netcdf-3.5.0/man/man3f90/netcdf.3f90
>       ln -s /usr/people/guest/netcdf-3.5.0/man/man3/netcdf.3f90 /usr/people/g
> uest/netcdf-3.5.0/man/man3f90/netcdf.3f90
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `install' in directory /usr/people/guest/netcdf-3.5.0/src/ncdump
>
>       cp ncdump /usr/people/guest/netcdf-3.5.0/bin/ncdump
>       test -d /usr/people/guest/netcdf-3.5.0/man/man1 || mkdir /usr/people/gu
> est/netcdf-3.5.0/man/man1
>       cp ncdump.1 /usr/people/guest/netcdf-3.5.0/man/man1/ncdump.1
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `install' in directory /usr/people/guest/netcdf-3.5.0/src/ncgen
>
>       cp ncgen /usr/people/guest/netcdf-3.5.0/bin/ncgen
>       test -d /usr/people/guest/netcdf-3.5.0/man/man1 || mkdir /usr/people/gu
> est/netcdf-3.5.0/man/man1
>       cp ncgen.1 /usr/people/guest/netcdf-3.5.0/man/man1/ncgen.1
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>Making `install' in directory /usr/people/guest/netcdf-3.5.0/src/cxx
>
>       ar cru libnetcdf_c++.a netcdf.o ncvalues.o
>       : libnetcdf_c++.a
>       cp libnetcdf_c++.a /usr/people/guest/netcdf-3.5.0/lib/libnetcdf_c++.a
>
>Returning to directory /usr/people/guest/netcdf-3.5.0/src
>
>
>--------------678B1C6A9BAAA55822EFE900--
>

Tom Yoksas