Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] "undefined reference to 'raise'"
@ 2007-07-31 15:00 Shai Lifshitz
  2007-07-31 16:35 ` Philippe Ney
  0 siblings, 1 reply; 4+ messages in thread
From: Shai Lifshitz @ 2007-07-31 15:00 UTC (permalink / raw)
  To: buildroot

I am using the buildroot to compile the u-boot.

the flags I used:
BR2_arm=y
BR2_arm926t=y
BR2_ARM_EABI=y

and I get the "undefined reference to raise" error.

can someone help me with this issue?

Shai Lifshitz
email: shail at visonic.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070731/f941ee46/attachment.htm 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] "undefined reference to 'raise'"
  2007-07-31 15:00 [Buildroot] "undefined reference to 'raise'" Shai Lifshitz
@ 2007-07-31 16:35 ` Philippe Ney
  2007-07-31 17:59   ` Shai Lifshitz
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Ney @ 2007-07-31 16:35 UTC (permalink / raw)
  To: buildroot

> I am using the buildroot to compile the u-boot.
> 
> the flags I used:
> BR2_arm=y
> BR2_arm926t=y
> BR2_ARM_EABI=y
> 
> and I get the "undefined reference to raise" error.
> 
> can someone help me with this issue?

Mmmm... google with "undefined reference to 'raise'" ?

Philippe

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] "undefined reference to 'raise'"
  2007-07-31 16:35 ` Philippe Ney
@ 2007-07-31 17:59   ` Shai Lifshitz
  2007-07-31 19:12     ` Philippe Ney
  0 siblings, 1 reply; 4+ messages in thread
From: Shai Lifshitz @ 2007-07-31 17:59 UTC (permalink / raw)
  To: buildroot

 I try to build u-boot with buildroot with the following configuration 
flags:

BR2_arm=y
BR2_arm926t=y
BR2_ARM_EABI=y


I did look in google, but found only two solutions:

1) add a patch (which does not exist any more on the net)
2) write an empty 'raise' function (which quite worries me not to treat 
the division by zero)

following is the u-boot compilation error:

make[1]: Leaving directory 
`/misc/BBA_Bootloader/boot/u-boot-1.1.5-atmel_1.1/common'

UNDEF_SYM=`arm-linux-objdump -x lib_generic/libgeneric.a 
board/visonic_bba/libvisonic_bba.a cpu/arm926ej-s/libarm926ej-s.a
cpu/arm926ej-s/at91sam926x/libat91sam926x.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 /misc/BBA_Bootloader/boot/u-boot-1.1.5-atmel_1.1 && 
arm-linux-ld -Bstatic -T 
/misc/BBA_Bootloader/boot/u-boot-1.1.5-atmel_1.1/board/visonic_bba/u-boot.lds
           -Ttext 0x23f00000  -no-warn-mismatch  $UNDEF_SYM 
cpu/arm926ej-s/start.o \ --start-group lib_generic/libgeneric.a 
board/visonic_bba/libvisonic_bba.a
           cpu/arm926ej-s/libarm926ej-s.a 
cpu/arm926ej-s/at91sam926x/libat91sam926x.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 
/misc/arm/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.2.0 
-lgcc \ -Map u-boot.map -o u-boot

/misc/arm/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.2.0/libgcc.a(_dvmd_lnx.o): 
In function `__div0':
/misc/arm/buildroot/toolchain_build_arm/gcc-4.2.0/gcc/config/arm/lib1funcs.asm:1000: 
undefined reference to `raise'
/misc/arm/buildroot/build_arm/staging_dir/usr/bin/../lib/gcc/arm-linux-uclibcgnueabi/4.2.0/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0): 
undefined reference to `__aeabi_unwind_cpp_pr0'
make: *** [u-boot] Error 1

if someone can help me with this one, I'll be very grateful

Shai Lifshitz
email: shail at visonic.com





Philippe Ney <philippe.ney@tizoo.com>
Sent by: buildroot-bounces at uclibc.org
07/31/2007 08:35 PM
 
        To:     buildroot at uclibc.org
        cc: 
        Subject:        Re: [Buildroot] "undefined reference to 'raise'"


> I am using the buildroot to compile the u-boot.
> 
> the flags I used:
> BR2_arm=y
> BR2_arm926t=y
> BR2_ARM_EABI=y
> 
> and I get the "undefined reference to raise" error.
> 
> can someone help me with this issue?

Mmmm... google with "undefined reference to 'raise'" ?

Philippe
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20070731/f6ea3e8c/attachment.htm 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] "undefined reference to 'raise'"
  2007-07-31 17:59   ` Shai Lifshitz
@ 2007-07-31 19:12     ` Philippe Ney
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Ney @ 2007-07-31 19:12 UTC (permalink / raw)
  To: buildroot

>  I try to build u-boot with buildroot with the following configuration 
> flags:
> 
> BR2_arm=y
> BR2_arm926t=y
> BR2_ARM_EABI=y
> 
> 
> I did look in google, but found only two solutions:
> 
> 1) add a patch (which does not exist any more on the net)

Hi,

Here is the patch I talked about.

Philippe


# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# 
# T2 SDE: package/.../uclibc/arm-raise.patch
# Copyright (C) 2006 The T2 SDE Project
# 
# More information can be found in the files COPYING and README.
# 
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- T2-COPYRIGHT-NOTE-END ---

Work arounds undefined reference to raise() on at least arm with gcc-4.1.

  - Rene Rebe <rene@exactcode.de> from uclibc mailing list discussion

--- uClibc-0.9.28/ldso/include/dl-string.h.vanilla	2006-04-02 17:18:31.363080250 +0200
+++ uClibc-0.9.28/ldso/include/dl-string.h	2006-04-02 17:18:58.144754000 +0200
@@ -228,7 +228,8 @@
 	    char temp;
 	    do_rem(temp, i, 10);
 	    *--p = '0' + temp;
-	    i /= 10;
+	    i /= 2;
+	    i *= -(-1ul / 5ul);
 	} while (i > 0);
 	return p;
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-31 19:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-31 15:00 [Buildroot] "undefined reference to 'raise'" Shai Lifshitz
2007-07-31 16:35 ` Philippe Ney
2007-07-31 17:59   ` Shai Lifshitz
2007-07-31 19:12     ` Philippe Ney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox