From patchwork Sat Aug 14 22:58:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1516886 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=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=Is205Qwe; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 ozlabs.org (Postfix) with ESMTPS id 4GnGHF5s74z9sX2 for ; Sun, 15 Aug 2021 09:05:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 14BE980DBF; Sat, 14 Aug 2021 23:05:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org 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 MWIIevPFZZea; Sat, 14 Aug 2021 23:05:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id A1F4F80DC1; Sat, 14 Aug 2021 23:05:17 +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 0FD9B1BF314 for ; Sat, 14 Aug 2021 23:05:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 0003560619 for ; Sat, 14 Aug 2021 23:05:15 +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 D-FRLwyYk1mT for ; Sat, 14 Aug 2021 23:05:11 +0000 (UTC) X-Greylist: delayed 00:07:02 by SQLgrey-1.8.0 Received: from smtpcmd12141.aruba.it (smtpcmd12141.aruba.it [62.149.156.141]) by smtp3.osuosl.org (Postfix) with ESMTP id DF110605E0 for ; Sat, 14 Aug 2021 23:05:10 +0000 (UTC) Received: from ubuntu.localdomain ([141.136.135.234]) by Aruba Outgoing Smtp with ESMTPSA id F2bMmrQy6nxSqF2bOmsL4f; Sun, 15 Aug 2021 00:58:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1628981887; bh=MLe6glaKTYABm6E3BuNayCsvOZH5w3xKaLi3DHFq624=; h=From:To:Subject:Date:MIME-Version; b=Is205Qwe8zOS5XopF1Gz5Lyaccf2SSgZn75ymxQRqCIAaXnVAb0scMP5PvCM87aXO e7i4ovtxfsmfE0hlLBCSLmvE9qLC6X+N7/3xrtIwru0gIfV23SQuTdUOkRgo9nxWkw jSqBmM0vY6a8JttPAWGUup40oHV9LRdYDapFxk0Ix1Fvk+xfhkNQ2ryfag0mnXxgOV y0FPPms3KO2CQKk3jPHsKRGgtClXBImEDhvOnF9Riac08GaI9ONgz2clT4ykfEPaY7 4Iqh1qZoMC3vJzou079fOWynjZNHgtKuthOC8Zc6j6Re6t3Qz/s+xR6mOTQNbvKhEY TIreITe5jXtwg== From: Giulio Benetti To: buildroot@buildroot.org Date: Sun, 15 Aug 2021 00:58:02 +0200 Message-Id: <20210814225803.812478-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210814225803.812478-1-giulio.benetti@benettiengineering.com> References: <20210814225803.812478-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfG7EPHdnkndngn5M+a9x0kdbB9sDmxvff6JrmKjWRRL0ga8/FriDuzSgco3lefZ3z4rKWoVSGh25G1X5QCbc7JVsDQva7cyVU1nz7DVYzEl0I99fftTR nyXGTimz9NonuDIJbJbYeMPwZ3XQhMi0BQ3IVvsyjEf33wZjOFqD28DDfwmUF/+U/qlIKTSmANvXVujkSjEWWWqyafIxhP+L8JWsYbS0A98wLSS1c+zeqJSX tBFjx517GyqhPBU/0x3CK73hGgc/uLO1yIteC6b6iR3TBR5kziSKx2mYOeaT3SRTh7io18AvO1n37dG5WMyTEjkpfA+vWoMd0YBXtCMzrATJHOatg/kxBZTK 9ZlKugnoLTMJJyP6iavQHx/nXnGalgaeZRqRmEwd5MB7hyKBbO0= Subject: [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_101916 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" heirloom-mailx package fails to build for the SH4 architecture with optimization enabled with gcc = 11.1.0: http://autobuild.buildroot.net/results/911/911f5c024834741754102ff1bbb05c4a64c54a0b/ It's been reported upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101916 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 07320fdef9..c3edf8f48d 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -184,6 +184,13 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_101915 bool default y if BR2_microblaze +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101916 +# ICE: on SH4: Segmentation fault signal terminated program cc1. +# This bug still exists in gcc = 11.1.0 +config BR2_TOOLCHAIN_HAS_GCC_BUG_101916 + bool + default y if BR2_sh4 + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool From patchwork Sat Aug 14 22:58:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1516888 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.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) 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=NrfPYgS8; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 ozlabs.org (Postfix) with ESMTPS id 4GnGHd25RJz9sX2 for ; Sun, 15 Aug 2021 09:05:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 36EE880E8E; Sat, 14 Aug 2021 23:05:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org 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 MVVPW8XYQ60o; Sat, 14 Aug 2021 23:05:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id B86EC80E92; Sat, 14 Aug 2021 23:05:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id B1CDD1BF314 for ; Sat, 14 Aug 2021 23:05:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id AEE72402FB for ; Sat, 14 Aug 2021 23:05:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=aruba.it Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MCXqW01I0NN6 for ; Sat, 14 Aug 2021 23:05:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from smtpcmd12141.aruba.it (smtpcmd12141.aruba.it [62.149.156.141]) by smtp4.osuosl.org (Postfix) with ESMTP id D4101402ED for ; Sat, 14 Aug 2021 23:05:11 +0000 (UTC) Received: from ubuntu.localdomain ([141.136.135.234]) by Aruba Outgoing Smtp with ESMTPSA id F2bMmrQy6nxSqF2bPmsL4t; Sun, 15 Aug 2021 00:58:09 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1628981889; bh=imImx/jo25u5KLyVyoK+bjxbceBYkCLPQUvaZDQUB5U=; h=From:To:Subject:Date:MIME-Version; b=NrfPYgS84ej/g/wJij4eqKwNFEWEshp7pT7lcJuQzqxMHT3vJ9yt60YwYUUQYlyyO W4xy2QthpKWmVEsreLssDB4t2wiJDkpI0MrLRro9yEq+4WUqGrucLc0P0c9I2lBrQQ 8jPh8cZZJ51InI3IUu6fORSaJsave66Ai+DKJTUC8pj3mjHtBXysCzUKLOiKAEW0UR rsmmHM1VP7QvWwocJC4LZ+AI1yDqgTF1W6w4hJj74h+SePqYDuVs3im0eomXrfSZuP GbGouzwOCVV0C/QI+1Nvt5wD3tw3Pr7mUmdrjKOBQSDY7RUEa55+M8JzYPXL0ROTty AXoWIZZEsBGKg== From: Giulio Benetti To: buildroot@buildroot.org Date: Sun, 15 Aug 2021 00:58:03 +0200 Message-Id: <20210814225803.812478-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210814225803.812478-1-giulio.benetti@benettiengineering.com> References: <20210814225803.812478-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfEUIAhnfLkzCf7okfYdOADzwPhlCgxthD3HHGK++leDNszeZ8WxOUivqj0e66esK7oEg3ke+QoUPnmmz+o0I/K/WaVJUftOph49nsthUedfhQuDYcxvs 0+Ef3JO/cGjHX0wv86n5bVwoRsigl8qtQQ9UOh2KSi6qkAc6TnDWfupl6X7ygLB0tiZfRd7iFPsCWTZ7nyAn9TXC0kFaAAUHhthu5wYxYJTbFO0X6GI4qTk9 2M0nGkSWQrx3vcc7+eAkJCNNd9goH2iU3Xw0FZmLOwiLNTREfOWmJxqK+FDgpdwgBudT9ElyHiEohDFTIAehkgudZHkCB3XuBQq5RddMRbEOFv9c4S13067D pSGuOyGu5KJxvomqAdvz2xeupsm6f/SAbh+WNll68e/dV+bXDgc= Subject: [Buildroot] [PATCH 2/2] package/heirloom-mailx: fix build failure due to gcc bug 101916 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 heirloom-mailx package exhibits gcc bug 101916 when built for the SH4 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_101916=y. Also introduce HEIRLOOM_MAILX_CFLAGS as done for other packages and move the already present -fPIC CFLAG to it. Fixes: http://autobuild.buildroot.net/results/911/911f5c024834741754102ff1bbb05c4a64c54a0b/ Signed-off-by: Giulio Benetti --- package/heirloom-mailx/heirloom-mailx.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/heirloom-mailx/heirloom-mailx.mk b/package/heirloom-mailx/heirloom-mailx.mk index b3cece0cfc..e851e1dfcc 100644 --- a/package/heirloom-mailx/heirloom-mailx.mk +++ b/package/heirloom-mailx/heirloom-mailx.mk @@ -20,10 +20,18 @@ define HEIRLOOM_MAILX_CONFIGURE_CMDS (cd $(@D); $(TARGET_CONFIGURE_OPTS) $(SHELL) ./makeconfig) endef +HEIRLOOM_MAILX_CFLAGS = $(TARGET_CFLAGS) + # -fPIC is needed to build with NIOS2 toolchains. +HEIRLOOM_MAILX_CFLAGS += -fPIC + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101916),y) +HEIRLOOM_MAILX_CFLAGS += -O0 +endif + define HEIRLOOM_MAILX_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) $(MAKE) \ - CFLAGS="$(TARGET_CFLAGS) -fPIC" \ + CFLAGS="$(HEIRLOOM_MAILX_CFLAGS)" \ -C $(@D) endef