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

Attachments

File name MIME type
glic.build.log_100 application/octet-stream
glic.environment application/octet-stream
sys-apps_findutils.build.log_100 application/octet-stream
sys-apps_findutils.environment application/octet-stream
sys-apps_module-init-tools.build.log_100 application/octet-stream
sys-apps_module-init-tools.environment application/octet-stream

Replies

Subject Author
Re: [gentoo-embedded] cross compiler for powerpc-softfloat-linux-gnu maxime louvel <m.louvel@×××××.com>