From patchwork Fri Apr 5 22:34:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bugzilla@busybox.net X-Patchwork-Id: 234292 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 767712C0116 for ; Sat, 6 Apr 2013 09:35:39 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 23D51A023D; Fri, 5 Apr 2013 22:35:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yBiBB1Ptz1VI; Fri, 5 Apr 2013 22:35:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 1F8B6A01F9; Fri, 5 Apr 2013 22:35:36 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6174A8F74B for ; Fri, 5 Apr 2013 22:35:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B3207A01F9 for ; Fri, 5 Apr 2013 22:35:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id J16uAtKNNnjW for ; Fri, 5 Apr 2013 22:35:32 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.224]) by hemlock.osuosl.org (Postfix) with ESMTP id DBDD2A01CB for ; Fri, 5 Apr 2013 22:35:32 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 81) id 04BFD8E03C; Fri, 5 Apr 2013 22:34:47 +0000 (UTC) From: bugzilla@busybox.net To: buildroot@uclibc.org X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: buildroot X-Bugzilla-Component: Other X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: aleksandar.zivkovic@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P5 X-Bugzilla-Assigned-To: unassigned@buildroot.uclibc.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: https://bugs.busybox.net/ Auto-Submitted: auto-generated MIME-Version: 1.0 Message-Id: <20130405223448.04BFD8E03C@busybox.osuosl.org> Date: Fri, 5 Apr 2013 22:34:47 +0000 (UTC) Subject: [Buildroot] [Bug 4327] I use the i686-linux-gcc-4.6.1 compiled grub-0.97 does not work X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net https://bugs.busybox.net/show_bug.cgi?id=4327 --- Comment #6 from Aleksandar 2013-04-05 22:35:31 UTC --- (In reply to comment #4) > Could you test the patch applied on the Ubuntu package, as discussed at > https://bugs.launchpad.net/ubuntu/+source/grub/+bug/837815 ? Ubuntu package approach works at my side but not in the way given in Comment 4. Seems that configuration logic doesn't work or it is overriden with debian patch. Now, I'm aware that my way is hardcoding and not final solution to problem but at least it can be used until more systematic solution is added. Patch given here is executed after debian patch is applied. Logic to determine gcc version is missing in my approach. Also patch after debian patch is not in Buildroot spirit. 1) patch file: boot/grub/grub.500-gcc4_6_3.patch.after_debian_patch 2) update of boot/grub/grub.mk @@ -46,6 +46,7 @@ (cd $(@D) ; for f in `cat debian/patches/00list | grep -v ^#` ; do \ cat debian/patches/$$f | patch -g0 -p1 ; \ done) + patch -d $(@D) -p1 < boot/grub/grub.500-gcc4_6_3.patch.after_debian_patch endef GRUB_POST_PATCH_HOOKS += GRUB_DEBIAN_PATCHES diff -Naur a/configure b/configure --- a/configure 2013-04-06 00:10:40.998698398 +0200 +++ b/configure 2013-04-06 00:26:40.610662350 +0200 @@ -3532,7 +3532,7 @@ fi fi fi - +STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-reorder-functions"