Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257783 - arm-softfloat-linux-gnueabi crashes with >=binutils-2.19 with ld: FPE
Summary: arm-softfloat-linux-gnueabi crashes with >=binutils-2.19 with ld: FPE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/bugzilla/show_b...
Whiteboard:
Keywords:
: 257704 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-05 15:04 UTC by Alexey Shvetsov
Modified: 2009-03-14 11:38 UTC (History)
5 users (show)

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


Attachments
build.log (build.log,1.09 MB, text/plain)
2009-02-05 15:05 UTC, Alexey Shvetsov
Details
commit (plain,33.68 KB, text/plain)
2009-03-03 18:28 UTC, Raúl Porcel (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2009-02-05 15:04:24 UTC
* Overlay eclasses override eclasses from PORTDIR:
 * 
 *   '/usr/local/portage/layman/kde-testing/eclass/kde4-base.eclass'
 *   '/usr/local/portage/layman/kde-testing/eclass/kde4-meta.eclass'
 * 
 * It is best to avoid overriding eclasses from PORTDIR because it will
 * trigger invalidation of cached ebuild metadata that is distributed with
 * the portage tree. If you must override eclasses from PORTDIR then you
 * are advised to add FEATURES="metadata-transfer" to /etc/make.conf and to
 * run `emerge --regen` after each time that you run `emerge --sync`. Set
 * PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you would like to
 * disable this warning.
Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-gentoo-2.0.0
Timestamp of tree: Thu, 05 Feb 2009 11:10:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.6.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.2
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
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages gpg parallel-fetch prelink preserve-libs protect-owned sandbox sfperms sign strict unmerge-orphans userfetch"
FFLAGS="-O3 -pipe -march=native -mtune=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/kde-testing /usr/local/portage/layman/vmware /usr/local/portage/layman/science /usr/local/portage/layman/alexxy /usr/local/overlays/portage /usr/local/overlays/cross"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi addressbook akonadi alsa amd64 amr amrnb amrr amrwb analogtv avahi bash-completion berkdb bittorrent blas branding bzip2 cairo cdaudio cdinstall cdr cli consolekit context cracklib crypt cups cvs cyrillic d daap dbus detex dga dhcp dirac djvu dri dts dv dvb dvbplayer dvbsetup dvd dvdnav dvdr dvdread ebook embedded emboss enca encode evo exif extra fam fbcondecor ffmpeg fftw flac fontconfig foomaticdb fortran ftp gdbm gif gimp git glib glitz gmp google-gadgets gpg gphoto2 gpm grace graphics graphviz gs gsl gstreamer gtk hal humanities iconv idn ieee1394 imagemagick inotify ipv6 isdnlog ithreads jadetex java javascript jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea ladspa lapack latex lcms ldap libffi libnotify live lm_sensors lzo mad marble md5sum mdnsresponder-compat midi mikmod mktemp mmx mmxext mng mp2 mp3 mp4 mpeg mpi mpi-threads mplayer mudflap multilib music mysql ncurses nemesi nepomuk network-cron nls nptl nptlonly nsplugin ogg omega openal openexr opengl openmp pam pch pcntl pcre pdf perl phonon plasma png pnm postscript ppds pppd ps pstricks publishers python qt3support qt4 quicktime rar readline redland reflection resolvconf rtc sandbox schroedinger science sdl semantic-desktop sensord session setup slang smp speex spell spl srt sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs tcl tcpd tetex tex tex4ht themes theora threads tiff tk truetype umfpack unicode urandom usb utempter vde vhook vim vim-syntax visualization vorbis webdav webkit wmf x264 x86emu xattr xcb xcomposite xetex xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexey Shvetsov archtester gentoo-dev 2009-02-05 15:05:07 UTC
Created attachment 181037 [details]
build.log

build.log
Comment 2 SpanKY gentoo-dev 2009-02-22 01:35:37 UTC
the actual error:

collect2: ld terminated with signal 8 [Floating point exception]
make[2]: *** [libgcc_s.so] Error 1
Comment 3 SpanKY gentoo-dev 2009-02-23 14:56:41 UTC
this might be:
http://sourceware.org/bugzilla/show_bug.cgi?id=7093

can you please test the patch there ?
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2009-02-24 12:14:23 UTC
(In reply to comment #3)
> this might be:
> http://sourceware.org/bugzilla/show_bug.cgi?id=7093
> 
> can you please test the patch there ?
> 

Nope, same issue.
Comment 5 Maksim 'max_posedon' Melnikau 2009-02-24 13:07:17 UTC
*** Bug 257704 has been marked as a duplicate of this bug. ***
Comment 6 Raúl Porcel (RETIRED) gentoo-dev 2009-02-24 17:39:13 UTC
Just FYI, i tried binutils from cvs, same.
Comment 7 Andrei Slavoiu 2009-02-28 15:45:57 UTC
It looks like the problem is with crtn.o, as just running the following command produced the same crash:
/usr/bin/armv4tl-softfloat-linux-gnueabi-ld /usr/armv4tl-softfloat-linux-gnueabi/usr/lib/crtn.o
Comment 8 Raúl Porcel (RETIRED) gentoo-dev 2009-02-28 17:07:53 UTC
Mike, btw, i forgot to say that this happens to me even on native, and its not just gcc what fails, everything C related fails(e.g compiling portage-utils)
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2009-02-28 18:10:41 UTC
(In reply to comment #8)
> Mike, btw, i forgot to say that this happens to me even on native, and its not
> just gcc what fails, everything C related fails(e.g compiling portage-utils)
> 

And it happens *AFTER* i rebuild glibc with that binutils. No matter what glibc, gcc version i try. The problem is definitely on binutils or something our glibc does with that binutils version...
Comment 10 Andrei Slavoiu 2009-03-01 11:38:13 UTC
It's not just binutils 2.19.1, same happens with 2.19 also. crossdev --b 2.18-r4 -t armv4tl-softfloat-linux-gnueabi succeeds while crossdev --b 2.19 -t armv4tl-softfloat-linux-gnueabi fails on "Emerging cross-gcc-stage2..." with "collect2: ld terminated with signal 8 [Floating point exception]"
Comment 11 Raúl Porcel (RETIRED) gentoo-dev 2009-03-01 11:46:10 UTC
(In reply to comment #10)
Yeah, same here.
Comment 12 Raúl Porcel (RETIRED) gentoo-dev 2009-03-02 10:36:24 UTC
More info:
binutils-2.18.50.0.4 works, binutils-2.18.50.0.5 doesn't.
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2009-03-03 18:28:50 UTC
Created attachment 183789 [details]
commit

This is the commit that broke binutils.

Mike, does it shed any light? :)
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2009-03-10 20:52:19 UTC
With the patch from upstream:

        /usr/libexec/gcc/arm-softfloat-linux-gnueabi/ar  rc libgcc.a $objects
/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ranlib libgcc.a
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/var/tmp/cross/arm-softfloat-linux-gnueabi/portage/cross-arm-softfloat-linux-gnueabi/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/var/tmp/cross/arm-softfloat-linux-gnueabi/portage/cross-arm-softfloat-linux-gnueabi/gcc-4.3.3/work/build'
make: *** [all] Error 2
Comment 15 Raúl Porcel (RETIRED) gentoo-dev 2009-03-13 16:48:32 UTC
Now, with a cvs checkout of binutils:

        /usr/libexec/gcc/arm-softfloat-linux-gnueabi/ar  rc libgcc.a $objects
/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ranlib libgcc.a
/usr/libexec/gcc/arm-softfloat-linux-gnueabi/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make[2]: *** [libgcc_s.so] Error 1
make[2]: Leaving directory `/var/tmp/cross/arm-softfloat-linux-gnueabi/portage/cross-arm-softfloat-linux-gnueabi/gcc-4.3.3/work/build/arm-softfloat-linux-gnueabi/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/var/tmp/cross/arm-softfloat-linux-gnueabi/portage/cross-arm-softfloat-linux-gnueabi/gcc-4.3.3/work/build'
make: *** [all] Error 2
Comment 16 Raúl Porcel (RETIRED) gentoo-dev 2009-03-13 16:51:12 UTC
Well, wait a second, the patch from PR9945 wasn't applied when i did the checkout.
Retrying...
Comment 17 Raúl Porcel (RETIRED) gentoo-dev 2009-03-13 17:47:16 UTC
Okay, it built fine! :)

Will check on native later.