emerge --info: Portage 2.2.0_alpha87-r1 (hardened/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 2.6.32-gentoo-r39 x86_64) ================================================================= System uname: Linux-2.6.32-gentoo-r39-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.1 Timestamp of tree: Sa 3. Dez 16:06:39 CET 2011 app-shells/bash: 4.2_p20 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.7-r2, 2.7.2-r3 dev-util/cmake: 2.8.7-r3 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.8.4 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.3 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.5-r2 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.14.1-r2 Repositories: gentoo sunrise multilib enlightenment Meins Installed sets: @enlightenment, @fonts, @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/home/thomas/daten/distfiles" EMERGE_DEFAULT_OPTS="--keep-going" FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FFLAGS="" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo" LANG="de_DE.UTF-8@euro" LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="de" MAKEOPTS="-j5 --load-average=8" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/home/thomas/daten" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/multilib-portage /usr/local/portage/layman/enlightenment /usr/local/portage" SYNC="cvs://tommy@cvs.gentoo.org:/var/cvsroot" USE="3dnow X alsa amd64 berkdb cli cracklib crypt cups custom-cflags custom-cxxflags custom-optimization cxx dri gpm hardened java5 java6 justify mmx modules mudflap multilib ncurses nls nptl nptlonly nsplugin ogg openmp pam pax_kernel pppd readline scanner session sse sse2 ssl sysfs tcpd unicode urandom v4l vorbis xorg zlib" ALSA_CARDS="hda-intel" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" multilib_abi="amd64 x86" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 302623 [details] build.log
How are you building nacl-toolchain-newlib? I'm not familiar with messages like ">>> ABI=x86", what does it set exactly? Is this documented somewhere? I'm not sure if building it that way is really supported. nacl-toolchain-newlib is already internally "cross-compiled" for the "nacl" target. Making all in x86_64 make[8]: Entering directory `/home/thomas/daten/portage/dev-lang/nacl-toolchain-newlib-0_p7311/work/BUILD/build-newlib-x86_64-nacl/x86_64-nacl/newli b/libc/machine/x86_64' x86_64-nacl-gcc -B/home/thomas/daten/portage/dev-lang/nacl-toolchain-newlib-0_p7311/work/BUILD/build-newlib-x86_64-nacl/x86_64-nacl/newlib/ -isystem /home/thomas/daten/portage/dev-lang/nacl-toolchain-newlib-0_p7311/work/BUILD/build-newlib-x86_64-nacl/x86_64-nacl/newlib/targ-include -isystem /hom e/thomas/daten/portage/dev-lang/nacl-toolchain-newlib-0_p7311/work/SRC/newlib/newlib/libc/include -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"n ewlib\" -DPACKAGE_VERSION=\"1.18.0\" -DPACKAGE_STRING=\"newlib\ 1.18.0\" -DPACKAGE_BUGREPORT=\"\" -I. -I../../../../../../../SRC/newlib/newlib/libc/ machine/x86_64 -DCLOCK_PROVIDED -DHAVE_NANOSLEEP -DMALLOC_PROVIDED -DMISSING_SYSCALL_NAMES -fno-builtin -DCLOCK_PROVIDED -DHAVE_NANOSLEEP -DMALL OC_PROVIDED -DMISSING_SYSCALL_NAMES -fno-builtin -march=native -O2 -pipe -m32 -c -o lib_a-setjmp.o `test -f 'setjmp.S' || echo '../../../../../../ ../SRC/newlib/newlib/libc/machine/x86_64/'`setjmp.S ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S: Assembler messages: ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:25: Error: bad register name `%rbx' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:26: Error: bad register name `%r12' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:27: Error: bad register name `%r13' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:28: Error: bad register name `%r14' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:29: Error: bad register name `%rsp)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:30: Error: bad register name `%rax' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:31: Error: bad register name `%rsp)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:32: Error: bad register name `%nacl:40 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:33: Error: bad register name `%nacl:44 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:34: Error: bad register name `%rax' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:35: Error: bad register name `%r11' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:36: Error: bad register name `%r11d' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:39: Error: bad register name `%rsi' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:41: Error: `naclrestbp' is only supported in 64-bit mode ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:44: Error: `naclrestsp' is only supported in 64-bit mode ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:45: Error: bad register name `%nacl:32 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:46: Error: bad register name `%nacl:0 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:47: Error: bad register name `%nacl:8 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:48: Error: bad register name `%nacl:16 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:49: Error: bad register name `%nacl:24 (%r15,%rdi)' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:52: Error: bad register name `%r11' ../../../../../../../SRC/newlib/newlib/libc/machine/x86_64/setjmp.S:53: Error: bad register name `%r11d' make[8]: *** [lib_a-setjmp.o] Fehler 1 make[8]: *** Warte auf noch nicht beendete Prozesse...
I am using multilib-portage for cross-compiling packages, so that i get libs (and binaries, if i want them) for both amd64 and x86. In the end, it does finally add -m32 to some vars like CFLAGS and LDFLAGS, when cross-compiling for x86. If you want to test it yourself, there is a qemu image on the distfiles mirrors with a prepared stage4 and multilib-portage.
Sorry, let's say we don't support that at this moment. :-/