Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433669 - sys-devel/binutils: on 32bit hosts with arm targets: collect2: ld terminated with signal 11 [Segmentation fault]
Summary: sys-devel/binutils: on 32bit hosts with arm targets: collect2: ld terminated ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: ARM Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Keywords:
: 433419 434560 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-01 17:17 UTC by Tibor Vago
Modified: 2014-01-19 03:39 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix memory alignment problems in binutils (binutils-2.22-alignment.patch,5.15 KB, patch)
2012-10-14 13:02 UTC, Ambroz Bizjak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tibor Vago 2012-09-01 17:17:58 UTC
armv5tel-softfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed  -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.3  -B/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/  -Wl,--version-script=/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -nostdlib -nostartfiles -e __libc_main -Wl,-z,now -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -Wl,-rpath-link=/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so -T /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.lds /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/abi-note.o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/soinit.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sofini.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/interp.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/ld.so -lgcc
collect2: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15'
make: *** [all] Error 2
emake failed
 * ERROR: sys-libs/glibc-2.15-r2 failed (compile phase):
 *   make for default failed
 * 
 * Call stack:
 *           ebuild.sh, line   85:  Called src_compile
 *         environment, line 3552:  Called eblit-run 'src_compile'
 *         environment, line  915:  Called eblit-glibc-src_compile
 *   src_compile.eblit, line  221:  Called toolchain-glibc_src_compile
 *   src_compile.eblit, line  132:  Called die
 * The specific snippet of code:
 *              emake || die "make for ${ABI} failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-libs/glibc-2.15-r2'`,
 * the complete build log and the output of `emerge -pqv '=sys-libs/glibc-2.15-r2'`.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.15-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.15-r2/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl'
 * S: '/var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15'


nas ~ # emerge --info
Portage 2.1.11.9 (default/linux/arm/10.0/armv5te, gcc-4.6.3, glibc-2.15-r2, 3.4.9-gentoo armv5tel)
=================================================================
System uname: Linux-3.4.9-gentoo-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.1
Timestamp of tree: Sat, 01 Sep 2012 13:00:01 +0000
distcc 3.1 armv5tel-softfloat-linux-gnueabi [enabled]
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="*"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv5te"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv5te"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles news noinfo parallel-fetch parse-eapi-ebuild-head protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://ftp.fsn.hu/pub/linux/distributions/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="32bit arm bzip2 cli cups cxx gmp iconv ipv6 ithreads modules ncurses nopie nossp nptl optimization pam pppd python2 readline session ssl strong-optimization symlink unicode 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 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 sheets 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

With binutils-2.21.1-r1 I can compile glibc as you can see.
Comment 1 Tibor Vago 2012-09-01 19:31:18 UTC
ld v2.22.90 also segfaults
Comment 2 Tibor Vago 2012-09-01 20:41:02 UTC
*** Bug 433419 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2012-09-04 19:17:25 UTC
does it fail at the same point every time ?  is there anything in `dmesg` ?
Comment 4 Tibor Vago 2012-09-04 20:42:32 UTC
There is no relevant in dmesg.

Now it segfaults at here:

armv5tel-softfloat-linux-gnueabi-gcc  -nostdlib -nostartfiles -static -o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sln  -Wl,-O1 -Wl,--as-needed  /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/crt1.o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/crti.o `armv5tel-softfloat-linux-gnueabi-gcc   --print-file-name=crtbegin.o` /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sln.o  -Wl,--start-group /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.a -lgcc -lgcc_eh   /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.a -Wl,--end-group `armv5tel-softfloat-linux-gnueabi-gcc   --print-file-name=crtend.o` /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/crtn.o
collect2: ld terminated with signal 11 [Segmentation fault]
distcc[15826] ERROR: compile (null) on localhost failed
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sln] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15/elf'
make[1]: *** [elf/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15'
make: *** [all] Error 2
emake failed


I don't know but maybe relevant that this machine has only 256MByte of memory.
Comment 5 Tibor Vago 2012-09-13 20:36:57 UTC
I was read this: http://www.bitwizard.nl/sig11/

So, after a week, I booted the machine again and tred twice to compile glibc and it alwasy stucked at as in previous comment (at linking sln). Rebooted the machine and tried again and happens the same thing. If the page is correct above then this is a software error maybe in binutils (ld).

What to do next?
Comment 6 SpanKY gentoo-dev 2012-09-24 01:51:28 UTC
you're using binutils-2.21.  please try upgrading to 2.22+ and see if it still fails to compile.
Comment 7 SpanKY gentoo-dev 2012-09-24 02:45:35 UTC
(In reply to comment #6)

nm, you already said you tried that in comment #1
Comment 8 Didier Barvaux 2012-09-27 17:48:56 UTC
Similar problem here while emerging sys-libs/glibc-2.15-r2 on similar hardware.

---------------------
armv5tel-softfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed  -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.3  -B/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/  -Wl,--version-script=/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -nostdlib -nostartfiles -e __libc_main -Wl,-z,now -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -Wl,-rpath-link=/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so -T /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.lds /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/abi-note.o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/soinit.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sofini.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/interp.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/ld.so -lgcc
collect2: ld terminé par le signal 11 [Erreur de segmentation]
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so] Erreur 1
make[2] : on quitte le répertoire « /var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15/elf »
make[1]: *** [elf/subdir_lib] Erreur 2
make[1] : on quitte le répertoire « /var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15 »
make: *** [all] Erreur 2
emake failed
---------------------

---------------------------------------------
# emerge --info
Portage 2.1.11.9 (default/linux/arm/10.0/armv5te/server, gcc-4.5.4, glibc-2.14.1-r3, 2.6.38-test4 armv5tel)
=================================================================
System uname: Linux-2.6.38-test4-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.1
Timestamp of tree: Sat, 22 Sep 2012 12:45:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv5te"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv5te"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl acpi arm berkdb bzip2 cli cracklib crypt cups fortran gdbm iconv idn ipv6 libnotify modules mudflap ncurses nls nocxx nptl openmp pam pcre pppd readline session ssl tcpd truetype unicode xml 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 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 sheets 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
---------------------------------------------

---------------------------------------------
# cat /proc/cpuinfo 
Processor	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1199.30
Features	: swp half thumb fastmult edsp 
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: BUBBA3 Kirkwood based miniserver
Revision	: 0000
Serial		: 0000000000000000
---------------------------------------------
Comment 9 Bug 2012-09-30 18:41:23 UTC
Similar problem here while emerging sys-apps/busybox-1.20.2 on similar hardware.
Emerging with binutils-2.21.1-r1 works.

-------------------------------------------

# emerge sys-apps/busybox-1.20.2
...
armv5tel-softfloat-linux-gnueabi-gcc -O2 -pipe -march=armv5te -fno-strict-aliasing -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -ffunction-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -static -Wl,-O1 -Wl,--as-needed -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--start-group applets/built-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findutils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networking/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archival/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o networking/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in.o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group
==========
collect2: ld terminated with signal 11 [Segmentation fault]
debianutils/lib.a(mktemp.o): In function `mktemp_main':
mktemp.c:(.text.mktemp_main+0xdc): warning: the use of `tempnam' is dangerous, better use `mkstemp'
networking/lib.a(nslookup.o): In function `print_host':
nslookup.c:(.text.print_host+0x4c): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x114): warning: Using 'gethostbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0xd4): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_rresolve':
inet_common.c:(.text.INET_rresolve+0x188): warning: Using 'getnetbyaddr' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(inet_common.o): In function `INET_resolve':
inet_common.c:(.text.INET_resolve+0x114): warning: Using 'getnetbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
libbb/lib.a(xconnect.o): In function `bb_lookup_port':
xconnect.c:(.text.bb_lookup_port+0x54): warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
networking/lib.a(netstat.o): In function `ip_port_str':
netstat.c:(.text.ip_port_str+0x70): warning: Using 'getservbyport' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
make: *** [busybox_unstripped] Error 1

-------------------------------------------

# emerge --info
Portage 2.1.11.9 (default/linux/arm/10.0, gcc-4.5.4, glibc-2.15-r2, 2.6.32-5-kirkwood armv5tel)
=================================================================
System uname: Linux-2.6.32-5-kirkwood-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.1
Timestamp of tree: Sun, 30 Sep 2012 16:00:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          3.2.3
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv5te"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv5te"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl arm berkdb bzip2 cli cracklib crypt cups cxx fortran gdbm gpm iconv ipv6 modules mudflap ncurses nls nptl openmp pam pcre pppd readline session ssl tcpd unicode 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 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 sheets 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap omapfb dummy v4l" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

-------------------------------------------

# cat /proc/cpuinfo 
Processor	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1199.30
Features	: swp half thumb fastmult edsp 
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Marvell OpenRD Client Board
Revision	: 0000
Serial		: 0000000000000000
Comment 10 SpanKY gentoo-dev 2012-10-05 05:58:17 UTC
*** Bug 434560 has been marked as a duplicate of this bug. ***
Comment 11 Ambroz Bizjak 2012-10-14 13:02:16 UTC
Created attachment 326522 [details, diff]
fix memory alignment problems in binutils

Please try this patch. I've been having ld crashes like that which can be reproduced by:

gcc -static hello.c

where hello.c is pretty much anything, like: int main () { return 0; }

I've tracked it down to a memory misalignment bug, and this patch I've put together fixes it. The bug only occurs on ARMv5 and because ARMv6 supports misaligned memory access.
Comment 12 Ambroz Bizjak 2012-10-14 13:15:13 UTC
To confirm that it is indeed an alignment problem, /proc/cpu/alignment can be checked:

localhost ~ # cat /proc/cpu/alignment 
User:           25
System:         0
Skipped:        0
Half:           0
Word:           0
DWord:          0
Multi:          0
User faults:    0 (ignored)

The first line counts the number of misaligned memory accesses. If it increments as your program crashes (or any time), you're almost certainly looking at a misalignment bug. However by default the kernel will not signal the program in case of misaligned access, possibly resulting in a crash later on (because the CPU did something else than the programmer expected it would do).

With this command the kernel will crash (SIGBUS) any process immediately when a misaligned access occurs, which makes it much easier to find the part of the source code that is at fault:

# echo 4 > /proc/cpu/alignment
(note how "User faults" now becomes "4 (signal)")

# ulimit -c umlimited
# gcc -static hello.c
collect2: ld terminated with signal 7 [Bus error], core dumped
# gdb /usr/armv5tel-softfloat-linux-gnueabi/binutils-bin/2.22/ld ./core
Comment 13 Ambroz Bizjak 2012-10-14 14:15:06 UTC
I've opened a bug upstream: http://sourceware.org/bugzilla/show_bug.cgi?id=14718
Comment 14 Didier Barvaux 2012-10-20 08:46:07 UTC
(In reply to comment #11)
> Created attachment 326522 [details, diff] [details, diff]
> fix memory alignment problems in binutils
> 
> Please try this patch. I've been having ld crashes like that which can be
> reproduced by:
> 
> gcc -static hello.c
> 
> where hello.c is pretty much anything, like: int main () { return 0; }
> 
> I've tracked it down to a memory misalignment bug, and this patch I've put
> together fixes it. The bug only occurs on ARMv5 and because ARMv6 supports
> misaligned memory access.

First of all, thank for your answers and analysis!

The command does not fail on my system. I however restarted the build of glibc and will monitor the /proc/cpu/alignment file for errors.

Regards,
Didier
Comment 15 Tibor Vago 2012-10-20 08:49:33 UTC
I can comfirm comment 12.
Comment 16 Didier Barvaux 2012-10-20 10:09:36 UTC
(In reply to comment #14)
> (In reply to comment #11)
> > Created attachment 326522 [details, diff] [details, diff] [details, diff]
> > fix memory alignment problems in binutils
> > 
> > Please try this patch. I've been having ld crashes like that which can be
> > reproduced by:
> > 
> > gcc -static hello.c
> > 
> > where hello.c is pretty much anything, like: int main () { return 0; }
> > 
> > I've tracked it down to a memory misalignment bug, and this patch I've put
> > together fixes it. The bug only occurs on ARMv5 and because ARMv6 supports
> > misaligned memory access.
> 
> First of all, thank for your answers and analysis!
> 
> The command does not fail on my system. I however restarted the build of
> glibc and will monitor the /proc/cpu/alignment file for errors.

I confirm that /proc/cpu/alignment reports more errors once glibc build failed. I'll try the patch.

Regards,
Didier
Comment 17 Didier Barvaux 2012-10-20 15:35:16 UTC
With 'echo 4 > /proc/cpu/alignment', the build fails with the following error:

armv5tel-softfloat-linux-gnueabi-gcc  -Wl,-O1 -Wl,--as-needed  -shared -static-libgcc -Wl,-O1  -Wl,-z,defs -Wl,-dynamic-linker=/lib/ld-linux.so.3  -B/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/  -Wl,--version-script=/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.map -Wl,-soname=libc.so.6 -Wl,-z,combreloc -Wl,-z,relro -nostdlib -nostartfiles -e __libc_main -Wl,-z,now -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt -L/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -Wl,-rpath-link=/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/math:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/dlfcn:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nss:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nis:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/rt:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/resolv:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/crypt:/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/nptl -o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so -T /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/shlib.lds /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/csu/abi-note.o /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/soinit.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc_pic.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/sofini.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/interp.os /var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/elf/ld.so -lgcc
collect2: ld terminé par le signal 7 [Erreur du bus]
make[2]: *** [/var/tmp/portage/sys-libs/glibc-2.15-r2/work/build-default-armv5tel-softfloat-linux-gnueabi-nptl/libc.so] Erreur 1
make[2] : on quitte le répertoire « /var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15/elf »
make[1]: *** [elf/subdir_lib] Erreur 2
make[1] : on quitte le répertoire « /var/tmp/portage/sys-libs/glibc-2.15-r2/work/glibc-2.15 »
make: *** [all] Erreur 2
Comment 18 Siarhei Siamashka 2012-10-20 16:03:13 UTC
(In reply to comment #17)
> With 'echo 4 > /proc/cpu/alignment', the build fails with the following
> error:

To see what exactly is broken, a core dump and gdb backtrace would be useful. This is explained in comment 12 and also http://www.gentoo.org/proj/en/qa/backtraces.xml may be a good read.

Adding "splitdebug installsources" to FEATURES in /etc/make.conf and re-emerging binutils before running this test allows to have the needed debugging symbols.

PS. this ld failure might be not reproduceble anymore after the fix for bug 438522.
Comment 19 SpanKY gentoo-dev 2012-10-20 16:13:44 UTC
upstream is already aware & working on the problem.  there's no need to try and debug it further.
Comment 20 Josh Parsons 2012-10-31 10:30:50 UTC
binutils-2.23 fixes the problem for me (this is on an OpenRD armv5). Can it be stabilised on arm? (since this bug prevents building a stable version of glibc).
Comment 21 Henrique Rodrigues 2012-11-05 16:07:48 UTC
(In reply to comment #20)
> binutils-2.23 fixes the problem for me (this is on an OpenRD armv5). Can it
> be stabilised on arm? (since this bug prevents building a stable version of
> glibc).

I confirm that binutils-2.23 also works for me.
Comment 22 Jim Faulkner 2012-11-06 00:39:46 UTC
(In reply to comment #21)
> (In reply to comment #20)
> > binutils-2.23 fixes the problem for me (this is on an OpenRD armv5). Can it
> > be stabilised on arm? (since this bug prevents building a stable version of
> > glibc).
> 
> I confirm that binutils-2.23 also works for me.

binutils-2.23 is working on my Pogoplug E02 as well.
Comment 23 SpanKY gentoo-dev 2012-11-10 06:14:59 UTC
(In reply to comment #20)

i doubt the version has anything to do with it.  we stopped enabling 64bit bfds for all targets now.  i bet if you re-emerge current stable binutils, it'll work just fine now too.
Comment 24 Henrique Rodrigues 2012-11-20 17:49:36 UTC
(In reply to comment #23)
> (In reply to comment #20)
> 
> i doubt the version has anything to do with it.  we stopped enabling 64bit
> bfds for all targets now.  i bet if you re-emerge current stable binutils,
> it'll work just fine now too.

I confirm that your bet is right. It works now.