1 |
Hello! |
2 |
|
3 |
I'm new in embedded Gentoo, but i have some experience in embedded |
4 |
linux. And now I'm want study embedded Gentoo! |
5 |
|
6 |
At first I'm trying to build cross toolchain with crossdev. |
7 |
Current architecture is not matter. I'm trying build for |
8 |
mipsel-unknown-linux-gnu, arm-unknown-linux-gnu, |
9 |
powerpc-unknown-linux-gnu, powerpc-405ep-linux-gnu and some other, with |
10 |
different versions of binutils, gcc, libc... (according to google) |
11 |
And, if other errors was resolved, I get "incompatible libgcc.a when |
12 |
searching for -lgcc". It's most common error for me. |
13 |
|
14 |
|
15 |
alv@origami ~ $ sudo crossdev -S -t powerpc-405ep-linux-gnu |
16 |
----------------------------------------------------------------------------------------------------------------------------------------- |
17 |
* Host Portage ARCH: x86 |
18 |
* Target Portage ARCH: ppc |
19 |
* Target System: powerpc-405ep-linux-gnu |
20 |
* Stage: 4 (C/C++ compiler) |
21 |
|
22 |
* binutils: binutils-[stable] |
23 |
* gcc: gcc-[stable] |
24 |
* headers: linux-headers-[stable] |
25 |
* libc: glibc-[stable] |
26 |
|
27 |
* PORTDIR_OVERLAY: /usr/cross-portage |
28 |
* PORT_LOGDIR: /var/log/portage |
29 |
* PKGDIR: |
30 |
/usr/portage/packages/cross/powerpc-405ep-linux-gnu |
31 |
* PORTAGE_TMPDIR: /var/tmp/cross/powerpc-405ep-linux-gnu |
32 |
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - |
33 |
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig ... |
34 |
|
35 |
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-binutils.log |
36 |
* Emerging cross-binutils ... |
37 |
|
38 |
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-gcc-stage1.log |
39 |
* Emerging cross-gcc-stage1 ... |
40 |
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-linux-headers.log |
41 |
* Emerging cross-linux-headers ... |
42 |
|
43 |
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log |
44 |
* Emerging cross-glibc ... |
45 |
|
46 |
* glibc failed :( |
47 |
* If you file a bug, please attach the following logfiles: |
48 |
* /var/log/portage/cross-powerpc-405ep-linux-gnu-info.log |
49 |
* /var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log |
50 |
|
51 |
/var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log: |
52 |
|
53 |
... |
54 |
|
55 |
powerpc-405ep-linux-gnu-gcc -nostdlib -nostartfiles -r -o |
56 |
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/ |
57 |
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/librtld.map.o |
58 |
'-Wl,-(' |
59 |
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/ |
60 |
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/dl-allobjs.os |
61 |
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/ |
62 |
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/libc_pic.a |
63 |
-lgcc '-Wl,-)' |
64 |
-Wl,-Map,/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/ |
65 |
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/librtld.mapT |
66 |
|
67 |
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: skipping incompatible |
68 |
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a when searching for |
69 |
-lgcc |
70 |
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: skipping incompatible |
71 |
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a when searching for |
72 |
-lgcc |
73 |
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: cannot find -lgcc |
74 |
collect2: ld returned 1 exit status |
75 |
|
76 |
... |
77 |
|
78 |
Any ideas are welcome! |
79 |
|
80 |
P.S. |
81 |
/usr/libexec/gcc/powerpc-405ep-linux-gnu/objdump -f |
82 |
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a > objdump |
83 |
|
84 |
|
85 |
P.P.S. Sorry for my English. |
86 |
|
87 |
Aleksei. |