[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #LIK-158812]: Error report
- Subject: [netCDF #LIK-158812]: Error report
- Date: Tue, 29 Jun 2010 15:42:06 -0600
Hi Alexandre,
Sorry to have taken so long to respond to your question.
> I tried to install GMT and this is the error message I got:
>
> ibtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> string.lo -MD -MP -MF .deps/string.Tpo -c string.c -fPIC -DPIC -o
> .libs/string.o
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> string.lo -MD -MP -MF .deps/string.Tpo -c string.c -o string.o
> >/dev/null 2>&1
> depbase=`echo v1hpg.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /usr/bin/sh ../libtool --tag=CC --mode=compile cc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT v1hpg.lo -MD -MP
> -MF $depbase.Tpo -c -o v1hpg.lo v1hpg.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> v1hpg.lo -MD -MP -MF .deps/v1hpg.Tpo -c v1hpg.c -fPIC -DPIC -o
> .libs/v1hpg.o
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> v1hpg.lo -MD -MP -MF .deps/v1hpg.Tpo -c v1hpg.c -o v1hpg.o >/dev/null 2>&1
> depbase=`echo var.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /usr/bin/sh ../libtool --tag=CC --mode=compile cc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT var.lo -MD -MP
> -MF $depbase.Tpo -c -o var.lo var.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> var.lo -MD -MP -MF .deps/var.Tpo -c var.c -fPIC -DPIC -o .libs/var.o
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> var.lo -MD -MP -MF .deps/var.Tpo -c var.c -o var.o >/dev/null 2>&1
> depbase=`echo utf8proc.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /usr/bin/sh ../libtool --tag=CC --mode=compile cc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT utf8proc.lo -MD
> -MP -MF $depbase.Tpo -c -o utf8proc.lo utf8proc.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> utf8proc.lo -MD -MP -MF .deps/utf8proc.Tpo -c utf8proc.c -fPIC -DPIC -o
> .libs/utf8proc.o
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> utf8proc.lo -MD -MP -MF .deps/utf8proc.Tpo -c utf8proc.c -o utf8proc.o
> >/dev/null 2>&1
> depbase=`echo posixio.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
> /usr/bin/sh ../libtool --tag=CC --mode=compile cc
> -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT posixio.lo -MD
> -MP -MF $depbase.Tpo -c -o posixio.lo posixio.c &&\
> mv -f $depbase.Tpo $depbase.Plo
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> posixio.lo -MD -MP -MF .deps/posixio.Tpo -c posixio.c -fPIC -DPIC -o
> .libs/posixio.o
> libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT
> posixio.lo -MD -MP -MF .deps/posixio.Tpo -c posixio.c -o posixio.o
> >/dev/null 2>&1
> /usr/bin/sh ../libtool --tag=CC --mode=link cc -g -O2
> -version-info 4:0:0 -o libnetcdf.la -rpath
> /home/SOFT/GMT4.3.1/netcdf-3.6.3/lib attr.lo ncx.lo putget.lo dim.lo
> error.lo libvers.lo nc.lo string.lo v1hpg.lo var.lo utf8proc.lo posixio.lo
> libtool: link: rm -fr .libs/libnetcdf.a .libs/libnetcdf.la
> .libs/libnetcdf.lai
> libtool: link: cc -shared .libs/attr.o .libs/ncx.o .libs/putget.o
> .libs/dim.o .libs/error.o .libs/libvers.o .libs/nc.o .libs/string.o
> .libs/v1hpg.o .libs/var.o .libs/utf8proc.o .libs/posixio.o
> -Wl,-soname -Wl,libnetcdf.so.4 -o .libs/libnetcdf.so.4.0.0
> libtool: link: (cd ".libs" && rm -f "libnetcdf.so.4" && ln -s
> "libnetcdf.so.4.0.0" "libnetcdf.so.4")
> libtool: link: (cd ".libs" && rm -f "libnetcdf.so" && ln -s
> "libnetcdf.so.4.0.0" "libnetcdf.so")
> libtool: link: ar cru .libs/libnetcdf.a attr.o ncx.o putget.o dim.o
> error.o libvers.o nc.o string.o v1hpg.o var.o utf8proc.o posixio.o
> libtool: link: ranlib .libs/libnetcdf.a
> libtool: link: ( cd ".libs" && rm -f "libnetcdf.la" && ln -s
> "../libnetcdf.la" "libnetcdf.la" )
> make t_nc
> make[3]: entrant dans le répertoire «
> /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc »
> cc -DHAVE_CONFIG_H -I. -I.. -I../fortran -g -O2 -MT t_nc-t_nc.o -MD
> -MP -MF .deps/t_nc-t_nc.Tpo -c -o t_nc-t_nc.o `test -f 't_nc.c' || echo
> './'`t_nc.c
> mv -f .deps/t_nc-t_nc.Tpo .deps/t_nc-t_nc.Po
> /usr/bin/sh ../libtool --tag=CC --mode=link cc -g -O2 -o t_nc
> t_nc-t_nc.o libnetcdf.la
> libtool: link: cc -g -O2 -o .libs/t_nc t_nc-t_nc.o ./.libs/libnetcdf.so
> -Wl,-rpath -Wl,/home/SOFT/GMT4.3.1/netcdf-3.6.3/lib
> make[3]: quittant le répertoire « /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc »
> make check-TESTS
> make[3]: entrant dans le répertoire «
> /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc »
> /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc/.libs/t_nc: error while loading
> shared libraries: libnetcdf.so.4: wrong ELF class: ELFCLASS64
> FAIL: t_nc
> =========================================
> 1 of 1 tests failed
> Please report to address@hidden
> =========================================
That error message indicates that you already have netCDF installed on
your system as a shared library, and it was built as a 64-bit library.
The linker is trying to use that 64-bit library to link a test program,
t_nc, compiled to expect a 32-bit library. You must either delete the
64-bit shared library for netCDF, or build GMT using the right compiler
options for 64-bit objects, perhaps "-m64".
--Russ
> make[3]: *** [check-TESTS] Erreur 1
> make[3]: quittant le répertoire « /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc »
> make[2]: *** [check-am] Erreur 2
> make[2]: quittant le répertoire « /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc »
> make[1]: *** [check] Erreur 2
> make[1]: quittant le répertoire « /home/SOFT/GMT4.3.1/netcdf-3.6.3/libsrc »
> make: *** [check-recursive] Erreur 1
>
>
>
>
>
> Regards,
> Alexandre Dano
>
> --
> ***************************
> Alexandre DANO
> Geoazur-UMR6526
> CNRS
> Observatoire Océanologique
> Port de la Darse
> BP 48
> 06235 Villefranche sur mer
> web: http://geoazur.oca.eu/spip.php?rubrique126
> mail: address@hidden
> Tel: +33(0)493 76 38 81
> Fax: +33(0)493 76 37 66
> ***************************
>
>
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: LIK-158812
Department: Support netCDF
Priority: High
Status: Closed