libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

libstdc++.la listed in dependency_libs of a static C++ library?


From: Benoit Sigoure
Subject: libstdc++.la listed in dependency_libs of a static C++ library?
Date: Tue, 03 Apr 2007 16:19:25 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.0.2)

Hello list,

I'm posting this message here but I'm not sure whether this is really related to
libtool or to the way GCC was compiled.  I am using a cross compiler for
arm-linux distributed by ELDK (Embedded Linux Development Kit --
http://www.denx.de/wiki/DULG/ELDK).  With this compiler, I first compile an
interpreter which is exported in a static archive (called the `libkernel')
which is built by libtool.  Then I compile a main and link it with libkernel.la
but it fails in a very strange fashion:

[Compilation of the libkernel]
/bin/sh ../libtool --tag=CXX   --mode=link arm-linux-g++ [losts of -Warning
flags] -pthread -g -O2 -pipe -static  -o libkernel.la -rpath
/home/build/built/kernel1-stable_cross_arm_eldk/gostai/kernel/arm-linux/korebot
[lots of .lo files]
libtool: link: warning: library
`/usr/local/stow/eldk/usr/../arm/lib//libstdc++.la' was moved.
rm -fr  .libs/libkernel.a .libs/libkernel.la
arm-linux-ar cru .libs/libkernel.a  [lots of .o files]
arm-linux-ranlib .libs/libkernel.a
creating libkernel.la
(cd .libs && rm -f libkernel.la && ln -s ../libkernel.la libkernel.la)

Of course, the file `/usr/local/stow/eldk/usr/../arm/lib//libstdc++.la' exists.
Here is its content:
http://www.tsunanet.net/~tsuna/eldk-libtool-problem/libstdc++.la

Then later:
[compilation of the main]
arm-linux-g++ -DHAVE_CONFIG_H   [-Is and -Ws] -g -O2 -pipe -MT
urbi_server-urbi-server.o -MD -MP -MF .deps/urbi_server-urbi-server.Tpo -c -o
urbi_server-urbi-server.o `test -f 'urbi-server.cc' || echo './'`urbi-server.cc
mv -f .deps/urbi_server-urbi-server.Tpo .deps/urbi_server-urbi-server.Po
/bin/sh ../libtool --tag=CXX   --mode=link arm-linux-g++ -pthread [-Ws] -g -O2
-pipe   -o urbi-server urbi_server-urbi-server.o
/home/build/built/kernel1-stable_cross_arm_eldk/gostai/kernel/arm-linux/korebot/libkernel.la
libtool: link: cannot find the library
`/var/tmp/eldk.UGQAEj/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux/lib/libstdc++.la'
or unhandled argument
`/var/tmp/eldk.UGQAEj/usr/crosstool/gcc-4.0.0-glibc-2.3.5-eldk/arm-linux/arm-linux/lib/libstdc++.la'

and then the build fails.  Any idea?  Is it libtool? Me? ELDK?

libkernel.la: http://www.tsunanet.net/~tsuna/eldk-libtool-problem/libkernel.la
libtool --config:
http://www.tsunanet.net/~tsuna/eldk-libtool-problem/libtool.config

Thanks.

-- 
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory





reply via email to

[Prev in Thread] Current Thread [Next in Thread]