1 |
I am new to this list. I'm hoping someone will be able to help me solve |
2 |
a problem building a toolchain for use with a 2.6 kernel on an arm9 |
3 |
board using crossdev. The issue is this: I can build a toolchain |
4 |
successfully on a Pentium 4 dual-core machine. But when I try to build |
5 |
the exact same toolchain on either of two AMD boxes it fails with the |
6 |
same error while building glibc. |
7 |
|
8 |
I looked through the archives of this mailing list without seeing |
9 |
anything relevant. I am hoping someone has seen this before and can tell |
10 |
me what I'm doing wrong. |
11 |
|
12 |
Here are the particulars: |
13 |
|
14 |
The toolchain in question will build with the following command: |
15 |
|
16 |
USE="-* nls glibc-omitfp nptl nptlonly tls" crossdev \ |
17 |
--b 2.16.1-r3 \ |
18 |
--g 4.1.1-r3 \ |
19 |
--k 2.6.19.2-r2 \ |
20 |
--l 2.3.6-r5 \ |
21 |
-t arm-softfloat-linux-gnu |
22 |
|
23 |
on the Intel P4 box is running Gentoo 2.6.18 (I don't know the revision |
24 |
number right now). But if fails on both of these: |
25 |
|
26 |
Athlon-xp box running Gentoo 2.6-19-r5 or 2.6-20-r8 |
27 |
Duron box running Gentoo 2.6.17-r4 |
28 |
|
29 |
Here is the error message for either of the AMD's: |
30 |
|
31 |
* Host Portage ARCH: x86 |
32 |
* Target Portage ARCH: arm |
33 |
* Target System: arm-softfloat-linux-gnu |
34 |
* Stage: 4 (C/C++ compiler) |
35 |
|
36 |
* binutils: binutils-2.16.1-r3 |
37 |
* gcc: gcc-4.1.1-r3 |
38 |
* headers: linux-headers-2.6.19.2-r2 |
39 |
* libc: glibc-2.3.6-r5 |
40 |
|
41 |
* PORTDIR_OVERLAY: /usr/local/portage |
42 |
* PORT_LOGDIR: /var/log/portage |
43 |
* PKGDIR: |
44 |
/usr/portage/packages/cross/arm-softfloat-linux-gnu |
45 |
* PORTAGE_TMPDIR: /var/tmp/cross/arm-softfloat-linux-gnu |
46 |
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ |
47 |
- _ - ~ - _ - ~ - _ - ~ - _ |
48 |
* Forcing the latest versions of binutils-config/gcc-config |
49 |
... [ ok ] |
50 |
* Log: /var/log/portage/cross-arm-softfloat-linux-gnu-binutils.log |
51 |
* Emerging cross-binutils |
52 |
... |
53 |
[ ok ] |
54 |
* Log: /var/log/portage/cross-arm-softfloat-linux-gnu-gcc-stage1.log |
55 |
* Emerging cross-gcc-stage1 |
56 |
... |
57 |
[ ok ] |
58 |
* Log: /var/log/portage/cross-arm-softfloat-linux-gnu-linux-headers.log |
59 |
* Emerging cross-linux-headers |
60 |
... |
61 |
[ ok ] |
62 |
* Log: /var/log/portage/cross-arm-softfloat-linux-gnu-glibc.log |
63 |
* Emerging cross-glibc ... |
64 |
|
65 |
* glibc failed :( |
66 |
* If you file a bug, please attach the following logfiles: |
67 |
* /var/log/portage/cross-arm-softfloat-linux-gnu-info.log |
68 |
* /var/log/portage/cross-arm-softfloat-linux-gnu-glibc.log |
69 |
|
70 |
|
71 |
And here is the topmost build error in the glibc.log: |
72 |
|
73 |
gcc ../sysdeps/unix/sysv/linux/arm/sysdep.S -c |
74 |
-I../include |
75 |
-I. |
76 |
-I/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu/glibc-2.3.6 |
77 |
-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads/csu |
78 |
-I.. |
79 |
-I../libio |
80 |
-I/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu/glibc-2.3.6 |
81 |
-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads |
82 |
-I../sysdeps/arm/elf |
83 |
-I../linuxthreads/sysdeps/unix/sysv/linux/arm |
84 |
-I../linuxthreads/sysdeps/unix/sysv/linux |
85 |
-I../linuxthreads/sysdeps/pthread |
86 |
-I../sysdeps/pthread |
87 |
-I../linuxthreads/sysdeps/unix/sysv |
88 |
-I../linuxthreads/sysdeps/unix |
89 |
-I../linuxthreads/sysdeps/arm |
90 |
-I../libidn/sysdeps/unix |
91 |
-I../sysdeps/unix/sysv/linux/arm |
92 |
-I../sysdeps/unix/sysv/linux |
93 |
-I../sysdeps/gnu |
94 |
-I../sysdeps/unix/common |
95 |
-I../sysdeps/unix/mman |
96 |
-I../sysdeps/unix/inet |
97 |
-I../sysdeps/unix/sysv |
98 |
-I../sysdeps/unix/arm |
99 |
-I../sysdeps/unix |
100 |
-I../sysdeps/posix |
101 |
-I../sysdeps/arm |
102 |
-I../sysdeps/wordsize-32 |
103 |
-I../sysdeps/ieee754/flt-32 |
104 |
-I../sysdeps/ieee754/dbl-64 |
105 |
-I../sysdeps/ieee754 |
106 |
-I../sysdeps/generic/elf |
107 |
-I../sysdeps/generic |
108 |
-nostdinc |
109 |
-isystem /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/include |
110 |
-isystem /usr/arm-softfloat-linux-gnu/usr/include |
111 |
-D_LIBC_REENTRANT |
112 |
-include ../include/libc-symbols.h |
113 |
-DHAVE_INITFINI |
114 |
-DASSEMBLER |
115 |
-I/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu/glibc-2.3.6 |
116 |
-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads/csu/. |
117 |
-Wa,--noexecstack |
118 |
-Wa,--noexecstack |
119 |
-o |
120 |
/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu/glibc-2.3. |
121 |
6-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads/csu/sysdep.o |
122 |
-MD |
123 |
-MP |
124 |
-MF |
125 |
/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu/glibc-2.3 |
126 |
.6-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads/csu/sysdep.o.dt |
127 |
|
128 |
-MT |
129 |
/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu/glibc-2.3 |
130 |
.6-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads/csu/sysdep.o |
131 |
../sysdeps/generic/libc-start.c: In function '__libc_start_main': |
132 |
../sysdeps/generic/libc-start.c:192: warning: implicit declaration of |
133 |
function '__guard_se |
134 |
tup' |
135 |
../sysdeps/unix/sysv/linux/arm/sysdep.S: Assembler messages: |
136 |
../sysdeps/unix/sysv/linux/arm/sysdep.S:31: Error: no such instruction: |
137 |
`rsb r0,r0,$0' |
138 |
../sysdeps/unix/arm/sysdep.S:41: Error: invalid char '[' beginning |
139 |
operand 2 `[sp' |
140 |
../sysdeps/unix/arm/sysdep.S:42: Error: invalid char '[' beginning |
141 |
operand 2 `[sp' |
142 |
../sysdeps/unix/arm/sysdep.S:43: Error: no such instruction: `bl |
143 |
__errno_location(PLT)' |
144 |
../sysdeps/unix/arm/sysdep.S:44: Error: no such instruction: `ldr r1,[sp],' |
145 |
../sysdeps/unix/arm/sysdep.S:45: Error: invalid char '[' beginning |
146 |
operand 2 `[r0]' |
147 |
../sysdeps/unix/arm/sysdep.S:46: Error: no such instruction: `mvn r0,$0' |
148 |
../sysdeps/unix/arm/sysdep.S:47: Error: no such instruction: `ldr pc,[sp],' |
149 |
make[2]: *** |
150 |
[/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softfloat-linux-gnu |
151 |
/glibc-2.3.6-r5/work/build-default-arm-softfloat-linux-gnu-linuxthreads/csu/sysdep.o] |
152 |
Erro |
153 |
r 1 |
154 |
make[2]: *** Waiting for unfinished jobs.... |
155 |
make[2]: Leaving directory |
156 |
`/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softf |
157 |
loat-linux-gnu/glibc-2.3.6-r5/work/glibc-2.3.6/csu' |
158 |
make[1]: *** [csu/subdir_lib] Error 2 |
159 |
make[1]: Leaving directory |
160 |
`/var/tmp/cross/arm-softfloat-linux-gnu/portage/cross-arm-softf |
161 |
loat-linux-gnu/glibc-2.3.6-r5/work/glibc-2.3.6' |
162 |
make: *** [all] Error 2 |
163 |
|
164 |
!!! ERROR: cross-arm-softfloat-linux-gnu/glibc-2.3.6-r5 failed. |
165 |
Call stack: |
166 |
ebuild.sh, line 1615: Called dyn_compile |
167 |
ebuild.sh, line 972: Called qa_call 'src_compile' |
168 |
ebuild.sh, line 44: Called src_compile |
169 |
glibc-2.3.6-r5.ebuild, line 1127: Called src_compile |
170 |
glibc-2.3.6-r5.ebuild, line 1138: Called toolchain-glibc_src_compile |
171 |
glibc-2.3.6-r5.ebuild, line 221: Called die |
172 |
|
173 |
|
174 |
|
175 |
And I can post the |
176 |
/var/log/portage/cross-arm-softfloat-linux-gnu-info.log too, if it would |
177 |
do any good. |
178 |
|
179 |
Thanks in advance. |
180 |
--Jeff Cunningham |
181 |
-- |
182 |
gentoo-embedded@g.o mailing list |