Gentoo Archives: gentoo-embedded

From: Mike Auty <ikelos@g.o>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Problem cross-compiling gcc-4.3.3 for arm-softfloat-linux-gnueabi
Date: Sun, 15 Mar 2009 21:17:01
Message-Id: 49BD7049.5080302@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Hiya guys,
5
6 I recently got an N810, and decided I should try and setup a Gentoo
7 build environment for it. I found some useful pointers at
8 http://slonopotamus.org/gentoo-on-n8x0 although I didn't follow it to
9 the letter. Notably, I tried out ~arm to see how things worked out and
10 stayed with -Os. I appeared to run into far fewer bugs than the
11 original author, and they were mostly configure failing to run a test
12 because of cross-compilation.
13
14 One problem I haven't been able to get around, however, is compiling
15 gcc-4.3.3. The error message is below:
16
17
18 make[2]: Entering directory
19 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
20 make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc"
21 "CC_FOR_TARGET=arm-softfloat-linux-gnueabi-gcc " "CFLAGS=-O2 -g -pipe
22 - -O2 " "CXXFLAGS=-pipe -O2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD="
23 "CFLAGS_FOR_TARGET=-O2 -g -pipe -O2 " "INSTALL=/usr/bin/install -c"
24 "INSTALL_DATA=/usr/bin/install -c -m 644"
25 "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install
26 - -c" "LDFLAGS=" "LIBCFLAGS=-O2 -g -pipe -O2 " "LIBCFLAGS_FOR_TARGET=-O2
27 - -g -pipe -O2 " "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000
28 - --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
29 "RUNTESTFLAGS=" "exec_prefix=/usr"
30 "infodir=/usr/share/gcc-data/arm-softfloat-linux-gnueabi/4.3.3/info"
31 "libdir=/usr/lib"
32 "includedir=/usr/lib/gcc/arm-softfloat-linux-gnueabi/4.3.3/include"
33 "prefix=/usr" "tooldir=/usr/arm-softfloat-linux-gnueabi"
34 "gxx_include_dir=/usr/lib/gcc/arm-softfloat-linux-gnueabi/4.3.3/include/g++-v4"
35 "AR=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ar"
36 "AS=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/as"
37 "LD=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld"
38 "RANLIB=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ranlib"
39 "NM=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/nm" "NM_FOR_BUILD="
40 "NM_FOR_TARGET=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/nm"
41 "DESTDIR=" "WERROR=" all-recursive
42 make[3]: Entering directory
43 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
44 Making all in include
45 make[4]: Entering directory
46 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include'
47 mkdir -p ./arm-softfloat-linux-gnueabi/bits/stdtr1c++.h.gch
48 arm-softfloat-linux-gnueabi-c++ -Winvalid-pch -x c++-header -pipe -O2
49 -D_GNU_SOURCE
50 -
51 -I/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/arm-softfloat-linux-gnueabi
52 -
53 -I/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include
54 -
55 -I/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/libstdc++-v3/libsupc++
56 - -O2 -g
57 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h
58 - -o arm-softfloat-linux-gnueabi/bits/stdtr1c++.h.gch/O2g.gch
59 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h:34:25:
60 warning:
61 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/arm-softfloat-linux-gnueabi/bits/stdc++.h.gch/O0g.gch:
62 not used because `__NO_INLINE__' not defined
63 In file included from
64 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1/cfenv:51,
65 from
66 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h:38:
67 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:56:
68 error: '::fenv_t' has not been declared
69 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:57:
70 error: '::fexcept_t' has not been declared
71 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:60:
72 error: '::feclearexcept' has not been declared
73 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:61:
74 error: '::fegetexceptflag' has not been declared
75 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:62:
76 error: '::feraiseexcept' has not been declared
77 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:63:
78 error: '::fesetexceptflag' has not been declared
79 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:64:
80 error: '::fetestexcept' has not been declared
81 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:66:
82 error: '::fegetround' has not been declared
83 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:67:
84 error: '::fesetround' has not been declared
85 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:69:
86 error: '::fegetenv' has not been declared
87 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:70:
88 error: '::feholdexcept' has not been declared
89 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:71:
90 error: '::fesetenv' has not been declared
91 /usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include/tr1_impl/cfenv:72:
92 error: '::feupdateenv' has not been declared
93 make[4]: *** [arm-softfloat-linux-gnueabi/bits/stdtr1c++.h.gch/O2g.gch]
94 Error 1
95 make[4]: Leaving directory
96 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include'
97 make[3]: *** [all-recursive] Error 1
98 make[3]: Leaving directory
99 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
100 make[2]: *** [all] Error 2
101 make[2]: Leaving directory
102 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
103 make[1]: *** [all-target-libstdc++-v3] Error 2
104 make[1]: Leaving directory
105 `/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build'
106 make: *** [all] Error 2
107
108
109 Googling for the __NO_INLINE__ message seems to suggest that it's fine
110 and not a problem, and googling for the fenv_t message turns up about 3
111 results, none of which seem directly related (I've tried with both Os
112 and O2 optimization flags and neither's worked). I've been using the
113 following autoconf overrides (the commented ones I used only for
114 compiling the packages mentioned):
115
116
117 ac_cv_func_calloc_0_nonnull=yes
118 ac_cv_func_malloc_0_nonnull=yes
119 gl_cv_func_malloc_0_nonnull=yes
120 ac_cv_func_realloc_0_nonnull=yes
121 ac_cv_func_memcmp_working=yes
122 ac_cv_func_strnlen_working=yes
123
124 #fixes http://bugs.gentoo.org/224685
125 gl_cv_func_wcwidth_works=yes
126
127 #fixes coreutils-7.1
128 fu_cv_sys_stat_statfs2_bsize=yes
129
130 #fixes popt-1.13
131 #ac_cv_va_copy=C99
132 #
133 #fixes kbd
134 #ac_cv_func_setpgrp_void=yes
135
136
137 Does anyone have any ideas? I've tried gcc-4.1.2, but since my host
138 machine has gcc-4.3.3 I figured it was unlikely to work (and indeed, I
139 got "must have static linkage" errors quite early on). I've included my
140 "emerge-arm-softfloat-linux-gnueabi --info" output further down and I'm
141 happy to provide any further information or run tests that might help me
142 sort this problem out. Any help would be greatly appreciated,
143
144 Thanks,
145
146 Mike 5:)
147
148
149 Portage 2.2_rc25 (default/linux/arm/2008.0, gcc-4.3.3,
150 glibc-2.9_p20081201-r2, 2.6.28.7 i686)
151 =================================================================
152 System uname:
153 Linux-2.6.28.7-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.0
154 Timestamp of tree: Sun, 15 Mar 2009 01:30:16 +0000
155 ccache version 2.4 [disabled]
156 app-shells/bash: 4.0_p10-r1
157 dev-java/java-config: 1.3.7-r1, 2.1.7
158 dev-lang/python: 2.6.1
159 dev-python/pycrypto: 2.0.1-r6
160 dev-util/ccache: 2.4-r8
161 dev-util/cmake: 2.6.2-r1
162 sys-apps/baselayout: 2.0.0
163 sys-apps/openrc: 0.4.3-r1
164 sys-apps/sandbox: 1.6
165 sys-devel/autoconf: 2.13, 2.63
166 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
167 sys-devel/binutils: 2.19.1-r1
168 sys-devel/gcc-config: 1.4.1
169 sys-devel/libtool: 2.2.6a
170 virtual/os-headers: 2.6.28-r1
171 ACCEPT_KEYWORDS="arm ~arm"
172 CBUILD="i686-pc-linux-gnu"
173 CFLAGS="-Os -pipe -fomit-frame-pointer
174 - -I/usr/arm-softfloat-linux-gnueabi/usr/include/
175 - -I/usr/arm-softfloat-linux-gnueabi/include/"
176 CHOST="arm-softfloat-linux-gnueabi"
177 CONFIG_PROTECT="/etc"
178 CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
179 /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
180 /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
181 CXXFLAGS="-Os -pipe -fomit-frame-pointer
182 - -I/usr/arm-softfloat-linux-gnueabi/usr/include/
183 - -I/usr/arm-softfloat-linux-gnueabi/include/"
184 DISTDIR="/usr/portage/distfiles"
185 FEATURES="buildpkg distlocks fixpackages nodoc noinfo noman
186 parallel-fetch preserve-libs protect-owned sandbox sfperms strict
187 unmerge-orphans userfetch"
188 GENTOO_MIRRORS="http://distfiles.gentoo.org
189 http://distro.ibiblio.org/pub/linux/distributions/gentoo"
190 LC_ALL="en_GB"
191 LDFLAGS="-L/usr/arm-softfloat-linux-gnueabi/usr/lib
192 - -L/usr/arm-softfloat-linux-gnueabi/lib"
193 MAKEOPTS="-j4"
194 PKGDIR="/usr/arm-softfloat-linux-gnueabi/packages/"
195 PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-gnueabi/"
196 PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
197 - --compress --force --whole-file --delete --stats --timeout=180
198 - --exclude=/distfiles --exclude=/local --exclude=/packages"
199 PORTAGE_TMPDIR="/usr/arm-softfloat-linux-gnueabi/tmp/"
200 PORTDIR="/usr/portage"
201 PORTDIR_OVERLAY="/usr/local/overlays/embedded
202 /usr/local/overlays/desktop-effects /usr/local/overlays/bluez
203 /usr/local/overlays/gnome /usr/local/overlays/vmware
204 /usr/local/overlays/ikelos /usr/local/overlays/uncon
205 /usr/local/overlays/personal"
206 SYNC="rsync://rsync.gentoo.org/gentoo-portage"
207 USE="arm gdbm minimal mudflap ncurses openmp zlib"
208 ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
209 file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw
210 multi null plug rate route share shm softvol" APACHE2_MODULES="actions
211 alias auth_basic authn_alias authn_anon authn_dbm authn_default
212 authn_file authz_dbm authz_default authz_groupfile authz_host
213 authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
214 disk_cache env expires ext_filter file_cache filter headers include info
215 log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
216 speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
217 INPUT_DEVICES="evdev keyboard mouse touchscreen" KERNEL="linux"
218 LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
219 ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev dummy"
220 Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
221 LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
222 PORTAGE_RSYNC_EXTRA_OPTS
223 -----BEGIN PGP SIGNATURE-----
224 Version: GnuPG v2.0.10 (GNU/Linux)
225
226 iEYEARECAAYFAkm9cEgACgkQu7rWomwgFXqlrACfdhMm+b29lfdMKOZOSPU7ZVcR
227 i+gAnijHUQKkhbUWaGppcF3cN1ti1Rc/
228 =mFRI
229 -----END PGP SIGNATURE-----

Replies