[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20030904:Compilation of netCDF 64-bit
- Subject: Re: 20030904:Compilation of netCDF 64-bit
- Date: Thu, 04 Sep 2003 15:05:35 -0600
>To: address@hidden
>From: =?iso-8859-1?B?QWx2YXJvIFNhaW5lcm8gTWFydO1u?= <address@hidden>
>Subject: Compilation of netCDF
>Organization: UCAR/Unidata
>Keywords: 200309041121.h84BLrLd016590
Hi,
> I'm trying to compile netCDF for HP-UX B.11.11 9000/800 in 64 bit mode.
>
> I'm using the configuration parametres you provide:
>
> CC=/bin/cc
> CPPFLAGS='-D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64' # large file support
> # might work without it
> CFLAGS=+DD64 # 64-bit mode
> FC=/opt/fortran90/bin/f90 # Fortran-90 compiler
> FFLAGS='-w +DA2.0W +noppu' # 64-bit mode, no "_" suffixes
> FLIBS=-lU77
> CXX= # C++ doesn't support 64-bit mode
>
> Nevertheless I get a fatal error.
>
> My compilation process ends as follows:
>
> /bin/cc -c +DD64 -I../libsrc -D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64 ncdump.c
> /bin/cc -c +DD64 -I../libsrc -D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64
> vardata.c
> /bin/cc -c +DD64 -I../libsrc -D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64
> dumplib.c
> /bin/cc -o ncdump +DD64 ncdump.o vardata.o dumplib.o
> ../libsrc/libnetcdf.a
> ld: Unknown input file type: "../libsrc/libnetcdf.a"
> Fatal error.
> *** Error exit code 1
Sorry, but I can't duplicate the problem on our HP-UX B.11.00 E
9000/785 system with our older compilers. Since the ncdump problem
has nothing to do with the Fortran or C++ interfaces for netCDF, I
didn't build those, but just used:
CC=/opt/ansic/bin/c89
CPPFLAGS='-D_HPUX_SOURCE -D_FILE_OFFSET_BITS=64'
CFLAGS=+DD64
FC=''
FFLAGS=-w
F90=''
CXX=''
and everything worked fine, including "make all" and "make test". In
particular, building ncdump worked OK:
Making `all' in directory /home/russ/netcdf/build/tweety-64o/src/ncdump
/opt/ansic/bin/c89 -c +DD64 -I../libsrc -D_HPUX_SOURCE
-D_FILE_OFFSET_BITS=64 ncdump.c
/opt/ansic/bin/c89 -c +DD64 -I../libsrc -D_HPUX_SOURCE
-D_FILE_OFFSET_BITS=64 vardata.c
/opt/ansic/bin/c89 -c +DD64 -I../libsrc -D_HPUX_SOURCE
-D_FILE_OFFSET_BITS=64 dumplib.c
/opt/ansic/bin/c89 -o ncdump +DD64 ncdump.o vardata.o dumplib.o
../libsrc/libnetcdf.a
So if the problem is specific to a newer version of HP-UX or newer
versions of the compilers, I'm not sure how to diagnose it, since I
can't duplicate the problem. I'm investigating if we can get access
to a more up-to-date HP-UX platform, but if not, you may have to join
and ask about the problem on the address@hidden mailing
list.
Alternatively, since the error message you got said
Unknown input file type: "../libsrc/libnetcdf.a"
for what should have been a sinple static library, you could check to
make sure the file libsrc/libnetcdf.a didn't get corrupted or
truncated by something else while you were building ...
--Russ
_____________________________________________________________________
Russ Rew UCAR Unidata Program
address@hidden http://my.unidata.ucar.edu