| Summary: | arm-softfloat-linux-gnueabi crashes with >=binutils-2.19 with ld: FPE | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Alexey Shvetsov <alexxy> |
| Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ansla80, arm, armin76, maxposedon, ryan |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://sourceware.org/bugzilla/show_bug.cgi?id=9934 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build.log
commit |
||
|
Description
Alexey Shvetsov
2009-02-05 15:04:24 UTC
Created attachment 181037 [details]
build.log
build.log
the actual error: collect2: ld terminated with signal 8 [Floating point exception] make[2]: *** [libgcc_s.so] Error 1 this might be: http://sourceware.org/bugzilla/show_bug.cgi?id=7093 can you please test the patch there ? (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. *** Bug 257704 has been marked as a duplicate of this bug. *** Just FYI, i tried binutils from cvs, same. 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 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) (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... 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]" (In reply to comment #10) Yeah, same here. More info: binutils-2.18.50.0.4 works, binutils-2.18.50.0.5 doesn't. Created attachment 183789 [details]
commit
This is the commit that broke binutils.
Mike, does it shed any light? :)
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
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
Well, wait a second, the patch from PR9945 wasn't applied when i did the checkout. Retrying... Okay, it built fine! :) Will check on native later. added strip fix to 2.19.1-r1 http://sources.gentoo.org/gentoo/src/patchsets/binutils/2.19.1/11_all_binutils-2.18-strip-symbol-table.patch?rev=1.1 |