[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] listed in dependency_libs of a static C++ library?

From: Benoit Sigoure
Subject: 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 --  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
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 -rpath
[lots of .lo files]
libtool: link: warning: library
`/usr/local/stow/eldk/usr/../arm/lib//' was moved.
rm -fr  .libs/libkernel.a .libs/
arm-linux-ar cru .libs/libkernel.a  [lots of .o files]
arm-linux-ranlib .libs/libkernel.a
(cd .libs && rm -f && ln -s ../

Of course, the file `/usr/local/stow/eldk/usr/../arm/lib//' exists.
Here is its content:

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 '' || echo './'`
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
libtool: link: cannot find the library
or unhandled argument

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


Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory

reply via email to

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