From patchwork Fri Jan 20 18:18:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 717861 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3v4prV64l1z9t1H for ; Sat, 21 Jan 2017 05:19:21 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4B38986830; Fri, 20 Jan 2017 18:19:18 +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 FNq3FEvsr6Ki; Fri, 20 Jan 2017 18:19:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 0803486824; Fri, 20 Jan 2017 18:19:17 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 3FD3D1BFB52 for ; Fri, 20 Jan 2017 18:19:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 38B782CEBB for ; Fri, 20 Jan 2017 18:19:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Fp0sBlLVS2eK for ; Fri, 20 Jan 2017 18:19:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by silver.osuosl.org (Postfix) with ESMTPS id 310DC2A245 for ; Fri, 20 Jan 2017 18:19:12 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id CBC88198081F; Fri, 20 Jan 2017 16:15:42 -0200 (BRST) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id BBC1414BD0C1; Fri, 20 Jan 2017 16:15:42 -0200 (BRST) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id RKayeTSLhZ59; Fri, 20 Jan 2017 16:15:42 -0200 (BRST) Received: from PEDELD202344.datacom.net (pedeld202344.datacom.net [10.0.120.87]) by mail.datacom.ind.br (Postfix) with ESMTPSA id 978D114B7D70; Fri, 20 Jan 2017 16:15:42 -0200 (BRST) From: Carlos Santos To: buildroot@buildroot.org Date: Fri, 20 Jan 2017 16:18:54 -0200 Message-Id: <1484936334-19116-1-git-send-email-casantos@datacom.ind.br> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] poco: avoid build failures on multicore hosts X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Parallel build still fails on heavilly multicore machines (e.g. -j25) and hacks likecommit 32f4957b153bdabe7af60d529942aca7d1a4783d do not seem to be effective. Let's simply use MAKE1 for the build step, instead. Fixes: http://autobuild.buildroot.net/results/388/38834ad3013fe79e5e4f75997133f1bd827be6dc Signed-off-by: Carlos Santos --- Extra information: here at DATACOM we have a build farm with several multicore blades that usually build with "make -j25". With this setup we have been observing compilation failures each two days. Change-Id: If80cd0b01ceb8b0aee886ea96a266fa864fa8eb0 --- package/poco/poco.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/poco/poco.mk b/package/poco/poco.mk index 79452c0..54ec701 100644 --- a/package/poco/poco.mk +++ b/package/poco/poco.mk @@ -57,8 +57,9 @@ define POCO_CONFIGURE_CMDS --no-samples) endef +# Use $(MAKE1) to avoid failures on heavilly parallel machines (e.g. -j25) define POCO_BUILD_CMDS - $(MAKE) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \ + $(MAKE1) POCO_TARGET_OSARCH=$(ARCH) CROSS_COMPILE=$(TARGET_CROSS) \ MYSQL_LIBDIR=$(STAGING_DIR)/usr/lib/mysql \ MYSQL_INCDIR=$(STAGING_DIR)/usr/include/mysql \ DEFAULT_TARGET=$(POCO_MAKE_TARGET) -C $(@D)