Gentoo Archives: gentoo-embedded

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