1 |
I've been working on building a big-endian arm (XScale) system using |
2 |
crossdev to generate cross-compilers and portage to compile packages and |
3 |
install them into an alternate ROOT. I have a simple |
4 |
uclibc/busybox/baselayout-lite rootfs plus 2.6 kernel that boots |
5 |
sucessfully. I'm now working on a full-blown glibc/baselayout rootfs |
6 |
(it's a pretty beefy XScale board), but I'm having difficulty |
7 |
cross-compiling a native gcc toolchain for arm. The gcc compile fails |
8 |
with the following error: |
9 |
|
10 |
make[2]: *** No rule to make target |
11 |
`../build-i686-pc-linux-gnu/libiberty/libiberty.a', needed by |
12 |
`genmodes'. Stop. |
13 |
make[2]: *** Waiting for unfinished jobs.... |
14 |
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' |
15 |
make[1]: *** [stage1_build] Error 2 |
16 |
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4/work/build/gcc' |
17 |
make: *** [bootstrap-lean] Error 2 |
18 |
|
19 |
I'm actually using a small build script to set up environment variables |
20 |
and automate a few other odds and ends, but I get the same error message |
21 |
when I initiate the build manually with: |
22 |
|
23 |
USE="-* arm" ACCEPT_KEYWORDS=arm CBUILD=i686-pc-linux-gnu |
24 |
CHOST=armeb-unknown-linux-gnu CTARGET=armeb-unknown-linux-gnu |
25 |
ROOT=/image/armeb-unknown-linux-gnu-devimage emerge sys-devel/gcc |
26 |
|
27 |
>From the looks of it, it's succesfully cross-compiling libiberty for |
28 |
arm. I'm guessing what's going on is that genmodes is used in the gcc |
29 |
build process and must be compiled for the build system (x86), but no |
30 |
x86 libiberty is available because the configure script is not setting |
31 |
this up properly. I'm not particularly familiar with the gcc build |
32 |
system. What do I need to do to get a native arm compiler? Has anyone |
33 |
else tried cross-compiling a native compiler toolchain for arm? The arm |
34 |
stage tarballs must include a compiler, so I'm guessing it's possible to |
35 |
create it with portage but I'm doing something wrong. Thanks in advance. |
36 |
|
37 |
-- Brian Koropoff |
38 |
-- |
39 |
gentoo-embedded@g.o mailing list |