Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Ney <philippe.ney@tizoo.com>
To: buildroot@busybox.net
Subject: [Buildroot] "undefined reference to 'raise'"
Date: Tue, 31 Jul 2007 21:12:41 +0200	[thread overview]
Message-ID: <20070731211241.58e9c228.philippe.ney@tizoo.com> (raw)
In-Reply-To: <OF25D64CFB.9E7891E3-ONC2257329.00622DB0-C3257329.005CEFFF@visonic.com>

>  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;
 }

      reply	other threads:[~2007-07-31 19:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=20070731211241.58e9c228.philippe.ney@tizoo.com \
    --to=philippe.ney@tizoo.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