* Library netcdf.a problems when built with GNU gcc
@ 1999-02-15 17:00 Lew Randerson
0 siblings, 0 replies; only message in thread
From: Lew Randerson @ 1999-02-15 17:00 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-02-15 17:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-15 17:00 Library netcdf.a problems when built with GNU gcc Lew Randerson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox