From patchwork Mon Feb 3 16:59:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1232928 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=LdyRjCr7; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48BDb66Kpzz9s3x for ; Tue, 4 Feb 2020 04:00:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9B58D8592F; Mon, 3 Feb 2020 16:59:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZzalPfDcVgCN; Mon, 3 Feb 2020 16:59:55 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2353784FDD; Mon, 3 Feb 2020 16:59:55 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 917A31BF276 for ; Mon, 3 Feb 2020 16:59:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8DCC18138B for ; Mon, 3 Feb 2020 16:59:53 +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 5NrCWpRPgp2s for ; Mon, 3 Feb 2020 16:59:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcmd14161.aruba.it (smtpcmd14161.aruba.it [62.149.156.161]) by whitealder.osuosl.org (Postfix) with ESMTP id 46058810F4 for ; Mon, 3 Feb 2020 16:59:51 +0000 (UTC) Received: from ubuntu.localdomain ([212.103.203.10]) by smtpcmd14.ad.aruba.it with bizsmtp id yGzn2100E0DySFo01Gzp36; Mon, 03 Feb 2020 17:59:49 +0100 From: Giulio Benetti To: buildroot@buildroot.org Date: Mon, 3 Feb 2020 17:59:44 +0100 Message-Id: <20200203165946.50232-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200203165946.50232-1-giulio.benetti@benettiengineering.com> References: <20200203165946.50232-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1580749189; bh=qStdiqbeyM74nGGd4VwicXOAU+sqmHLzOdbAomNE8kA=; h=From:To:Subject:Date:MIME-Version; b=LdyRjCr7S56FCNcmPYur90cAXVOAt/vcCkcd8cTW9cJu/j1wNJxSEIwqMEdpMEIGR UkHJ+waK9w0O4HQ4oZrdVeDkyXDUJxmzMrePEuDU2EfT+hlPhX41HpSnl4Q+6wauUV wk55BzwddmSiPylYUHaJxR8/p6M260I9V2oqtYzFBM5EimIS2ADwLOv/PLukEVsYyd 9Jldivrs2i/etceU3V9ioDkUuBWyL4dxQdCKnq74wQdWFLLscUz342LT8cx1mzOqJa tZBdRb4u8m3hHEWHcOC8Tj6Ov8OB2Uw9yW/tWoZX9/pDjaiSuLWUTe9r7MrJiY4q1Y 9WlFpWhcpjZRA== Subject: [Buildroot] [PATCH 1/3] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_93532 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Giulio Benetti , Romain Naour , Thomas De Schampheleire , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" GCC hangs while building bullet for the Riscv32 Arch: http://autobuild.buildroot.net/results/9a4/9a405ec6fabfa306c14a671a5e09359ac623c25b/ Reported on gcc bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93532 This bug manifests up to version 8.x Signed-off-by: Giulio Benetti --- toolchain/Config.in | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index 858121d2c5..1be898731a 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -159,6 +159,14 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_90620 bool default y if BR2_microblaze +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93532 +# An infinite loop exists on riscv32 gcc. This doesn't manifest on gcc 9.x +# http://autobuild.buildroot.net/results/9a4/9a405ec6fabfa306c14a671a5e09359ac623c25b/ +config BR2_TOOLCHAIN_HAS_GCC_BUG_93532 + bool + default y if BR2_RISCV_32 + depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool From patchwork Mon Feb 3 16:59:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1232927 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=IsSPz2Hk; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48BDb63nlBz9sRs for ; Tue, 4 Feb 2020 04:00:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 55A50204E8; Mon, 3 Feb 2020 16:59:58 +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 R4l6dRpK7jXp; Mon, 3 Feb 2020 16:59:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8D1A5204E5; Mon, 3 Feb 2020 16:59:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 495191BF276 for ; Mon, 3 Feb 2020 16:59:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 43CCF810F4 for ; Mon, 3 Feb 2020 16:59:54 +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 yNxgzBqUEFqJ for ; Mon, 3 Feb 2020 16:59:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcmd14161.aruba.it (smtpcmd14161.aruba.it [62.149.156.161]) by whitealder.osuosl.org (Postfix) with ESMTP id 461D5811DE for ; Mon, 3 Feb 2020 16:59:51 +0000 (UTC) Received: from ubuntu.localdomain ([212.103.203.10]) by smtpcmd14.ad.aruba.it with bizsmtp id yGzn2100E0DySFo01Gzp3U; Mon, 03 Feb 2020 17:59:49 +0100 From: Giulio Benetti To: buildroot@buildroot.org Date: Mon, 3 Feb 2020 17:59:45 +0100 Message-Id: <20200203165946.50232-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200203165946.50232-1-giulio.benetti@benettiengineering.com> References: <20200203165946.50232-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1580749189; bh=lRTk3Qu4b7CzdXmzjHV92E6l3i9sdUzpY6fgZXu0z0A=; h=From:To:Subject:Date:MIME-Version; b=IsSPz2HkkP4p659AxYWh73QeZ1VquTukbK92I4YANVUI4sRiwox5Sbtc1r8TgRfnT UDXoWHZeSeGeN+Ea3A5b+b3x6JfNi63yYldaDXXijUxA/bfDpRqwhv/vDDnkgmnhpD ysfP5oyKnudwSKqg/x0wB0cvwEcSgZtRkkzwyxV5wCYPs9GPtdKvaX7toi1/dBUeTc /YdhfVkSaa1D5vpYytbN2VBlFm557bYkhklpsjZRV+ogTiU09+DK/Sj4nqBJG5HjHc +b+Xj7muDsoBCeX7hliWLz+H6LdhCBnsQvyE8Ynt0d3JJiWkvQxYFYOjxr8owA2Pao Dh0H4388VqFtw== Subject: [Buildroot] [PATCH 2/3] package/bullet: fix build failure due to gcc bug 93532 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Giulio Benetti , Romain Naour , Thomas De Schampheleire , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The bullet package exhibits gcc bug 93532 when built for the Riscv32 architecture with optimization enabled, which causes a build to hang. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_93532=y. Fixes: http://autobuild.buildroot.net/results/9a4/9a405ec6fabfa306c14a671a5e09359ac623c25b/ Signed-off-by: Giulio Benetti --- package/bullet/bullet.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/bullet/bullet.mk b/package/bullet/bullet.mk index b25fc5d219..e13dbba0c6 100644 --- a/package/bullet/bullet.mk +++ b/package/bullet/bullet.mk @@ -25,7 +25,7 @@ endif BULLET_CXXFLAGS = $(TARGET_CXXFLAGS) -ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y) +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180)$(BR2_TOOLCHAIN_HAS_GCC_BUG_93532),y) BULLET_CXXFLAGS += -O0 endif From patchwork Mon Feb 3 16:59:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1232926 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=MhJqaVvb; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48BDb42zHpz9s3x for ; Tue, 4 Feb 2020 04:00:00 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1EE3686A14; Mon, 3 Feb 2020 16:59:58 +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 dmcblLBGO1fg; Mon, 3 Feb 2020 16:59:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 7E1EE86BE2; Mon, 3 Feb 2020 16:59:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id F29751BF276 for ; Mon, 3 Feb 2020 16:59:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EDC5B86BE2 for ; Mon, 3 Feb 2020 16:59:54 +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 2rfl1380X2rT for ; Mon, 3 Feb 2020 16:59:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcmd14161.aruba.it (smtpcmd14161.aruba.it [62.149.156.161]) by hemlock.osuosl.org (Postfix) with ESMTP id 9653386A14 for ; Mon, 3 Feb 2020 16:59:51 +0000 (UTC) Received: from ubuntu.localdomain ([212.103.203.10]) by smtpcmd14.ad.aruba.it with bizsmtp id yGzn2100E0DySFo01Gzp3s; Mon, 03 Feb 2020 17:59:49 +0100 From: Giulio Benetti To: buildroot@buildroot.org Date: Mon, 3 Feb 2020 17:59:46 +0100 Message-Id: <20200203165946.50232-4-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200203165946.50232-1-giulio.benetti@benettiengineering.com> References: <20200203165946.50232-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1580749189; bh=VSHqqZtJuzbUtIrLrp+dOqryRB6eWqeA3D136ysG7lU=; h=From:To:Subject:Date:MIME-Version; b=MhJqaVvb5umpbDe/kRPEkwDrvmwrjzaNBdnYki6hemDLlVVcLShUsAJ6hNmcJpbHB BOIijbqWU2aIQBMlqy80oK5cxijCCS+Bxx/ARP+PnzPDzZ21gkWpFZtoe3IQ50YLaZ lyUA68wwpM9NnKU7zipOYUtr+jz1DdLkP4SGvJt81AeHJ8rV67S/3DtxMC91PJWBoN t6VTI7NmhFOGJRSevkGHcNW4A5CSgD+Ficpc7fUvQixa6YPk3F3waBXbA45LqFx1Dk KMPShFF2G74ouuE4MCrWGyrDYwL6y0iG+mz1B4/32ca7WrxqoYiDUrzT3v7GEpFi5w DAb/BQzdSaZSQ== Subject: [Buildroot] [PATCH 3/3] package/lmbench: fix build failure due to gcc bug 93532 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Giulio Benetti , Romain Naour , Thomas De Schampheleire , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The lmbench package exhibits gcc bug 93532 when built for the Riscv32 architecture with optimization enabled, which causes a build to hang. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_93532=y. Fixes: http://autobuild.buildroot.net/results/d47/d47e46889d7bcc5864c738cb948afc168327b612/ Signed-off-by: Giulio Benetti --- package/lmbench/lmbench.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/lmbench/lmbench.mk b/package/lmbench/lmbench.mk index 2f3b19b5f8..09299a0c17 100644 --- a/package/lmbench/lmbench.mk +++ b/package/lmbench/lmbench.mk @@ -28,6 +28,10 @@ define LMBENCH_CONFIGURE_CMDS touch $@ endef +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_93532),y) +LMBENCH_CFLAGS += -O0 +endif + # Note: there is a second stage 'make' invocation from the 'scripts/build' # script. So the variables override below don't take direct effect in # src/Makefile.