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 (and gcc-4.3.3-r1). 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-out 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 I've also tried the openmoko overlay ones. 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). gcc-4.3.2 seems to compile fine (although I wasn't able to build packages on the target system, it's not clear if that was a related problem). 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... 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_@... 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
Exactly the same problem here. Toolchain was built with: crossdev --kernel 2.8.28-r1 --binutils 2.19.1-r1 --gcc 4.3.3-r1 --libc 2.8_p20080602-r1 --target armv4tl-softfloat-linux-gnueabi A build with USE="nopie* vanilla* -altivec -bootstrap -build -doc -fixed-point -fortran -gcj -gtk -hardened -ip28 -ip32r10k -libffi -mudflap -multilib -multislot -n32 -n64 -nls -nocxx -objc -objc++ -objc-gc -openmp -test" also fails, so the problem is not in the gentoo patchset!
Same on sh4... Weird... make[2]: Entering directory `/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3' make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=sh4-unknown-linux-gnu-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/sh4-unknown-linux-gnu/4.3.3/info" "libdir=/usr/lib" "includedir=/usr/lib/gcc/sh4-unknown-linux-gnu/4.3.3/include" "prefix=/usr" "tooldir=/usr/sh4-unknown-linux-gnu" "gxx_include_dir=/usr/lib/gcc/sh4-unknown-linux-gnu/4.3.3/include/g++-v4" "AR=/usr/libexec/gcc/sh4-unknown-linux-gnu/ar" "AS=/usr/libexec/gcc/sh4-unknown-linux-gnu/as" "LD=/usr/libexec/gcc/sh4-unknown-linux-gnu/ld" "RANLIB=/usr/libexec/gcc/sh4-unknown-linux-gnu/ranlib" "NM=/usr/libexec/gcc/sh4-unknown-linux-gnu/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/usr/libexec/gcc/sh4-unknown-linux-gnu/nm" "DESTDIR=" "WERROR=" all-recursive make[3]: Entering directory `/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3' Making all in include make[4]: Entering directory `/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include' mkdir -p ./sh4-unknown-linux-gnu/bits/stdtr1c++.h.gch sh4-unknown-linux-gnu-c++ -Winvalid-pch -x c++-header -pipe -O2 -D_GNU_SOURCE -I/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/sh4-unknown-linux-gnu -I/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include -I/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/gcc-4.3.3/libstdc++-v3/libsupc++ -O2 -g /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h -o sh4-unknown-linux-gnu/bits/stdtr1c++.h.gch/O2g.gch /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h:34:25: warning: /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/sh4-unknown-linux-gnu/bits/stdc++.h.gch/O0g.gch: created and used with differing settings of '-mdiv=' In file included from /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1/cfenv:51, from /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/gcc-4.3.3/libstdc++-v3/include/precompiled/stdtr1c++.h:38: /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:56: error: '::fenv_t' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:57: error: '::fexcept_t' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:60: error: '::feclearexcept' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:61: error: '::fegetexceptflag' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:62: error: '::feraiseexcept' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:63: error: '::fesetexceptflag' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:64: error: '::fetestexcept' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:66: error: '::fegetround' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:67: error: '::fesetround' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:69: error: '::fegetenv' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:70: error: '::feholdexcept' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:71: error: '::fesetenv' has not been declared /usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include/tr1_impl/cfenv:72: error: '::feupdateenv' has not been declared make[4]: *** [sh4-unknown-linux-gnu/bits/stdtr1c++.h.gch/O2g.gch] Error 1 make[4]: Leaving directory `/usr/sh4-unknown-linux-gnu/tmp/portage/sys-devel/gcc-4.3.3-r1/work/build/sh4-unknown-linux-gnu/libstdc++-v3/include' make[3]: *** [all-recursive] Error 1
The same if crosscompiling gentoo with tolchain: UCLIBC_CPU=ARM920T crossdev -v -t arm-softfloat-linux-uclibcgnueabi binutils-2.19.1-r1 gcc-4.3.3-r2 linux-headers-2.6.28-r1 uclibc-0.9.30.1-r1 Build toolchain works but crosscompile gcc does not.
vapier, Notice the CHOST.. He is using -uclibcgnueabi vs -uclibceabi
After some debugging, i found the culprit. http://gcc.gnu.org/viewcvs?view=rev&revision=143194
And could by fixed by adding '-nostdinc++' as described in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39238
Created attachment 187319 [details, diff] patch/hack solve this issue for my This is just proposal which works for my. Probably is sufficinet modify only one of Makefile.* or may be this is not proper solution.
gcc-4.4.0 have exactly same issue
Created attachment 229343 [details] hit the same problem while using gcc-4.4.3
I've hit the same issue building gcc-4.4.4; - CHOST=mipsel-unknown-linux-gnu - CBUILD=i686-pc-linux-gnu - CTARGET=mipsel-unknown-linux-gnu (well, actually unset) I think we can rule out it being something specific to ARM as we've seen the issue elsewhere too. I'm giving another build a try with USE=nocxx, as my aim is to produce a gcc that I can use to compile gcc... I can live with a C-only compiler to bootstrap things.
We should get this fixed. regarding having a C compiler to get a local gcc... Well they are thinking about switching to C++ apparently.
the patch is ready for gcc-4.5 now (already in the patchset dir), if http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45094 is confirmed I'd add that and ask for another patchset.
Luca: if you're going to add patches, please clean them up. review: http://dev.gentoo.org/~vapier/clean-patches further, i'm guessing the patch you're referring to is: 94_all_gcc-4.5-pch-nostdinc.patch but this bug and the upstream PR is about gcc-4.3, not 4.5, so where & why is that patch coming from ? who did you ask to add that patch to the patchset and who approved it ?
(In reply to comment #13) > Luca: if you're going to add patches, please clean them up. review: > http://dev.gentoo.org/~vapier/clean-patches > > further, i'm guessing the patch you're referring to is: > 94_all_gcc-4.5-pch-nostdinc.patch > > but this bug and the upstream PR is about gcc-4.3, not 4.5, so where & why is > that patch coming from ? who did you ask to add that patch to the patchset and > who approved it ? That should be the upstream bug, I reproduced the problem locally and tested the solution as well. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40974 Sorry for not putting the right reference ^^;
seems to be fixed with newer versions