Gentoo Archives: gentoo-embedded

From: maxime louvel <m.louvel@×××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] cross compiler for powerpc-softfloat-linux-gnu
Date: Wed, 02 Apr 2008 14:20:08
Message-Id: dda529d0804020720x5d45ddc0t3d2bdc14f1593848@mail.gmail.com
In Reply to: Re: [gentoo-embedded] cross compiler for powerpc-softfloat-linux-gnu by maxime louvel
1 Does someone has any idea ???
2
3 thanks a lot
4
5 Maxime
6
7 On Mon, Mar 31, 2008 at 10:39 AM, maxime louvel <m.louvel@×××××.com> wrote:
8
9 > Hi,
10 >
11 > I have tried to start everything over again.
12 > This time I have followed your advice and xmerge packages one by one.
13 >
14 > I have been able to xmerge binutils like that.
15 > But baselayout and glibc are still giving me headache...
16 >
17 > Here is what I have after installing everything I have been able to :
18 >
19 > For baselayout
20 > ----------------
21 > xmerge --root /home/newroot2 -pv baselayout
22 >
23 > These are the packages that would be merged, in order:
24 >
25 > Calculating dependencies... done!
26 > [ebuild N ] sys-apps/findutils-4.3.11 to /home/newroot2/ USE="-nls
27 > (-selinux) -static" 0 kB
28 > [ebuild N ] sys-apps/module-init-tools-3.4 to /home/newroot2/
29 > USE="-old-linux" 0 kB
30 > [ebuild R ] sys-apps/baselayout-1.12.11.1 to /home/newroot2/
31 > USE="-bootstrap -build -static -unicode" 0 kB
32 >
33 > Total: 3 packages (2 new, 1 reinstall), Size of downloads: 0 kB
34 > --------------
35 >
36 > And for glibc:
37 > ---------------
38 > xmerge --root /home/newroot2 -pv glibc
39 >
40 > These are the packages that would be merged, in order:
41 >
42 > Calculating dependencies... done!
43 > [ebuild N ] sys-libs/glibc-2.6.1 to /home/newroot2/ USE="-debug -gd
44 > -glibc-omitfp (-hardened) (-multilib) -nls -profile (-selinux) -vanilla" 0
45 > kB
46 >
47 > Total: 1 package (1 new), Size of downloads: 0 kB
48 > ---------------
49 >
50 >
51 > I have enclosed to this mail the results of the xmerge --root
52 > /home/newroot2 --nodeps for each needed package.
53 > $package_name.build.log and $package_name.environment for each of them.
54 > The build.log files contain only the last 100 lines (because of the size
55 > allowed for email....). If you'd like the whole ask me, I can send it alone
56 > (it is 9.7M)
57 >
58 > I need to xmerge baselayout and glibc.
59 >
60 > Indeed I have an embedded powerpc, without FPU. But it has 256 MB of RAM
61 > and for development purpose I am using NFS. Actually I would like to build a
62 > real gentoo on it in order to use it as a native environment and avoid all
63 > the cross compilation.
64 >
65 > I haven't find any stage3 for powerpc, without FPU and glibc. I have tried
66 > to update a powerpc-softfloat-linux-uclibc but it misses a lot.
67 >
68 > Any idea how I could fix my cross compilation problem ?
69 > Or any idea of an another way of doing my installation ?
70 >
71 > thx,
72 >
73 > Maxime
74 >
75 >
76 > On Thu, Mar 20, 2008 at 4:42 PM, Jason <gentoo@××××××××××.net> wrote:
77 >
78 > > maxime louvel wrote:
79 > > ...
80 > > >> xmerge --root /home/newRoot baselayout glibc binutils
81 > > ...
82 > >
83 > > I assume this is pulling in a bunch of dependencies, including
84 > > findutils. Do you intend to build a full-blown system (no busybox) or a
85 > > minimal system (busybox and a few friends)? If you plan on using
86 > > busybox, then you want to xmerge that as well.
87 > >
88 > > A good general rule of thumb (at least, it works for me ;-) ) is to
89 > > throw a '-pv' into each xmerge. eg:
90 > >
91 > > xmerge --root /home/newRoot -pv baselayout glibc binutils
92 > >
93 > > and see what it pulls in as dependencies. I then go to the top of the
94 > > list, let say baselayout is first, hypothetically. So I would then say:
95 > >
96 > > xmerge --root /home/newRoot --nodeps baselayout
97 > >
98 > > and then repeat for each package in the list that I actually want. Two
99 > > errors typically occur at this stage of the game.
100 > >
101 > > 1.) a missing runtime dependency, xmerge the dependency to newRoot.
102 > > 2.) a missing compiletime dependency, xmerge the dependecy to SYSROOT.
103 > >
104 > > The long and short of it is this: cross-compiling is a _much_ more acute
105 > > process, and it's best to take small steps through the initial build
106 > > than say 'xmerge --root $TGTROOT enlightenment' and hope for the best.
107 > > :-)
108 > >
109 > > hth,
110 > >
111 > > Jason.
112 > > --
113 > > gentoo-embedded@l.g.o mailing list
114 > >
115 > >
116 >
117 >
118 > --
119 > Maxime Louvel
120 > 0044 7964 5555 80
121 > 43 Allen road
122 > Whitemore reans
123 > WV60AW Wolverhampton
124 > United Kingdom
125 >
126
127
128
129 --
130 Maxime Louvel
131 0044 7964 5555 80
132 43 Allen road
133 Whitemore reans
134 WV60AW Wolverhampton
135 United Kingdom