From patchwork Fri Aug 17 12:28:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: bugzilla@busybox.net X-Patchwork-Id: 178196 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 7219B2C00A1 for ; Fri, 17 Aug 2012 22:28:48 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BECB68E2A7; Fri, 17 Aug 2012 12:28:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id miP4oRNDcJYf; Fri, 17 Aug 2012 12:28:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BA4D48C874; Fri, 17 Aug 2012 12:28:40 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DB82A8F75B for ; Fri, 17 Aug 2012 12:28:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 96FBE899DD for ; Fri, 17 Aug 2012 12:28:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6hB5CK4RIqWg for ; Fri, 17 Aug 2012 12:28:37 +0000 (UTC) Received: from busybox.osuosl.org (busybox.osuosl.org [140.211.167.224]) by whitealder.osuosl.org (Postfix) with ESMTP id DE1CE8A2AE for ; Fri, 17 Aug 2012 12:28:37 +0000 (UTC) Received: by busybox.osuosl.org (Postfix, from userid 81) id D041D971EA; Fri, 17 Aug 2012 12:28:37 +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: normal X-Bugzilla-Who: thomas.petazzoni@free-electrons.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: <20120817122837.D041D971EA@busybox.osuosl.org> Date: Fri, 17 Aug 2012 12:28:37 +0000 (UTC) Subject: [Buildroot] [Bug 5450] AT91SAM9260 Bootstrap compilation problem 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=5450 --- Comment #2 from Thomas Petazzoni 2012-08-17 12:28:37 UTC --- Thanks for reporting this bug! After a quick analysis, it sounds like the AT91Bootstrap makefile is not parallel-build capable: it runs the "clean" procedure and the build procedure in parallel, so depending on the scheduling and other conditions, it may happen that some .o files get removed after they have been produced. Can you try the below change and see if it fixes the problem for you: endef define AT91BOOTSTRAP_INSTALL_IMAGES_CMDS diff --git a/boot/at91bootstrap/at91bootstrap.mk b/boot/at91bootstrap/at91bootstrap.mk index d8caed7..35f6260 100644 --- a/boot/at91bootstrap/at91bootstrap.mk +++ b/boot/at91bootstrap/at91bootstrap.mk @@ -31,7 +31,7 @@ AT91BOOTSTRAP_POST_PATCH_HOOKS += AT91BOOTSTRAP_APPLY_CUSTOM_PATCHES endif define AT91BOOTSTRAP_BUILD_CMDS - $(MAKE) CROSS_COMPILE=$(TARGET_CROSS) -C $(@D)/$(AT91BOOTSTRAP_MAKE_SUBDIR) + $(MAKE1) CROSS_COMPILE=$(TARGET_CROSS) -C $(@D)/$(AT91BOOTSTRAP_MAKE_SUBDIR)