[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wrong libstdc++ picked
From: |
Vishal Soni-G20083 |
Subject: |
Wrong libstdc++ picked |
Date: |
Wed, 25 Apr 2007 21:14:43 +0800 |
Hi
This is the typical
problem faced by many users, but I'm unable to find concrete answer to the
problem on the forum.
I'm using latest
autotools for building my package. Version of tools are given
below.
autoconf-2.60
automake-1.10
libtool-1.5.22
I have cross-compile
tool chain provided by third-party (MVL), executables of which is placed at
location /opt/montavista/cge/devkit/ppc/74xx/bin/ and all cross compiled
libraries at /opt/montavista/cge/devkit/ppc/target/lib. I have exported
following option to configure as well as make.
AR=ppc_74xx-ar
AS=ppc_74xx-as
CC=ppc_74xx-gcc
CPP=ppc_74xx-cpp
CXX=ppc_74xx-g++
LD=ppc_74xx-ld
LDFLAGS="-L/opt/montavista/cge/devkit/ppc/74xx/target/usr/lib"
CXXCPP="ppc_74xx-g++
-E"
RANLIB=ppc_74xx-ranlib
But still at one
point of time I'm getting libtool is picking libstdc++ from /usr/lib instead of
the path provided with "-L".
Can anyone tell
whether its still a bug with libtool or I'm missing
something.
############################################
(-snip)
/bin/sh
../../libtool --tag=CC --mode=link
/opt/montavista/cge/devkit/ppc/74xx/powerpc-montavista-linux/bin/gcc
-g -O2 -lxerces-c
-L/opt/montavista/cge/devkit/ppc/74xx/target/usr/lib -o
ncs_scap ncs_scap-ncs_main_pvt.o ../../lib/lib_ncs_core/libncs_core.la
../../lib/lib_SaEvt/libSaEvt.la
../common/libsaf_common.la ./common/libavsv_common.la
../mab/mac/libmaa.la ../srmsv/srma/libsrma.la
../mbcsv/src/libmbca.la ../hisv/hpl/libhpl.la ./avd/libavd.la
./avnd/libavnd.la ./avm/libavm.la
../../services/bam/libbam.la
/opt/montavista/cge/devkit/ppc/74xx/powerpc-montavista-linux/bin/gcc -g
-O2 -o .libs/ncs_scap ncs_scap-ncs_main_pvt.o -lxerces-c
-L/opt/montavista/cge/devkit/ppc/74xx/target/usr/lib
../../lib/lib_ncs_core/.libs/libncs_core.so -lpthread -ldl -lrt
../../lib/lib_SaEvt/.libs/libSaEvt.so
/vishal/opensaf/services/common/.libs/libsaf_common.so
/vishal/opensaf/services/edsv/common/.libs/libedsv_common.so
../common/.libs/libsaf_common.so
./common/.libs/libavsv_common.so ../mab/mac/.libs/libmaa.so
../srmsv/srma/.libs/libsrma.so ../mbcsv/src/.libs/libmbca.so
../hisv/hpl/.libs/libhpl.so ./avd/.libs/libavd.a ./avnd/.libs/libavnd.a
./avm/.libs/libavm.a /vishal/opensaf/services/rde/rda/.libs/librda.so
../../services/bam/.libs/libbam.a /usr/lib/libstdc++.so -lc -lgcc_s -lm
-Wl,--rpath -Wl,/vishal/opensaf/targets/linux-x86/lib
/usr/lib/libstdc++.so: could not read symbols: File in wrong
format
collect2: ld returned 1 exit status
make[4]: *** [ncs_scap] Error
1
make[4]: Leaving directory `/vishal/opensaf/services/avsv'
make[3]: ***
[all-recursive] Error 1
make[3]: Leaving directory
`/vishal/opensaf/services/avsv'
make[2]: *** [all-recursive] Error
1
make[2]: Leaving directory `/vishal/opensaf/services'
make[1]: ***
[all-recursive] Error 1
make[1]: Leaving directory `/vishal/opensaf'
make:
*** [all] Error
2
##############################################
Thanks
Vishal
Soni.
- Wrong libstdc++ picked,
Vishal Soni-G20083 <=