Gentoo Archives: gentoo-embedded

From: "Peter S. Mazinger" <ps.m@×××.net>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Problem cross compiling modular X
Date: Mon, 28 Aug 2006 06:53:26
Message-Id: Pine.LNX.4.44.0608280850480.20464-100000@lnx.bridge.intra
In Reply to: Re: [gentoo-embedded] Problem cross compiling modular X by Leonardo Shiguemi Dinnouti
1 On Thu, 24 Aug 2006, Leonardo Shiguemi Dinnouti wrote:
2
3 > Hi,
4 >
5 > I've changed the ebuild (libX11-1.0.3.ebuild) in the following lines:
6 >
7 > IUSE="ipv6 malloc0returnsnull"
8 > CONFIGURE_OPTIONS="$(use_enable ipv6 malloc0returnsnull)"
9 >
10 > and emerged with:
11 >
12 > USE="ipv6 -malloc0returnsnull" emerge xorg-x11
13 >
14 > But I'm still in trouble (can't find libXau.so, besides I'm sure that
15 > it is there ...)
16 >
17 > /usr/lib/gcc/arm-none-linux-gnueabi/4.1.1/../../../../arm-none-linux-gnueabi/bin/ld:
18 > cannot find -lXau
19 >
20 > gentoo-arm # find . -iname "libXau*"
21 >
22 > ./usr/lib/libXau.so.6.0.0
23 > ./usr/lib/libXau.so.6
24 > ./usr/lib/libXau.a
25 > ./usr/lib/libXau.la
26 > ./usr/lib/libXau.so
27
28 if that is a cross-build, then you need the arm version of libXau, not the
29 host one
30
31 Peter
32 >
33 > Could someone help-me, please?
34 >
35 > Good luck Ryan,
36 > Leonardo.
37 >
38 >
39 > On 8/24/06, Enrico Weigelt <weigelt@×××××.de> wrote:
40 > > * Ryan Baldwin <ryan.baldwin@××××××××××.com> schrieb:
41 > >
42 > > Hi,
43 > >
44 > > > I have resolved this problem I think by referring to the Xorg cross
45 > > > compilation guide. It seems I need to pass --enable-malloc0returnsnull
46 > > > to configure, set CC_FOR_BUILD and apply a few patches.
47 > >
48 > > in other words: manually repair the broken buildfiles :(
49 > >
50 > > <snip>
51 > >
52 > > > This appears to indicate though that cross compiling Xorg is not
53 > > > really supported under gentoo?
54 > >
55 > > Isn't supported really, at all.
56 > >
57 > > <snip>
58 > >
59 > > > Presumably this would be done when the 'cross' USE flag is set otherwise?
60 > > > Is this the case or am I missing something obvious ?
61 > >
62 > > Eh, crosscompiling via USE flag ?!
63 > > It's a matter of the right toolchain (including proper system root)
64 > > and not the individual package configuration.
65 > >
66 > > <snip>
67 > >
68 > > > >Since sending my last post I have found:
69 > > > >
70 > > > > cp -r /tmp/target/usr/include/X11
71 > > > >/usr/i686-pc-linux-uclibc/sys-include/
72 > >
73 > > Bad. You really should use an sysroot'ed toolchain and put all
74 > > includes under $SYSROOT, in exactly the same way as would be
75 > > installed on an normal system.
76 > >
77 > >
78 > > cu
79 > > --
80 > > ---------------------------------------------------------------------
81 > > Enrico Weigelt == metux IT service - http://www.metux.de/
82 > > ---------------------------------------------------------------------
83 > > Please visit the OpenSource QM Taskforce:
84 > > http://wiki.metux.de/public/OpenSource_QM_Taskforce
85 > > Patches / Fixes for a lot dozens of packages in dozens of versions:
86 > > http://patches.metux.de/
87 > > ---------------------------------------------------------------------
88 > > --
89 > > gentoo-embedded@g.o mailing list
90 > >
91 > >
92 >
93
94 --
95 Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
96 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
97
98 --
99 gentoo-embedded@g.o mailing list