Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] gcc-4.1.2 eabi softfloat toolchain, undefined reference to "raise"
Date: Mon, 30 Apr 2007 14:57:31 +0200	[thread overview]
Message-ID: <20070430125731.GC18543@aon.at> (raw)
In-Reply-To: <20070426080257.GA7608@z1.synertronixx>

On Thu, Apr 26, 2007 at 10:02:59AM +0200, Konstantin Kletschke wrote:
>I have a toolcahin working quite well: gcc-4.1.2 binutils-2.17, generic
>arm softfloat supporting EABI. This works with kernel and userspace
>well. Only on u-boot it fails at the final stage:
>
>UNDEF_SYM=`arm-linux-objdump -x lib_generic/libgeneric.a board/scb9328/libscb9328.a cpu/arm920t/libarm920t.a cpu/arm920t/imx/libimx.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
>                cd /usr/src/u-boot/1.2.0 && arm-linux-ld -Bstatic -T /usr/src/u-boot/1.2.0/board/scb9328/u-boot.lds -Ttext 0x08f00000  $UNDEF_SYM cpu/arm920t/start.o \
>                        --start-group lib_generic/libgeneric.a board/scb9328/libscb9328.a cpu/arm920t/libarm920t.a cpu/arm920t/imx/libimx.a lib_arm/libarm.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/local/arm/gcc-4.1.2/lib/gcc/arm-linux-uclibcgnueabi/4.1.2 -lgcc \
>                        -Map u-boot.map -o u-boot
>/usr/local/arm/gcc-4.1.2/lib/gcc/arm-linux-uclibcgnueabi/4.1.2/libgcc.a(_dvmd_lnx.o): In function `__div0':
>/usr/src/br/buildroot-20070206/toolchain_build_arm_nofpu/gcc-4.1.2-20070128/gcc/config/arm/lib1funcs.asm:1000: undefined reference to `raise'
>make: *** [u-boot] Error 1

This is a known bug with gcc. There is a bugfix (that i don't really
understand and consequently don't know if it is really accurate)
floating around for this one.

If in doubt, please file a PR in http://gcc.gnu.org/bugzilla/ about this bug
and perhaps add a pointer to the patch if this bug is not yet entered in
bugzilla.

TIA,
>
>Well, compiling u-boot works fine with another arch (pxa xscale), only my arm9 
>i.MX arch triggers a bug here. Does somebody have an advise or tip for
>me how to fix this?

  reply	other threads:[~2007-04-30 12:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-26  8:02 [Buildroot] gcc-4.1.2 eabi softfloat toolchain, undefined reference to "raise" Konstantin Kletschke
2007-04-30 12:57 ` Bernhard Fischer [this message]
2007-05-03  8:35   ` Konstantin Kletschke
2007-05-03  9:57     ` Bernhard Fischer
2007-05-04  7:34       ` Konstantin Kletschke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070430125731.GC18543@aon.at \
    --to=rep.dot.nop@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox