tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Lew Randerson <LRanderson () Pppl ! GOV>
To: tru64-unix-managers
Subject: Library netcdf.a problems when built with GNU gcc
Date: Mon, 15 Feb 1999 17:00:19 +0000	[thread overview]
Message-ID: <96079036515684.tru64-unix-managers.marc@archive.invalid> (raw)

This concerns the netcdf library distributed by=20
unidata.ucar.aedu:pub/ncar when built with GNU gcc


When linking against library netcd, built with GNU gcc, using Digital
f77 and ld in debug mode we get the following load time error message

=3D=3D=3D=3D Here's the error message
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ /bin/f77 -g foo.f -L/scratch/randerso/lib -lnetcdf
ld:
Object file format error in: /scratch/randerso/lib/libnetcdf.a(nc.o):
local_is_complete: iaux(82) > iauxMax(80) for obj
/scratch/randerso/lib/libnetcdf.a(nc.o)
fort: Severe: Failed while trying to link.


=3D=3D=3D=3D Here's the relevant version numbers=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Operating system is DU V4.0D
Fortran compiler is DIGITAL Fortran 77 V5.1-156-3882K
Loader is /usr/ucb/ld version 3.11
Gcc compiler is gcc version 2.7.2.3
netcdf version is 3.4


=3D=3D=3D=3D Here's the netcdf Build commands
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ cd /scratch/netcdf-3.4/src
$ CPPFLAGS=3D-DNDEBUG CC=3Dgcc CFLAGS=3D-O FC=3Df77 FFLAGS=3D-O CXX=3Dc++=
 ./configure
--prefix=3D/scratch/randerso
$ /bin/make
$ /bin/make test
$ /bin/make install


=3D=3D=3D=3D Here's the source that made the error
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
$ cd ~/TestFORTRAN/Karney_001
$ cat foo.f
=A0=A0=A0=A0=A0 call nf_open
=A0=A0=A0=A0=A0 end
$ /bin/f77 -g foo.f -L/scratch/randerso/lib -lnetcdf
ld:
Object file format error in: /scratch/randerso/lib/libnetcdf.a(nc.o):
local_is_complete: iaux(82) > iauxMax(80) for obj
/scratch/randerso/lib/libnetcdf.a(nc.o)
fort: Severe: Failed while trying to link.



There's no link problems if the library is built with DU cc

Thanks in advance for any help
--Lew
lranderson@pppl.gov

                 reply	other threads:[~1999-02-15 17:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox