From patchwork Fri Jan 14 10:55:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1579974 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.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=j0C3QGCq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JZyrF5hcxz9s9c for ; Fri, 14 Jan 2022 21:55:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id C147D40477; Fri, 14 Jan 2022 10:55:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PiM1lE_R0hvn; Fri, 14 Jan 2022 10:55:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id D527D4026E; Fri, 14 Jan 2022 10:55:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id C35CE1BF37A for ; Fri, 14 Jan 2022 10:55:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id B171E60AD0 for ; Fri, 14 Jan 2022 10:55:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=aruba.it Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CmtyN7CE4Qyh for ; Fri, 14 Jan 2022 10:55:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtpcmd02101.aruba.it (smtpcmd02101.aruba.it [62.149.158.101]) by smtp3.osuosl.org (Postfix) with ESMTP id 3CFF860A9D for ; Fri, 14 Jan 2022 10:55:17 +0000 (UTC) Received: from localhost.localdomain ([146.241.178.108]) by Aruba Outgoing Smtp with ESMTPSA id 8KEinfkKIBBmw8KEjn4i6h; Fri, 14 Jan 2022 11:55:15 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1642157715; bh=d7MhPYtD67qAEnPzRFGvdxHGG/lojlnaKKy+uPZ1vzw=; h=From:To:Subject:Date:MIME-Version; b=j0C3QGCqfO49CHJNhiaRwTTlOClQmid8uvnjpkMy5nN/dc9Xm9EcBvAGr4NMl4Zge JkYl2Fq79LumHeuWFfWUZ9AcatAaQrkDgvwSH4fKWB+/yI2yllRIBW7iqsIIjFAwLM MlQqi4Rn/OXG9yMlVQoRRL4y4NERvBvpHG2NnDKrQ/qTDJaeoxZC6FuXAFzlAfoGl+ GiOaxHuCH18VDQmikgwKN3GDZjtuF0nVQHHigA0+zsYEkWuJXpVL9ZlrdvZsrA7f+I ySY8JJRyOrT35576vVEQvr0caZFV+hID9ncOq+W+Jmq41Imp6UPONALuVy1ARgrYfT BaFiNNo6KIf2w== From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 14 Jan 2022 11:55:10 +0100 Message-Id: <20220114105511.1010113-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfHHn4aS64XrRnlZUxMKFrFIj5OoiiHoOP2Rk4xCuWiIZqTGKKKPMXfNgaO6tpccXV9n7iNXPs8qpQ1sqhqRUO0Oi0O19MCZOjgNzlitwhO6PqGdJP2c8 3G6Ig8Gm+aZNoshX2gUWu3eftSEPPWPz4nWSXTSYMaFv2NSH0GpDalvZ8W7HIHGTsD+s3cT81I7+367L+OlmDe94nULkDPUwm2BPTYXdVx9ZSpC9ApgEQow1 uH1SQOR17mNj9RswcZXAjQvqNSsaa+x9QdB8LqvLKGVd5IDhG9VhwaoQWoSDrqs/t5K6qShgFCXpgteornhtfI0hjRFYHcdJUqE00QTz//GnB2lbZV40eiAV 2IUGUW8XYfSIoNbf6TWxSRpYH23C8SeZD6oFFrK8BFrXpOpCbWfOonKgbNteanhjXyANdwacUcl7mHLHcpOl7eENelvbiA== Subject: [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_104028 X-BeenThere: buildroot@buildroot.org 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: Thomas Petazzoni , Giulio Benetti , Romain Naour , Thomas De Schampheleire , Marek Belisko Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" sg3_utils package fails to build for the M68K architecture with optimization enabled with gcc = 10.3.0 and it's still present in gcc = 11.1.0: http://autobuild.buildroot.net/results/c49300d12a209b18f41d389f092324592b881277/ It's been reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028 Signed-off-by: Giulio Benetti --- toolchain/Config.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index adc93ab725..ccdf62503d 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -220,6 +220,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_101952 bool default y if BR2_sh4 +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104028 +# ICE: on M68K: Error: value -16034 out of range +# This bug still exists in gcc = 11.1.0 +config BR2_TOOLCHAIN_HAS_GCC_BUG_104028 + bool + default y if BR2_m68k + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool From patchwork Fri Jan 14 10:55:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1579975 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: bilbo.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=J3dBruxw; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JZyrX0ksdz9s9c for ; Fri, 14 Jan 2022 21:55:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id F02BC40A93; Fri, 14 Jan 2022 10:55:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XJsz3DA0mHHI; Fri, 14 Jan 2022 10:55:35 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id E2B3B404EC; Fri, 14 Jan 2022 10:55:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CC5831C115D for ; Fri, 14 Jan 2022 10:55:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id C92E483EDF for ; Fri, 14 Jan 2022 10:55:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=aruba.it Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GcPj2pFRT56E for ; Fri, 14 Jan 2022 10:55:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtpcmd02101.aruba.it (smtpcmd02101.aruba.it [62.149.158.101]) by smtp1.osuosl.org (Postfix) with ESMTP id DACDC83ED7 for ; Fri, 14 Jan 2022 10:55:18 +0000 (UTC) Received: from localhost.localdomain ([146.241.178.108]) by Aruba Outgoing Smtp with ESMTPSA id 8KEinfkKIBBmw8KEln4i9g; Fri, 14 Jan 2022 11:55:16 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1642157717; bh=7TlIdSlawAcT5lIi4iv9G35qu0UxquoYZ7ndYQjtI6U=; h=From:To:Subject:Date:MIME-Version; b=J3dBruxw88YZKBa1qwOk4LeSkWjcvn6yT4vpkIR1B8jP74/NwquWrTE5otCfEraB6 4wrY3aU33LbrtyiyQfJHG3xNuwKq6WcdODwMQiuab8WhYmVbZs1nDbi6h+Tv+PBtAs 3OEwHb7xad8WAdblkeBp+XYdm2UeYuORNihR9QVyqqKsDb6jsBftw5eb8xj2hjbCuD eXyw1qyCgo2wSsg5FJW0iH+7nbQSMHH6f417pQBBGLLvaQ3YJypVKcZmQ0bunEQM93 Pw6z7s6yrmBq84oQGVawBduif+GK3tkntR3/6QcMhN9x636QbxBSc46aXUS0l3PiqQ +Rfy3L20H/1mA== From: Giulio Benetti To: buildroot@buildroot.org Date: Fri, 14 Jan 2022 11:55:11 +0100 Message-Id: <20220114105511.1010113-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220114105511.1010113-1-giulio.benetti@benettiengineering.com> References: <20220114105511.1010113-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJ1Qp+0WJMOxnIWoBlNaD8vRmBVs31TWe7hK+Oj3WRC7n3SuY6lYhju1MKDOPqFNZLz1Nuu+oSyhHzQgTJ7IdFUtK1oWFdaNXJVwLC4KC4uU8HXYhzfo z+Ut0iIwwogkw7PmJ0/WdtDjE1eypI7Bn8Zw7AmBVh7OMWS8XBuonbnOFpjAoI8WAFJDTaKwjUI0eCcq100qx2qqKlPuZTPin36lJMFWl9ToxS7eIhn6huWq MVhMsOayFJ+noF4MW9J5QnqhZVJMrr6+4XcmPxx5IXqveOMOy2NBbXnVgxgC7QWRMkHiC0694PjFR71ng/HAeXeXS91HFQZMaNkqyR+IAHpI9wRh0ySUgdId DcIUVA/w9JXUyoNUGGZvmCoewJ1u5BQ3Gl12WcbyIK0Osmy3q2SIkFmdRPKKu0DPrv2sFfy106LdUGZNnHVT68SumQAzDw== Subject: [Buildroot] [PATCH 2/2] package/sg3_utils: fix build failure due to gcc bug 104028 X-BeenThere: buildroot@buildroot.org 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: Thomas Petazzoni , Giulio Benetti , Romain Naour , Thomas De Schampheleire , Marek Belisko Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" The sg3_utils package exhibits gcc bug 104028 when built for the M68K architecture with optimization enabled, which causes a build failure. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_104028=y like we already do for BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y. Fixes: http://autobuild.buildroot.net/results/c49300d12a209b18f41d389f092324592b881277/ Signed-off-by: Giulio Benetti --- package/sg3_utils/sg3_utils.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/sg3_utils/sg3_utils.mk b/package/sg3_utils/sg3_utils.mk index e357fc1dde..b291bd69d9 100644 --- a/package/sg3_utils/sg3_utils.mk +++ b/package/sg3_utils/sg3_utils.mk @@ -24,6 +24,14 @@ ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) SG3_UTILS_CONF_ENV += LIBS="-latomic" endif +SG3_UTILS_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_104028),y) +SG3_UTILS_CFLAGS += -O0 +endif + +SG3_UTILS_CONF_ENV += CFLAGS="$(SG3_UTILS_CFLAGS)" + ifeq ($(BR2_PACKAGE_SG3_UTILS_PROGS),) define SG3_UTILS_REMOVE_PROGS for prog in \