From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Ney Date: Tue, 31 Jul 2007 21:12:41 +0200 Subject: [Buildroot] "undefined reference to 'raise'" In-Reply-To: References: <20070731183534.8dcd01b7.philippe.ney@tizoo.com> Message-ID: <20070731211241.58e9c228.philippe.ney@tizoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > 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 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; }