ltib
[Top][All Lists]
Advanced

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

RE: [Ltib] Building xorg-server; missing dependencies?


From: Alexandre Paradis
Subject: RE: [Ltib] Building xorg-server; missing dependencies?
Date: Thu, 5 Mar 2009 13:58:23 -0500

Do we need to adjust some paths?  I can't reproduce the failure inside
the ltib shell with the gcc command below:

LTIB> gcc -shared  .libs/evas_engine.o .libs/evas_outbuf.o
.libs/evas_x_buffer.o .libs/evas_x_color.o .libs/evas_x_main.o
-Wl,--rpath
-Wl,/home/alex/savannah/ltib/rpm/BUILD/evas-0.9.9.050/src/lib/.libs
-L/usr/X11R6/lib /usr/lib/libX11.so /usr/lib/libXext.so
../../../../src/lib/.libs/libevas.so  -Wl,-soname -Wl,module.so -o
.libs/module.so
powerpc-e300c3-linux-gnu-gcc -B
/home/alex/savannah/ltib/rootfs/usr/lib// -idirafter
/home/alex/savannah/ltib/rootfs/usr/include -iwithprefixbefore include
-Wl,-rpath-link,/home/alex/savannah/ltib/rootfs/lib:/home/alex/savannah/
ltib/rootfs/usr/lib -shared .libs/evas_engine.o .libs/evas_outbuf.o
.libs/evas_x_buffer.o .libs/evas_x_color.o .libs/evas_x_main.o
-Wl,--rpath
-Wl,/home/alex/savannah/ltib/rpm/BUILD/evas-0.9.9.050/src/lib/.libs
-L/usr/X11R6/lib /usr/lib/libX11.so /usr/lib/libXext.so
../../../../src/lib/.libs/libevas.so -Wl,-soname -Wl,module.so -o
.libs/module.so
powerpc-e300c3-linux-gnu-gcc: .libs/evas_engine.o: No such file or
directory
powerpc-e300c3-linux-gnu-gcc: .libs/evas_outbuf.o: No such file or
directory
powerpc-e300c3-linux-gnu-gcc: .libs/evas_x_buffer.o: No such file or
directory
powerpc-e300c3-linux-gnu-gcc: .libs/evas_x_color.o: No such file or
directory
powerpc-e300c3-linux-gnu-gcc: .libs/evas_x_main.o: No such file or
directory
powerpc-e300c3-linux-gnu-gcc: ../../../../src/lib/.libs/libevas.so: No
such file or directory


-----Original Message-----
From: Stuart Hughes [mailto:address@hidden 
Sent: March 5, 2009 1:37 PM
To: Alexandre Paradis
Cc: ltibext
Subject: RE: [Ltib] Building xorg-server; missing dependencies?

Hi Alex,

This really has me scratching my head now.  I just checked and I'm
building the same platform, and my toolchain is the same one.

Aside from you being on Gentoo (and I don't see how that is a factor), I
don't really see why we are getting different build results?

In your build, the telling thing to me, which must first be eliminated
is the presence of the absolute link references to: /usr/lib/libX11.so
etc.  If you can go back to a failure situation again and then do:

$ ./ltib -m shell
$ export FS_DEBUG=1
> cd rpm/BUILD/evas*
> gcc
-shared  .libs/evas_engine.o .libs/evas_outbuf.o .libs/evas_x_buffer.o
.libs/evas_x_color.o .libs/evas_x_main.o  -Wl,--rpath
-Wl,/home/alex/savannah/ltib/rpm/BUILD/evas-0.9.9.050/src/lib/.libs
-L/usr/X11R6/lib /usr/lib/libX11.so /usr/lib/libXext.so
../../../../src/lib/.libs/libevas.so  -Wl,-soname -Wl,module.so -o
.libs/module.so

this should fail as before, then try as (no abs link refs):
> gcc
-shared  .libs/evas_engine.o .libs/evas_outbuf.o .libs/evas_x_buffer.o
.libs/evas_x_color.o .libs/evas_x_main.o  -Wl,--rpath
-Wl,/home/alex/savannah/ltib/rpm/BUILD/evas-0.9.9.050/src/lib/.libs 
-L/usr/X11R6/lib -lX11 -lXext ../../../../src/lib/.libs/libevas.so
-Wl,-soname -Wl,module.so -o .libs/module.so

Maybe this will work??? anyhow both those gcc commands are all on one
line (the emailer will wrap).

Regards, Stuart


On Thu, 2009-03-05 at 12:48 -0500, Alexandre Paradis wrote:
> Hi,
> 
> The platform is mpc5121ads.
> 
> GCC info:
> 
> LTIB> gcc -v
> Using built-in specs.
> Target: powerpc-e300c3-linux-gnu
> Configured with: ../gcc-4.1/configure
--target=powerpc-e300c3-linux-gnu --host=i686-pc-linux-gnu
--prefix=/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e30
0c3-linux-gnu
--with-sysroot=/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/power
pc-e300c3-linux-gnu/powerpc-e300c3-linux-gnu/libc --disable-libssp
--disable-libgomp --disable-libmudflap --enable-shared --enable-threads
--enable-languages=c,c++ --disable-nls --with-cpu=e300c3
--enable-__cxa_atexit --enable-cxx-flags=-mcpu=e300c3 --disable-multilib
--disable-libstdcxx-pch --with-long-double-128
> Thread model: posix
> gcc version 4.1.2
> 
> Thanks,
> 
> --
> Alex
> 
> -----Original Message-----
> From: Stuart Hughes [mailto:address@hidden 
> Sent: March 5, 2009 12:34 PM 
> To: Alexandre Paradis
> Cc: address@hidden
> Subject: RE: [Ltib] Building xorg-server; missing dependencies?
> 
> Hi Alex,
> 
> At least I can explain why mine skip the host libs in /usr/ and yours
> don't.  I've seen this before and it happens because of toolchain
> versions.  Older ones (mine) skip and later ones croak.
> 
> Can you find out which gcc your using (to save me trawling back, can
you
> remind me which platform this is and send me your
> config/platform/_target_/.config).  I'll then try to re-produce and
fix
> the build (properly).
> 
> Regards, Stuart
> 
> On Thu, 2009-03-05 at 10:49 -0500, Alexandre Paradis wrote:
> > Hi Stuart,
> > 
> > I've been looking at your build log to see exactly why mine is
failing, and I made an interesting find:
> > 
> > (from your evas build output)
> > gcc -shared  .libs/evas_engine.o .libs/evas_outbuf.o
.libs/evas_x_buffer.o .libs/evas_x_color.o .libs/evas_x_main.o
-Wl,--rpath
-Wl,/home/seh/ltib_bsps/savannah_ltib/rpm/BUILD/evas-0.9.9.050/src/lib/.
libs -L/usr/X11R6/lib -lX11 -lXext ../../../../src/lib/.libs/libevas.so
-Wl,-soname -Wl,module.so -o .libs/module.so
> >
/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux
-gnu/lib/gcc/powerpc-e300c3-linux-gnu/4.1.2/../../../../powerpc-e300c3-l
inux-gnu/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.so when
searching for -lX11
> >
/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux
-gnu/lib/gcc/powerpc-e300c3-linux-gnu/4.1.2/../../../../powerpc-e300c3-l
inux-gnu/bin/ld: skipping incompatible /usr/X11R6/lib/libX11.a when
searching for -lX11
> >
/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux
-gnu/lib/gcc/powerpc-e300c3-linux-gnu/4.1.2/../../../../powerpc-e300c3-l
inux-gnu/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.so when
searching for -lXext
> >
/opt/freescale/usr/local/gcc-4.1.78-eglibc-2.5.78-1/powerpc-e300c3-linux
-gnu/lib/gcc/powerpc-e300c3-linux-gnu/4.1.2/../../../../powerpc-e300c3-l
inux-gnu/bin/ld: skipping incompatible /usr/X11R6/lib/libXext.a when
searching for -lXext
> > (end output)
> > 
> > Your "ld" commands seems to skip the X11 libraries since it they're
not for powerpc, as opposed to mine which still tries to use them. Would
this mean that it is first searching the libs on the host, then on your
host you also have the path roots/usr/X11R6/lib/ which "ld" would look
into and find the correct libs?
> > 
> > What boggles me the most is why are they skipped on your system and
used on mine..
> > 
> > Alex






reply via email to

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