* [gentoo-embedded] Problem cross-compiling gcc-4.3.3 for arm-softfloat-linux-gnueabi
@ 2009-03-15 21:16 99% Mike Auty
0 siblings, 0 replies; 1+ results
From: Mike Auty @ 2009-03-15 21:16 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hiya guys,
I recently got an N810, and decided I should try and setup a Gentoo
build environment for it. I found some useful pointers at
http://slonopotamus.org/gentoo-on-n8x0 although I didn't follow it to
the letter. Notably, I tried out ~arm to see how things worked out and
stayed with -Os. I appeared to run into far fewer bugs than the
original author, and they were mostly configure failing to run a test
because of cross-compilation.
One problem I haven't been able to get around, however, is compiling
gcc-4.3.3. The error message is below:
make[2]: Entering directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc"
"CC_FOR_TARGET=arm-softfloat-linux-gnueabi-gcc " "CFLAGS=-O2 -g -pipe
- -O2 " "CXXFLAGS=-pipe -O2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD="
"CFLAGS_FOR_TARGET=-O2 -g -pipe -O2 " "INSTALL=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install
- -c" "LDFLAGS=" "LIBCFLAGS=-O2 -g -pipe -O2 " "LIBCFLAGS_FOR_TARGET=-O2
- -g -pipe -O2 " "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000
- --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh"
"RUNTESTFLAGS=" "exec_prefix=/usr"
"infodir=/usr/share/gcc-data/arm-softfloat-linux-gnueabi/4.3.3/info"
"libdir=/usr/lib"
"includedir=/usr/lib/gcc/arm-softfloat-linux-gnueabi/4.3.3/include"
"prefix=/usr" "tooldir=/usr/arm-softfloat-linux-gnueabi"
"gxx_include_dir=/usr/lib/gcc/arm-softfloat-linux-gnueabi/4.3.3/include/g++-v4"
"AR=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ar"
"AS=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/as"
"LD=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld"
"RANLIB=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ranlib"
"NM=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/nm" "NM_FOR_BUILD="
"NM_FOR_TARGET=/usr/libexec/gcc/arm-softfloat-linux-gnueabi/nm"
"DESTDIR=" "WERROR=" all-recursive
make[3]: Entering directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
Making all in include
make[4]: Entering directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include'
mkdir -p ./arm-softfloat-linux-gnueabi/bits/stdtr1c++.h.gch
arm-softfloat-linux-gnueabi-c++ -Winvalid-pch -x c++-header -pipe -O2
-D_GNU_SOURCE
-
-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
-
-I/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include
-
-I/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/libstdc++-v3/libsupc++
- -O2 -g
/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h
- -o arm-softfloat-linux-gnueabi/bits/stdtr1c++.h.gch/O2g.gch
/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:
warning:
/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:
not used because `__NO_INLINE__' not defined
In file included from
/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,
from
/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:
/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:
error: '::fenv_t' has not been declared
/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:
error: '::fexcept_t' has not been declared
/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:
error: '::feclearexcept' has not been declared
/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:
error: '::fegetexceptflag' has not been declared
/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:
error: '::feraiseexcept' has not been declared
/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:
error: '::fesetexceptflag' has not been declared
/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:
error: '::fetestexcept' has not been declared
/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:
error: '::fegetround' has not been declared
/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:
error: '::fesetround' has not been declared
/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:
error: '::fegetenv' has not been declared
/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:
error: '::feholdexcept' has not been declared
/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:
error: '::fesetenv' has not been declared
/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:
error: '::feupdateenv' has not been declared
make[4]: *** [arm-softfloat-linux-gnueabi/bits/stdtr1c++.h.gch/O2g.gch]
Error 1
make[4]: Leaving directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3/include'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory
`/usr/arm-softfloat-linux-gnueabi/tmp/portage/sys-devel/gcc-4.3.3/work/build'
make: *** [all] Error 2
Googling for the __NO_INLINE__ message seems to suggest that it's fine
and not a problem, and googling for the fenv_t message turns up about 3
results, none of which seem directly related (I've tried with both Os
and O2 optimization flags and neither's worked). I've been using the
following autoconf overrides (the commented ones I used only for
compiling the packages mentioned):
ac_cv_func_calloc_0_nonnull=yes
ac_cv_func_malloc_0_nonnull=yes
gl_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_func_memcmp_working=yes
ac_cv_func_strnlen_working=yes
#fixes http://bugs.gentoo.org/224685
gl_cv_func_wcwidth_works=yes
#fixes coreutils-7.1
fu_cv_sys_stat_statfs2_bsize=yes
#fixes popt-1.13
#ac_cv_va_copy=C99
#
#fixes kbd
#ac_cv_func_setpgrp_void=yes
Does anyone have any ideas? I've tried gcc-4.1.2, but since my host
machine has gcc-4.3.3 I figured it was unlikely to work (and indeed, I
got "must have static linkage" errors quite early on). I've included my
"emerge-arm-softfloat-linux-gnueabi --info" output further down and I'm
happy to provide any further information or run tests that might help me
sort this problem out. Any help would be greatly appreciated,
Thanks,
Mike 5:)
Portage 2.2_rc25 (default/linux/arm/2008.0, gcc-4.3.3,
glibc-2.9_p20081201-r2, 2.6.28.7 i686)
=================================================================
System uname:
Linux-2.6.28.7-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Sun, 15 Mar 2009 01:30:16 +0000
ccache version 2.4 [disabled]
app-shells/bash: 4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python: 2.6.1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r8
dev-util/cmake: 2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc: 0.4.3-r1
sys-apps/sandbox: 1.6
sys-devel/autoconf: 2.13, 2.63
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils: 2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6a
virtual/os-headers: 2.6.28-r1
ACCEPT_KEYWORDS="arm ~arm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -pipe -fomit-frame-pointer
- -I/usr/arm-softfloat-linux-gnueabi/usr/include/
- -I/usr/arm-softfloat-linux-gnueabi/include/"
CHOST="arm-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -pipe -fomit-frame-pointer
- -I/usr/arm-softfloat-linux-gnueabi/usr/include/
- -I/usr/arm-softfloat-linux-gnueabi/include/"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages nodoc noinfo noman
parallel-fetch preserve-libs protect-owned sandbox sfperms strict
unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_GB"
LDFLAGS="-L/usr/arm-softfloat-linux-gnueabi/usr/lib
- -L/usr/arm-softfloat-linux-gnueabi/lib"
MAKEOPTS="-j4"
PKGDIR="/usr/arm-softfloat-linux-gnueabi/packages/"
PORTAGE_CONFIGROOT="/usr/arm-softfloat-linux-gnueabi/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
- --compress --force --whole-file --delete --stats --timeout=180
- --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/usr/arm-softfloat-linux-gnueabi/tmp/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/embedded
/usr/local/overlays/desktop-effects /usr/local/overlays/bluez
/usr/local/overlays/gnome /usr/local/overlays/vmware
/usr/local/overlays/ikelos /usr/local/overlays/uncon
/usr/local/overlays/personal"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="arm gdbm minimal mudflap ncurses openmp zlib"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug
file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw
multi null plug rate route share shm softvol" APACHE2_MODULES="actions
alias auth_basic authn_alias authn_anon authn_dbm authn_default
authn_file authz_dbm authz_default authz_groupfile authz_host
authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif
speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
INPUT_DEVICES="evdev keyboard mouse touchscreen" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb
ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev dummy"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK,
LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (GNU/Linux)
iEYEARECAAYFAkm9cEgACgkQu7rWomwgFXqlrACfdhMm+b29lfdMKOZOSPU7ZVcR
i+gAnijHUQKkhbUWaGppcF3cN1ti1Rc/
=mFRI
-----END PGP SIGNATURE-----
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-03-15 21:16 99% [gentoo-embedded] Problem cross-compiling gcc-4.3.3 for arm-softfloat-linux-gnueabi Mike Auty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox