From patchwork Sat Aug 12 11:44:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waldemar Brodkorb X-Patchwork-Id: 1820561 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RNJkL04gNz1yfN for ; Sat, 12 Aug 2023 21:45:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 22FA4608D8; Sat, 12 Aug 2023 11:45:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 22FA4608D8 X-Virus-Scanned: amavisd-new at osuosl.org 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 9NYFPl5S3E9z; Sat, 12 Aug 2023 11:45:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 6496060BB0; Sat, 12 Aug 2023 11:45:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 6496060BB0 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 41B471BF282 for ; Sat, 12 Aug 2023 11:45:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 0E65D4012F for ; Sat, 12 Aug 2023 11:45:04 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 0E65D4012F 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 E4aTeylEvsm9 for ; Sat, 12 Aug 2023 11:45:03 +0000 (UTC) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) by smtp2.osuosl.org (Postfix) with ESMTPS id DC450401F1 for ; Sat, 12 Aug 2023 11:45:02 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org DC450401F1 Received: by helium.openadk.org (Postfix, from userid 1000) id 3DD1F3520C37; Sat, 12 Aug 2023 13:44:52 +0200 (CEST) Date: Sat, 12 Aug 2023 13:44:51 +0200 From: Waldemar Brodkorb To: buildroot@buildroot.org Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Operating-System: Linux 5.10.0-21-amd64 x86_64 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1691840693; bh=ECm5DulraRo4jJDLNShcrcL+hb+omvvSKH75jlqSvX0=; h=Date:From:To:Subject:From; b=HNmEc4iw3cIfgl3Cp/WOU+8gcpSlpdsEtoCpAl6nZtCmI/7aqvVDVFT26DscRiuoj tKxjk46mPcXhzt/dt/KAFmgfUDNSX3kwibPKjageFA4GwsEheO7FIjKNhXT3Vw5aEx NDb+N4m/XGCeMQO6VjgefEwBis81CFqaSYzqtN0I9fjQ/wtd/H5AWilOVTsgPRyczx NLDn/7HAO9+yzv61NCgoi5WdBMsbm7Q/Xo7TU8/BLxaKgmjIbLqyNZgUNeCWclZv9s mpEoXLfT4z9b4RNmOI+a0MbAV1Z6qktRElP/f75rBxuqEykru4Cfw00MpeYX8EAgV4 NQXdrASk4dAxA== Subject: [Buildroot] [PATCH 1/2] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_111001 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: , Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" e2fsprogs package fails to build for the SH4 architecture due to a gcc 13.2.0 bug that leads to: during RTL pass: sh_treg_combine2 rw_bitmaps.c: In function read_bitmaps_range_start: internal compiler error: Aborted Let's add gcc bug to avoid to deal with architectures in packages when a gcc bug arises. Let's instead deal directly with gcc bug number. It's been reported upstream: https://gcc.gnu.org/bugzilla//show_bug.cgi?id=111001 No need to backport as gcc 13.20 was introduced recently in buildroot. Signed-off-by: Waldemar Brodkorb --- toolchain/Config.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index a37933bc12..da6bf5f4c8 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -257,6 +257,17 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_110934 bool default y if BR2_m68k +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111001 +# ICE: on SH4: during RTL pass: sh_treg_combine2 +# This bug exist in gcc = 13.2.0 +config BR2_TOOLCHAIN_HAS_GCC_BUG_111001 + bool + default y if BR2_sh + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_13 + depends on BR2_OPTIMIZE_1 || \ + BR2_OPTIMIZE_2 || \ + BR2_OPTIMIZE_3 + config BR2_TOOLCHAIN_HAS_NATIVE_RPC bool