From patchwork Sun May 29 13:18:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636669 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=DbuxRMXs; dkim-atps=neutral Authentication-Results: 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zd22D8qz9sBB for ; Sun, 29 May 2022 23:18:28 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 03617610C6; Sun, 29 May 2022 13:18:26 +0000 (UTC) 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 gNY5ZeBnTKOn; Sun, 29 May 2022 13:18:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id 074AC6108E; Sun, 29 May 2022 13:18:24 +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 5B3A01BF4D8 for ; Sun, 29 May 2022 13:18:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 57EBB60F19 for ; Sun, 29 May 2022 13:18:22 +0000 (UTC) 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 nITptA7RSxWe for ; Sun, 29 May 2022 13:18:21 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by smtp3.osuosl.org (Postfix) with ESMTPS id 4AAF660F08 for ; Sun, 29 May 2022 13:18:21 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id d5-20020a05600c34c500b0039776acee62so3601685wmq.1 for ; Sun, 29 May 2022 06:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yeNddeoTcyK20OuPe4HycYNJxziaZcyomgEhXrSN0Us=; b=DbuxRMXsTLbL9CRRCpaYg3y1171+lLGVV+KL8fX3tihvyc27VY2xkE9SFZQTy6f7yP Ty6H0P5DFl099bOOR3PBZGwGdWVxzI6F1etspzwtsY76e83MirFqJAwFa9L4pTLo0rHu JMxIiW+6qcpLmO9sNvZ9YBLcNBXrOG7D9cAkl8atSzOO6hbSZafHjWtHO1+z2i3HT0pc SI8bHXybEZt9u/vk3CMv31aZqARlzmQ3VGKkNsXhEVGp49jO/6tRdumoLsLDAq/DGhTI 62KQkFeGzGoIys39cMgkdl7b12WCyuMdfJiucfL85GhmfIN8VCCj70v5oEmflc1+QzSr V3nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yeNddeoTcyK20OuPe4HycYNJxziaZcyomgEhXrSN0Us=; b=5GknFH7yyKmGYkE6Mk6fh3j/AvjNI6LacJtrg3uu5O6Kmd+VaeOVlVk45oDbbcC/Qo YnToqVEAoB3xE3FN75WTWzowb1YO9ewWjY8wrQFuNOaHAqDd0hZTeWnz3tAHpyy3uWiF 9v/wnTx8I1//mStCu6X8MExvpf84wYy5svWogsfnEznCOE08rEzAS4K7tUw9oBaCPmR0 PmGrdZC7V9pq+YxFt2Qu02Qm75i+EPd2swP3yRWLWiGgqNYbw3t2ZZi6Lw9KYLst/mam 5ecy2svj5lKAsKVw6ocPFsu2Bkci2SxdpKEZJOFvRWtxBLYdhzh0mDMZ5B5D28FE/vIJ C+Cw== X-Gm-Message-State: AOAM530/X5mRaboU7RRgtP1lhZTBPX84XsKoQTTcPKe5KN+TUpqVJSmT EqYA+n3Cv8r6oJU0QYxHwTXihk3UzWY= X-Google-Smtp-Source: ABdhPJwEWj9CwsvTaM1CQ3cMLfOPi2WludgZqnlr5Owye4z794xK8/ukG93T6YK8Ko6VrVzC7svwtQ== X-Received: by 2002:a7b:c015:0:b0:397:3685:5148 with SMTP id c21-20020a7bc015000000b0039736855148mr15063924wmb.174.1653830299258; Sun, 29 May 2022 06:18:19 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:18 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:01 +0200 Message-Id: <20220529131811.481017-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 01/11] arch/Config.in.riscv: add Zicsr and Zifencei standalone extensions 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: Romain Naour , Mark Corbin Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Since gcc 12, default Riscv ISA spec version was bump to 20191213 [1]. This introduce a major incompatibility issue is the csr read/write (csrr*/csrw*) instructions and fence.i instruction has separated from the "I" extension, become two standalone extensions: Zicsr and Zifencei; so you might get error messages like that: unrecognized opcode "csrr" (or "fence.i"). Indeed, without Zifencei we can't build opensbi bootloader [3]: opensbi-1.0/lib/sbi/sbi_tlb.c: Assembler messages: opensbi-1.0/lib/sbi/sbi_tlb.c:190: Error: unrecognized opcode `fence.i', extension `zifencei' required As a workaround, opensbi build system has been patched [4] to use -march=rv64imafdc_zicsr_zifencei when needed. This workaround doesn't work in Buildroot due to the local patch 0001-Makefile-Don-t-specify-mabi-or-march.patch removing -march from CFLAGS. Fix this issue by introducing two additional Kconfig option enabling Zicsr and Zifencei standalone extensions for gcc >= 12 as recommanded by [2]. Select Zicsr and Zifencei for General purpose (G) architecture variant (BR2_riscv_g) since theses extentions were implicitely enabled previously. [1] https://gcc.gnu.org/gcc-12/changes.html [2] https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/aE1ZeHHCYf4 [3] https://github.com/riscv-software-src/opensbi/blob/v0.9/lib/sbi/sbi_tlb.c#L173 [4] https://github.com/riscv-software-src/opensbi/commit/5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c Signed-off-by: Romain Naour Cc: Mark Corbin --- arch/Config.in.riscv | 21 ++++++++++++++++++++- arch/arch.mk.riscv | 6 ++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/arch/Config.in.riscv b/arch/Config.in.riscv index 288ed833eb..91feea0918 100644 --- a/arch/Config.in.riscv +++ b/arch/Config.in.riscv @@ -18,6 +18,12 @@ config BR2_RISCV_ISA_RVD config BR2_RISCV_ISA_RVC bool +config BR2_RISCV_ISA_RVZicsr + bool + +config BR2_RISCV_ISA_RVZifencei + bool + choice prompt "Target Architecture Variant" default BR2_riscv_g @@ -29,8 +35,11 @@ config BR2_riscv_g select BR2_RISCV_ISA_RVA select BR2_RISCV_ISA_RVF select BR2_RISCV_ISA_RVD + select BR2_RISCV_ISA_RVZicsr if BR2_TOOLCHAIN_GCC_AT_LEAST_12 + select BR2_RISCV_ISA_RVZifencei if BR2_TOOLCHAIN_GCC_AT_LEAST_12 help - General purpose (G) is equivalent to IMAFD. + General purpose (G) is equivalent to IMAFD + (with Zicsr and Zifencei since gcc >= 12). config BR2_riscv_custom bool "Custom architecture" @@ -63,6 +72,16 @@ config BR2_RISCV_ISA_CUSTOM_RVD config BR2_RISCV_ISA_CUSTOM_RVC bool "Compressed Instructions (C)" select BR2_RISCV_ISA_RVC + +if BR2_TOOLCHAIN_GCC_AT_LEAST_12 +config BR2_RISCV_ISA_CUSTOM_RVZicsr + bool "Control and Status Register (CSR) Instructions" + select BR2_RISCV_ISA_RVZicsr + +config BR2_RISCV_ISA_CUSTOM_RVZifencei + bool "Instruction-Fetch Fence" + select BR2_RISCV_ISA_RVZifencei +endif endif choice diff --git a/arch/arch.mk.riscv b/arch/arch.mk.riscv index f3bf2b3467..294a5f90a9 100644 --- a/arch/arch.mk.riscv +++ b/arch/arch.mk.riscv @@ -26,5 +26,11 @@ endif ifeq ($(BR2_RISCV_ISA_RVC),y) GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)c endif +ifeq ($(BR2_RISCV_ISA_RVZicsr),y) +GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zicsr +endif +ifeq ($(BR2_RISCV_ISA_RVZifencei),y) +GCC_TARGET_ARCH := $(GCC_TARGET_ARCH)_zifencei +endif endif From patchwork Sun May 29 13:18:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636670 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=o4ev14Bp; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zdD3xj1z9sBB for ; Sun, 29 May 2022 23:18:40 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 9BD5040A30; Sun, 29 May 2022 13:18:38 +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 kgeYLH6t7qgf; Sun, 29 May 2022 13:18:37 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id AF0BD40477; Sun, 29 May 2022 13:18:36 +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 551471BF4D8 for ; Sun, 29 May 2022 13:18:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 430F760F08 for ; Sun, 29 May 2022 13:18:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 zfEaHpPvxB_l for ; Sun, 29 May 2022 13:18:22 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by smtp3.osuosl.org (Postfix) with ESMTPS id 57F066108E for ; Sun, 29 May 2022 13:18:22 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id q7so510546wrg.5 for ; Sun, 29 May 2022 06:18:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bC2i2C+0ruExSB2CukIjrqCBgHssykf45mu+CF2ZS+8=; b=o4ev14BpSLJsAiAr01qpVRoTuK5NFmbSx2lwdZYSvoLycaaBZiOK0iMS3yy70WrvHL 8jBrbT2PZhsG2DvCuIUVQbD8eik9S61mX77A/01KIqIk8U6kAlKrQDRwYDZp0Uf3dnMH R24jtE+7OnuLbUrix0KOmsgJ3fo4s630r3AvMPVClD00tBIn25ZIu9E/ttBDJaqm0AqQ ODfhYw4XydKkCkuWoI6cE+2K9rpWvroirS2PgZ41zruz+dZd24EKKa3UvRTg6JZXfuug vV0sQLORmBeAjAdDwoM+dud1/QCQuLZI4zotuEfgp2I94AlqHy+uMD9137OBXUCwKgMP vyug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bC2i2C+0ruExSB2CukIjrqCBgHssykf45mu+CF2ZS+8=; b=boUYK9OVFtY0yVqqdit24DGk2iAvI4wcb3ZewXXivJiXnQMkFdlyRtT2gS+4W7c28I D9BFWLPds0h5vMn/10iDqbXlW0MfONdxy2ikdbYm+++qqK9A3TYhKde7vTCzTMVZqPIO gJGl7O7BOzvpHK/dNcEVR2JErPXCgjv5yUVBSUGwWXrFRR6oGzaEj5swLhWJ4FwCnLYL m5VqaewOampVNFGSmDuz0IQcFVNrrv3Hocsf15n9AX35owFcjEvu0tiZcFR1zSrKg9z+ 4hBo9jM43PmAO4OTa0id5Rxwezw2mPdsqYgYd+Csp2sgiT/qIiQj72gSdT6m58NYG0D1 r71g== X-Gm-Message-State: AOAM5308EvmVNCCZVDFQyYxWlqyYRocaaDHGnKbTQ7k+jGBPoPIVIMw1 ncgqHuSKcgj8A2pX6jt27sUfprv7ok8= X-Google-Smtp-Source: ABdhPJwL4aSRVSwCdrd/f+zpOzgeXeh3I3QwvGiirMeMkpsJGd7BLGqzBXphL9ooeWKNfWEbmjkT/A== X-Received: by 2002:a05:6000:110a:b0:20d:131e:bf0c with SMTP id z10-20020a056000110a00b0020d131ebf0cmr42691240wrw.108.1653830300477; Sun, 29 May 2022 06:18:20 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:19 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:02 +0200 Message-Id: <20220529131811.481017-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 02/11] configs/qemu_riscv{32, 64}_virt: kernel bump version to 5.15.43 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: Romain Naour , Mark Corbin Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" To build this defconfig with gcc 12, we need a patch from v5.15.24 [1] fixing the build with gcc 12. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7486227fa47aa84b102be18fd9985f6e8e11e756 Signed-off-by: Romain Naour Cc: Mark Corbin --- The issue fixed by [1] can also be trigged with gcc 12 and binutils 2.37. --- configs/qemu_riscv32_virt_defconfig | 2 +- configs/qemu_riscv64_virt_defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/qemu_riscv32_virt_defconfig b/configs/qemu_riscv32_virt_defconfig index dff87ef342..faf4e1e312 100644 --- a/configs/qemu_riscv32_virt_defconfig +++ b/configs/qemu_riscv32_virt_defconfig @@ -19,7 +19,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.18" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.43" BR2_LINUX_KERNEL_DEFCONFIG="rv32" BR2_LINUX_KERNEL_IMAGE=y diff --git a/configs/qemu_riscv64_virt_defconfig b/configs/qemu_riscv64_virt_defconfig index d67d070185..c455680ee0 100644 --- a/configs/qemu_riscv64_virt_defconfig +++ b/configs/qemu_riscv64_virt_defconfig @@ -19,7 +19,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.18" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15.43" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_IMAGE=y From patchwork Sun May 29 13:18:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636672 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=d/0Yy5x0; 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zdk4dsBz9sBB for ; Sun, 29 May 2022 23:19:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 3522D40B38; Sun, 29 May 2022 13:19:04 +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 ng-Gf4nELygX; Sun, 29 May 2022 13:19:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 1D0AF40BD6; Sun, 29 May 2022 13:19:02 +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 7606B1BF969 for ; Sun, 29 May 2022 13:18:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 735E461100 for ; Sun, 29 May 2022 13:18:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 grBPVMb1SLri for ; Sun, 29 May 2022 13:18:23 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by smtp3.osuosl.org (Postfix) with ESMTPS id 5EB1B60F08 for ; Sun, 29 May 2022 13:18:23 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id k16so7133282wrg.7 for ; Sun, 29 May 2022 06:18:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XqsN3C4F0QpxMIra+6Qeg1nthpYjZXfae0IsDKoivB0=; b=d/0Yy5x0VH5RflYeIX7oj2AVYAHAR6SyLDyeQECQbpxSdWK40ruiix/qKVe6BRG0So CDcYhMn/ubl3T/QO7RjTBXahWEhQW71duZnT+znW3lpHv0IpOGXVuTs2USfyNMqDdpvU 4ZQmBGJ0jUkojOgesU9StTga3s9W1//NAtqc5NIxL+1ioAGAXMDJE9wfUU2J+0SaJDAK nvkTWaEkJR4hTDEa0LABOMzu8zImtp/imr/Ae80N82lfK5ZMy7fL0GzD82hayJ7EDh5c 0ikDPeceEamedu9G9P2HL2k4O+PBYFdh2hmXQaMG1uCpLwxRCLBuc13TmNk5ewyXN0iX stdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XqsN3C4F0QpxMIra+6Qeg1nthpYjZXfae0IsDKoivB0=; b=zO1hWN/lpjhtbeUsTeislzYvJ69i/TuGaihITNKTsut127C8IvyTKxCNWiSpcdPEQ5 CyhbHFtGdlsrmIrphFbHOs9IIXLq7q2iakqb+6cVm0EGVjdDuXvzMRdH9dg47EtOawS0 idbAqG17+xSn1KUTPpPLqK9t1LrTl32ZHmgPFr5nW52emHbCHIbgYsyqJP7wghSp/hpe HQHO9o846XJvxmpzOSeYw5aW3VH1q8xAnZHmBXP+ByvarIeMemNtHPxy+Bkv0ij76bdT lOJKxHw0Ovprv0b8CUkYg4geifjHksSEssNsNlOAv+TIm+siZeVJKUQKvIJIy0iDdM4u tjuA== X-Gm-Message-State: AOAM530HduKEsX2ihbhqiTYKQUUrRPLtt5H8TjRzCabTkCIKIXK0krVS zghqegQolIDosE9/nGy6Q0rUtZAv9Ww= X-Google-Smtp-Source: ABdhPJyNwf/onAeEMIX8SQtd6BccsmVJGx1IIbhKlj4SD1S8Y5MshsG4hpNOVIkcSkN9DUH4rLlG/A== X-Received: by 2002:a5d:4ccc:0:b0:210:179c:e503 with SMTP id c12-20020a5d4ccc000000b00210179ce503mr10141851wrt.151.1653830301613; Sun, 29 May 2022 06:18:21 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:21 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:03 +0200 Message-Id: <20220529131811.481017-3-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 03/11] package/gcc: disable libsanitizer for mips64{el} w/ n32 ABI 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" libsanitizer has been enabled for mips64{el} in gcc 12 [1] but it fail to build when n32 ABI is used: In file included from output/mips64el-buildroot-linux-gnu/sysroot/usr/include/bits/stat.h:25, from output/mips64el-buildroot-linux-gnu/sysroot/usr/include/fcntl.h:78, from ../../../../libsanitizer/sanitizer_common/sanitizer_linux.cpp:55: output/mips64el-buildroot-linux-gnu/sysroot/usr/include/bits/struct_stat.h:190:8: error: redefinition of ‘struct stat64’ 190 | struct stat64 | ^~~~~~ In file included from ../../../../libsanitizer/sanitizer_common/sanitizer_linux.cpp:49: output/mips64el-buildroot-linux-gnu/sysroot/usr/include/asm/stat.h:52:8: note: previous definition of ‘struct stat64’ 52 | struct stat64 { | ^~~~~~ Disable libsanitizer for mips64 with n32 ABI. Note: Only glibc toolchains are affected since libsanitizer is disabled for musl and uClibc-ng toolchains [2]. Fixes: https://gitlab.com/kubu93/toolchains-builder/-/jobs/2510178651 [1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=344e6f9f2abcff9b2bb4b26b693be4a599272f43 [2] https://git.buildroot.net/buildroot/commit/?id=5f4d658d888b539de9a6247ae5b1a0999de5d4ec Signed-off-by: Romain Naour --- package/gcc/gcc.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index b940327c83..e1f3935e56 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -138,6 +138,13 @@ ifeq ($(BR2_sparc)$(BR2_sparc64),y) HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer endif +# libsanitizer is available for mips64{el} since gcc 12 but fail to build +# with n32 ABI due to struct stat64 definition clash due to mixing +# kernel and user headers. +ifeq ($(BR2_mips64)$(BR2_mips64el)$(BR2_MIPS_NABI32),yy) +HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer +endif + # The logic in libbacktrace/configure.ac to detect if __sync builtins # are available assumes they are as soon as target_subdir is not # empty, i.e when cross-compiling. However, some platforms do not have From patchwork Sun May 29 13:18:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636671 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=JeCd8H8r; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zdT3XKZz9sBB for ; Sun, 29 May 2022 23:18:53 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 8428940AB4; Sun, 29 May 2022 13:18:51 +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 zmFz228RvrN1; Sun, 29 May 2022 13:18:50 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 7087A40B38; Sun, 29 May 2022 13:18:49 +0000 (UTC) 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 71A751BF4D8 for ; Sun, 29 May 2022 13:18:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6E25440477 for ; Sun, 29 May 2022 13:18:27 +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 cJl5oEx8yS7t for ; Sun, 29 May 2022 13:18:25 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by smtp2.osuosl.org (Postfix) with ESMTPS id 9A0DB40140 for ; Sun, 29 May 2022 13:18:25 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id e25so850930wra.11 for ; Sun, 29 May 2022 06:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=c2KKTExRlwNKxEON497IYr2OG+hJYWqNVcJkwhNSVSI=; b=JeCd8H8rozbDzuN/wXQvCoiFW+9Vu5kbl9X2iO3E1mAupobQpA5BXerLnaQW6Z7AXn GFhRhkLdZuJON/sVMhoXGfIMBxnnTgDOligJ4hSxhwsGF0gA6spoVe3f71SFTNlZrNJ8 bFq41bGczFCAuUxnxWvsKuNDo13sqeTWCuSlXibzY8n0L/MCA3u6MNx3in7wuA8oCDHY XLlTabzDFIuWIJcyvhjQVXpzHMskJd0+UvyS31cP9rF75AUvVAaMBAqg13VFBvfFS9Vz ptp2kcM3ayx/nywLeIQWn/WCI3lYnpDqvGcP4qj7b5XCbGh8+QUB3KXfhcLLfNv+/X+n U/Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=c2KKTExRlwNKxEON497IYr2OG+hJYWqNVcJkwhNSVSI=; b=7YuoDSjHhobTgO83ee4l8V7IDt/WmqHbV1znqXYm5x0BbHTuzIElPAQNNffp4xsGg7 QNwgNT2xoUI4zsCiaIHLi/GknqygV3YQNCDVine3b48Vdt6fJTlb3N3G2UD8AIB54KNh e2/fZe4qiGRRr2lWGHnwPwiNSgIaU2Z5tWP2X40x9NKYuLcMhO89JfuvWPNmaE7+zkgn ecEOc9DODR0QPOvqERd2Pfb0UAJxyg9R4brivm9HqrzVbtARzyRiB9s4VE79b6srgMAJ Hg0PyUU6qgwdnG8+kdruUbQe8a5MrGo13BY1g1vgttiZHCA8cMSx6VvUwQkv78ZCcmeF jZVA== X-Gm-Message-State: AOAM532yaxNoUL3L38ttrVqX8+3GntXY3pwpEKPTsqzAC9UO0z64PrSV zx1UhM7BWgU6y0pjCeqhJrZcLjNe5Zo= X-Google-Smtp-Source: ABdhPJwtRfxzRey1RtTtc3sR/MyJY/BGqSSBrW7BJ3DVHCS/1s4hc+5vz7jaeTq3VF904BrV2ffx0Q== X-Received: by 2002:a05:6000:186c:b0:20f:e176:df0b with SMTP id d12-20020a056000186c00b0020fe176df0bmr26082444wri.608.1653830303593; Sun, 29 May 2022 06:18:23 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:22 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:04 +0200 Message-Id: <20220529131811.481017-4-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 04/11] package/gcc: disable libsanitizer for mips{el} and gcc > 12 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Since [1], gcc contains a workaround for struct_kernel_stat_sz definition and apply a local patch when updating libsanitizer with upstream (llvm-project) [2]. Since gcc 12, the workaround is not enough and trigger the following error: In file included from ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cpp:21: ../../../../libsanitizer/sanitizer_common/sanitizer_platform_limits_linux.cpp:75:38: error: static assertion failed 75 | COMPILER_CHECK(struct_kernel_stat_sz == sizeof(struct stat)); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ Disable libsanitizer for now. Note: Only glibc toolchains are affected since libsanitizer is disabled for musl and uClibc-ng toolchains [3]. Fixes: https://gitlab.com/kubu93/toolchains-builder/-/jobs/2510178606 [1] http://gcc.gnu.org/ml/gcc/2018-03/msg00133.html [2] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=9f943b2446f2d0a345bbf9b4be3d3a4316372270 [3] https://git.buildroot.net/buildroot/commit/?id=5f4d658d888b539de9a6247ae5b1a0999de5d4ec Signed-off-by: Romain Naour --- package/gcc/gcc.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index e1f3935e56..73440e9e35 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -145,6 +145,12 @@ ifeq ($(BR2_mips64)$(BR2_mips64el)$(BR2_MIPS_NABI32),yy) HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer endif +# libsanitizer bundled in gcc 12 fail to build for mips32 due to +# mixing kernel and user struct stat. +ifeq ($(BR2_TOOLCHAIN_GCC_AT_LEAST_12)$(BR2_mips)$(BR2_mipsel),yy) +HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer +endif + # The logic in libbacktrace/configure.ac to detect if __sync builtins # are available assumes they are as soon as target_subdir is not # empty, i.e when cross-compiling. However, some platforms do not have From patchwork Sun May 29 13:18:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636673 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=YIA9Lp2I; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zf02WZ5z9sBB for ; Sun, 29 May 2022 23:19:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 2352384720; Sun, 29 May 2022 13:19:18 +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 yRuAW4E_QGKu; Sun, 29 May 2022 13:19:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id DCF8E84707; Sun, 29 May 2022 13:19:14 +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 88A271BF4D8 for ; Sun, 29 May 2022 13:18:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8597560F08 for ; Sun, 29 May 2022 13:18:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 281-TFFnsiYA for ; Sun, 29 May 2022 13:18:27 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by smtp3.osuosl.org (Postfix) with ESMTPS id 2F0996108E for ; Sun, 29 May 2022 13:18:27 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id k19so3289382wrd.8 for ; Sun, 29 May 2022 06:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/4XExNpL8za0CglT3T9baVW3D9x6nqTI/HabKaiWH7w=; b=YIA9Lp2IwxzCCq5E0bv+4fHR5oNaxHn1+rtjolcGoIbmqkTKIguPvyXqrgsBC5/oQ0 vvGpvZcJVj9ty69xsd8bfp2AnrkKqOLSOE3HEAqWCdgHfhOD8b+2ePpQ8WHBKW9w7rXq l24TSEk7pwmR2GQJ+6rsGE+4rpEvqlFIt4TLTAjd75uRfUl4m5pf+ttdtUQH1eoqzlh0 hHR3BgxiJM/bcqGngOcZkvU9mGRmkd3hdRN/xXcDLmeW7pvnrjqrHuadtnQnlfQ8iaxt mTtzAwPWup95Mh5SSdvxjY/D5SVYwJxY5cG6b7atqoyd56DXHqDgOdBD2pdAgis176y6 ZX/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/4XExNpL8za0CglT3T9baVW3D9x6nqTI/HabKaiWH7w=; b=P+0eiR6j8D4tUfQ19TPmfENwkVBzBD2xFKwIiAxH2ZSH92h/Ifx9TZAoFgI1IuNqSi 1W9T2Oz+UvcIXQI6KyGVY9pGWeBKc1yIThTDqxRCrrJtG1/cfBFhml4LdP+65AxAt5Hu id2sVpWZIIKsB96MSXryaeuLCq6eF2w+Hm/TP1vF9ytE/jZhwrT8bE5mn3oK58ArJqHG O1jwUw/Vdgz0Pey2sOU/xn6K4cMmWpyr0o35tFp3TNtye72/0KgmmKYWqFd9jdLo1ojx BU91jXbd/oUC4W8+r4EQ2bgDDzJo5M4jHICt+0ZCKpLSj6EdLuUg0Uv7Zj/HR386MrGh UO6A== X-Gm-Message-State: AOAM530P0Bor6UaZ+RBz6Dc9iclwiBl7zOMQsX4EU7t00lCnhzjTUPiH KyftVd+7X0wvaoEA/mCKjvecZRfAh7Q= X-Google-Smtp-Source: ABdhPJyevFxLAoYfXiyNMuq42XVXsyiloIA2Ovr1Ui6qKXUZXg4WtW5OzUbpAHVIsnHru/szVWSICA== X-Received: by 2002:adf:e30f:0:b0:210:346e:d5da with SMTP id b15-20020adfe30f000000b00210346ed5damr383663wrj.313.1653830305459; Sun, 29 May 2022 06:18:25 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:24 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:05 +0200 Message-Id: <20220529131811.481017-5-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 05/11] toolchain: enable libquadmath for PowerPC with VSX 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: Romain Naour , Cyril Bur , =?utf-8?q?C=C3=A9dric_Le_Goater?= Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" float128 is available on PowerPC with VSX [1] but it requires libquadmath support. [1] https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Floating-Types.html Signed-off-by: Romain Naour Cc: Cyril Bur Cc: Cédric Le Goater --- toolchain/Config.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolchain/Config.in b/toolchain/Config.in index 73ea78624a..7e129e58d3 100644 --- a/toolchain/Config.in +++ b/toolchain/Config.in @@ -833,9 +833,11 @@ config BR2_TOOLCHAIN_HAS_ATOMIC # - At least, libquadmath is available on: # - i*86 # - x86_64 +# - PowerPC with vector scalar (VSX) instruction set # - When available, libquadmath requires wchar support. config BR2_TOOLCHAIN_HAS_LIBQUADMATH bool default y if BR2_i386 || BR2_x86_64 + default y if BR2_POWERPC_CPU_HAS_VSX endmenu From patchwork Sun May 29 13:18:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636674 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=BFrT5GD9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zfD2jlvz9sBB for ; Sun, 29 May 2022 23:19:32 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 82B9F41BD2; Sun, 29 May 2022 13:19:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org 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 Y3jZaDQJmfkQ; Sun, 29 May 2022 13:19:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 72C1B41BC1; Sun, 29 May 2022 13:19:27 +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 9E2D81BF4D8 for ; Sun, 29 May 2022 13:18:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9C27C846C6 for ; Sun, 29 May 2022 13:18:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 SoWzKoWpAqyb for ; Sun, 29 May 2022 13:18:28 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by smtp1.osuosl.org (Postfix) with ESMTPS id B41288451C for ; Sun, 29 May 2022 13:18:28 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id e2so11513415wrc.1 for ; Sun, 29 May 2022 06:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KJVkH1CyWkR7eGhCwMYBirmhn0EXetfSzzHWBArIN0o=; b=BFrT5GD9kUQ3Uaz1FdlUcEVOKB4F3iy4QsxwXunScJQIcuGI4hvHv/DVTI1iT4ZcQG V1Xvxnmono/CRTML/zsIAgtHIz1Lr1jh1z+TVjOU85Rq4Xu7/yuSb7grusGcoSajV6JZ vuBzEzIADW03vJuFA2UAoxk2V3p/UEheQUTkH5UnM99xq5SzlKG3qY/BeOdSCR+hURsI 853CcUPd7eozJVCZk1v7wACNd/CAqednmWMKr3KxFS+uLRZK4+xP0TzxNwplKlqTqi9Q igEKib5lrJDOnsEcRJRG0qTSGxxDCFzApKwKcjNwE7BP4PpFkT8mCEKYmq9qZ5qTGZKr WN2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KJVkH1CyWkR7eGhCwMYBirmhn0EXetfSzzHWBArIN0o=; b=aaj/AHinenTvMxBrYG6JYFWbvOeRLMUB7a/g0NcT18ZnQhfvoP+Qt0OgTvdU91LyvR mYZDiM9puGPgUQJ4rbpYcsOB5J4W2DAcHgE9Owax/8n/2eaOkyBC+h2GUAsMY84bKmaT 5cORl2VnymFhIZuuQ5AYdux+aQUk6WV8twEhE+dBMRZDyvBraP4S0OFa80BKW+k7l0oh wBm7s6S2zjdtYYQUbefbmK4yLWqBAk52ABKO8qY7/2W3y01UerF1el8JoCME+PBCwAVZ 5//K/h/ZExkNg0hTfEn9SsRQbTgYM4u/dEZF3KJiqyPnAzyJXP9yOdbzopLK3WTju+WZ aI3w== X-Gm-Message-State: AOAM530ifGqy2FHCfcGXcUQ3pRLRa3b2KBKskDgOvUKYYmYpNVaMlKCl CUQ7fmLIC5NB793oGhn2GrAMLbtRcII= X-Google-Smtp-Source: ABdhPJyEb1c3lUpFOx2mJK8deRF+I9BiqwCN+6vWBz84+SfZ7WgebmYAa9ferXWeUi3Oisdz5Pj/GQ== X-Received: by 2002:a5d:4572:0:b0:20f:ca8a:bc5a with SMTP id a18-20020a5d4572000000b0020fca8abc5amr31710958wrc.514.1653830306799; Sun, 29 May 2022 06:18:26 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:26 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:06 +0200 Message-Id: <20220529131811.481017-6-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 06/11] package/gcc: add missing --enable-libquadmath-support option 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" When BR2_TOOLCHAIN_HAS_LIBQUADMATH is set, --enable-libquadmath-support option is missing. So the float128 support is not fully enabled in gcc. This lead to a build issue with gcc 12 on PowerPC power8 due to missing M_2_SQRTPIq definition (provided by libquadmath.h). ../../../libgfortran/intrinsics/erfc_scaled.c: In function ‘erfc_scaled_r17’: ../../../libgfortran/intrinsics/erfc_scaled.c:143:22: error: ‘M_2_SQRTPIq’ undeclared (first use in this function); did you mean ‘M_2_SQRTPIf’? 143 | # define _M_2_SQRTPI M_2_SQRTPIq | ^~~~~~~~~~~ This is fixed by adding --enable-libquadmath-support (like crosstool-ng handling [1]). Fixes: https://gitlab.com/kubu93/toolchains-builder/-/jobs/2510178766 [1] https://github.com/crosstool-ng/crosstool-ng/blob/crosstool-ng-1.25.0/scripts/build/cc/gcc.sh#L370 Signed-off-by: Romain Naour --- package/gcc/gcc.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 73440e9e35..c3c1df833b 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -121,7 +121,7 @@ endif # quadmath support requires wchar ifeq ($(BR2_USE_WCHAR)$(BR2_TOOLCHAIN_HAS_LIBQUADMATH),yy) -HOST_GCC_COMMON_CONF_OPTS += --enable-libquadmath +HOST_GCC_COMMON_CONF_OPTS += --enable-libquadmath --enable-libquadmath-support else HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath --disable-libquadmath-support endif From patchwork Sun May 29 13:18:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636675 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=GvwCWksP; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zfT1NFPz9sBB for ; Sun, 29 May 2022 23:19:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E7C8084741; Sun, 29 May 2022 13:19:42 +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 WT6xoifIHokB; Sun, 29 May 2022 13:19:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id DAF7084707; Sun, 29 May 2022 13:19:40 +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 09E121BF4D8 for ; Sun, 29 May 2022 13:18:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EC25B6108E for ; Sun, 29 May 2022 13:18:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 WM1QY4dyRU51 for ; Sun, 29 May 2022 13:18:29 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by smtp3.osuosl.org (Postfix) with ESMTPS id E74B460F08 for ; Sun, 29 May 2022 13:18:28 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id q7so510546wrg.5 for ; Sun, 29 May 2022 06:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MGYTrVEAdWATpA7NUw3r8bBSLnmNG7QlJXve/VtOUgY=; b=GvwCWksPvGEBI4/DmawFaH+LSAj4Js9zqNfUJfbVc3C9iP59/Q9Br1HzMLqls30KUy FRtG8d4jll9W1nD/D2tVSBUE0luFGMkfJxGQIpGwG3gbh8gc73CPRf4jiQpUY/WR0Ecw wcAnR3/H5vXaDhetmN6ji6yu4CSaacICpwkzKNyp5toYvLDoQpl2hPu8gK11oK72b4p2 4nY3hGR84NB3xb4vnNuMciEBddk99NVZM/NZQhAyDrGhXaGI7V92hS4yF+Wbx2JLBAI1 ZUXqXrwfzbI6cJ71G1jURYW1VdGgYxisulE6rZsKoX6Lipxg/7EtR06JOalTnTlGnofj wHvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MGYTrVEAdWATpA7NUw3r8bBSLnmNG7QlJXve/VtOUgY=; b=OzQAwpl46ttHtU385RZq6gPusV3+vAYnMPUITUKgEGqI4Ia2eB9GkkUNJIXN00s2Kn sKOCYHds+2A++mq6OhPOV4q6AHLY2QqbNcgdCVu1H8pFDkL1SAG+q8oPXE5HLwFnC+my Rm5V8+bMPdrrqVMEdQc0whtV656q3xC3DNWBxpdGJvo55c0kZV4YSyykJyVvIuQx2EmZ f/QS4RTb92A1M6b5OP9p3ibCMDMG7TRIVdFAP3QCMQS2RxisM1JVR6iEPxri563QRgQS MwmheYHtYthRazUgEQtainT+PjueD30ZZGGhV00d1ZPTH0rLrtPX4HoFt43fMyd0RfkH 3iZA== X-Gm-Message-State: AOAM533zM4MHxreEWlXNiv96nMeB7t3Bil3tjA+9g5y2JpRtJ8kLdU5Y Xpg7WNKL1wgeqx7ZKrhqnbp8eAkbsqc= X-Google-Smtp-Source: ABdhPJyZOJsVXNUcaNd3yhjvCje+279fjLgZYB2J5wnk+/3w4SYFSN8VebPepdLAbRT229vaIWKZ0w== X-Received: by 2002:adf:d1ec:0:b0:210:2c68:a06d with SMTP id g12-20020adfd1ec000000b002102c68a06dmr3774205wrd.37.1653830308577; Sun, 29 May 2022 06:18:28 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:27 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:07 +0200 Message-Id: <20220529131811.481017-7-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 07/11] package/gcc: switch to https urls for archives hashes 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" FTP urls doesn't work anymore with Firefox [1] and Google Chrome [2], switch to https urls. [1] https://blog.mozilla.org/addons/2020/04/13/what-to-expect-for-the-upcoming-deprecation-of-ftp-in-firefox/ [2] https://chromestatus.com/feature/6246151319715840 Signed-off-by: Romain Naour --- package/gcc/gcc.hash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash index ad8bae4a99..e364be0a06 100644 --- a/package/gcc/gcc.hash +++ b/package/gcc/gcc.hash @@ -1,10 +1,10 @@ -# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-8.4.0/sha512.sum +# From https://gcc.gnu.org/pub/gcc/releases/gcc-8.4.0/sha512.sum sha512 6de904f552a02de33b11ef52312bb664396efd7e1ce3bbe37bfad5ef617f133095b3767b4804bc7fe78df335cb53bc83f1ac055baed40979ce4c2c3e46b70280 gcc-8.4.0.tar.xz -# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-9.4.0/sha512.sum +# From https://gcc.gnu.org/pub/gcc/releases/gcc-9.4.0/sha512.sum sha512 dfd3500bf21784b8351a522d53463cf362ede66b0bc302edf350bb44e94418497a8b4b797b6af8ca9b2eeb746b3b115d9c3698381b989546e9151b4496415624 gcc-9.4.0.tar.xz -# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-10.3.0/sha512.sum +# From https://gcc.gnu.org/pub/gcc/releases/gcc-10.3.0/sha512.sum sha512 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86 gcc-10.3.0.tar.xz -# From ftp://gcc.gnu.org/pub/gcc/releases/gcc-11.3.0/sha512.sum +# From https://gcc.gnu.org/pub/gcc/releases/gcc-11.3.0/sha512.sum sha512 f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7 gcc-11.3.0.tar.xz # Locally calculated (fetched from Github) From patchwork Sun May 29 13:18:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636676 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=RD1FhfQD; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zfj01hvz9sBB for ; Sun, 29 May 2022 23:19:56 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 84D9A847B5; Sun, 29 May 2022 13:19:55 +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 1wcXrJtbMYGC; Sun, 29 May 2022 13:19:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 7FCC1847B9; Sun, 29 May 2022 13:19:53 +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 0FBDF1BF4D8 for ; Sun, 29 May 2022 13:18:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 0C78E41BC1 for ; Sun, 29 May 2022 13:18:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 9E0dCrGDAujv for ; Sun, 29 May 2022 13:18:32 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by smtp4.osuosl.org (Postfix) with ESMTPS id 75E4341BBE for ; Sun, 29 May 2022 13:18:32 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id c9-20020a7bc009000000b0039750ec5774so5089032wmb.5 for ; Sun, 29 May 2022 06:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TGTuRYfEf59RocPa7y+fufmElx5FYDnB/XmpheSduIw=; b=RD1FhfQDjLm2xlf8lw0X3SaYfNMJVmgmJpSQdlJTTkaN13kvUnqbMDh3la2mHKa/lo 63KWwAvHb1s5vwAVUMgKUJik75f+ZKXd+6FNRBnuEu4slyjuX83UcM1H9AH98Mi+NKdD x+JAgdOv7xmeR7Vz82WPfI/wxG+lAFAzWhS+tjGIsWNDoTVljKN3hRrBvfz1HmJ2NPSG 6U1zR28cvSVtRW6bNuAJtTpY7SYGlfgHRzUl9wlETze2Qpv7RzcHmGdrxNbSpdOqBN+h vpsMJ0QYf+AiazNZYNWMYfExTVLhoHvgAvvXRNCC5n/fpJP0G4+p8SbJm4hTgdbxYSFF QM3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TGTuRYfEf59RocPa7y+fufmElx5FYDnB/XmpheSduIw=; b=TbkS0pj4cXcublz/XrUBZD/1iPFQv+eag4MDWfKMOGrAwdOtZIGSd8AVw5EYBNRdGJ GYxvKAOB5VOdPgKblS5jto45S+pSzAHVDVgtGPT0mMoS4ThCKNPEhcSsmDttgqh+W41H 1Td3DSaCtoK02B4RR1gUz8Zvkz8ms8ntriZoGwYO6s5ZxTl3bYxwQtYKa4SfU70p37RH ArXLVS7AH5TPdEhB/V/Y7Ngs0kZmRFkOA5+fIdVLsGCu6L/CyceyzGtUEZ4D5gXnHvjQ YmTIT25ZLWDCigX1qaKLyhZsmgCNOr0xUmXvNfn9DICATIMp+4C2LndewevGpSoHrn2F N7IA== X-Gm-Message-State: AOAM532JpfyWC6RMsNGXdEK5M1G1ER2LBT4thJkOmTb+t/KrIfkQO714 RswcgX7DaPI3ayTqqhRb69FKj1FNrc0= X-Google-Smtp-Source: ABdhPJwA9s6bOC+wQLJtGXEnoxn/skTMUefIB3O54ieuFHmqT38SxAz2gNp/089JZ91oLZtjAm2GMQ== X-Received: by 2002:a7b:c957:0:b0:397:3f4d:555c with SMTP id i23-20020a7bc957000000b003973f4d555cmr15257296wml.101.1653830310582; Sun, 29 May 2022 06:18:30 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:29 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:08 +0200 Message-Id: <20220529131811.481017-8-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 08/11] package/gcc: add support for gcc 12 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" https://gcc.gnu.org/gcc-12/changes.html https://gcc.gnu.org/gcc-12/porting_to.html Tested with toolchain-builder: https://gitlab.com/kubu93/toolchains-builder/-/pipelines/550404957 Signed-off-by: Romain Naour Tested-by: James Hilliard --- package/gcc/Config.in.host | 14 ++++++++++++++ package/gcc/gcc.hash | 2 ++ 2 files changed, 16 insertions(+) diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 06f83d8f87..bcf0743b23 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -62,6 +62,19 @@ config BR2_GCC_VERSION_11_X depends on !BR2_archs4x_rel31 select BR2_TOOLCHAIN_GCC_AT_LEAST_11 +config BR2_GCC_VERSION_12_X + bool "gcc 12.x" + # powerpc spe support has been deprecated since gcc 8.x. + # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html + depends on !BR2_powerpc_SPE + # uClibc-ng broken on sparc due to recent gcc changes + # that need to be reverted since gcc 8.4, 9.3 and 10.1. + # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98784 + depends on !BR2_sparc + # ARC HS48 rel 31 only supported by gcc arc fork. + depends on !BR2_archs4x_rel31 + select BR2_TOOLCHAIN_GCC_AT_LEAST_12 + endchoice # libcilkrts was introduced in gcc 4.9 and removed in gcc 8.x @@ -88,6 +101,7 @@ config BR2_GCC_VERSION default "9.4.0" if BR2_GCC_VERSION_9_X default "10.3.0" if BR2_GCC_VERSION_10_X default "11.3.0" if BR2_GCC_VERSION_11_X + default "12.1.0" if BR2_GCC_VERSION_12_X default "arc-2020.09-release" if BR2_GCC_VERSION_ARC config BR2_EXTRA_GCC_CONFIG_OPTIONS diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash index e364be0a06..dc19c282c2 100644 --- a/package/gcc/gcc.hash +++ b/package/gcc/gcc.hash @@ -6,6 +6,8 @@ sha512 dfd3500bf21784b8351a522d53463cf362ede66b0bc302edf350bb44e94418497a8b4b79 sha512 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86 gcc-10.3.0.tar.xz # From https://gcc.gnu.org/pub/gcc/releases/gcc-11.3.0/sha512.sum sha512 f0be5ad705c73b84477128a69c047f57dd47002f375eb60e1e842e08cf2009a509e92152bca345823926d550b7395ae6d4de7db51d1ee371c2dc37313881fca7 gcc-11.3.0.tar.xz +# From https://gcc.gnu.org/pub/gcc/releases/gcc-12.1.0/sha512.sum +sha512 2121d295292814a6761edf1fba08c5f633ebe16f52b80e7b73a91050e71e1d2ed98bf17eebad263e191879561c02b48906c53faa4c4670c486a26fc75df23900 gcc-12.1.0.tar.xz # Locally calculated (fetched from Github) sha512 b0853e2b1c5998044392023fa653e399e74118c46e616504ac59e1a2cf27620f94434767ce06b6cf4ca3dfb57f81d6eda92752befaf095ea5e564a9181b4659c gcc-arc-2020.09-release.tar.gz From patchwork Sun May 29 13:18:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636677 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=NXjWXX1k; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zfy6zl8z9sBB for ; Sun, 29 May 2022 23:20:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 8DEFA847A3; Sun, 29 May 2022 13:20:09 +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 5M7ilVHqeLA6; Sun, 29 May 2022 13:20:07 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp1.osuosl.org (Postfix) with ESMTP id 342A2847D0; Sun, 29 May 2022 13:20:06 +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 4B0861BF4D8 for ; Sun, 29 May 2022 13:18:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 35C3361105 for ; Sun, 29 May 2022 13:18:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 b3lhtqYv28sl for ; Sun, 29 May 2022 13:18:34 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp3.osuosl.org (Postfix) with ESMTPS id C4E0960F08 for ; Sun, 29 May 2022 13:18:33 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id n124-20020a1c2782000000b003972dfca96cso5097949wmn.4 for ; Sun, 29 May 2022 06:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=E3fMcVlZqozcExDdnKo3Sc2fBBxSKlxhFpJyeDleQr0=; b=NXjWXX1ka8EKe6Pwvl8itX+AwFnNDRbE63D2+lEZ99LmSCPOsxKdOskVmbrYZmJi1x A8fqEGx9ndWpK3yvNZPTQ12//vztAKsW1VWdCrHW7G+LUoDtqsV34RzGPLJIc3g+BMVs pVzqG/uoaDmC8sZlZS89ItXN3KEDolvVPJIhSbWHa1FB2SPpUrH4u9CDRaqtjMs72LSp 5NrKDZT11QL/Bszwx7F77cbPoVdLwsDf6PKgn6VR8ARNgKQgbdGi15K4WURx/WJXMum9 LVAnFjXSMw+ttNLqdRUM11fzbymSBBWObBCYhaaLzjpI1cHWqKaDEvxVeQ2PMjMvzqDa 4SMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=E3fMcVlZqozcExDdnKo3Sc2fBBxSKlxhFpJyeDleQr0=; b=ThJj5MMzY+QX+Qjbl+wcPTc6ZbYT3IAYrVnhM7NHTYRqWGRXT74p4MQ4vFlUtSKAUQ RiJxXH1YPKnK08qwAZg8dX3wuYr+reVIsiIMnPgD4ycqGodGz1cnWILnpFBsOXOWh9OX 2yMUNPttPtHFJazowOCYh0DUIgFRPvIBY21gA1FsAin1jbntLoS5qXgt0W2XAEy9SGzr wqTXKnlN6FnhvvgWPP08DHKrZDGzLFcl8VhFG5OqZtrbvvJ2/gYBq8fQL1546cPc1G8Q v1NaQAR2Gp/gLbDHvMC8CsBS+tVkDkqEY11E0REoKiFrK4aFcA/bk9NGsIO9acohXONU HjsQ== X-Gm-Message-State: AOAM530AiRoVVJY43OjiKBfg25aurajw7TeHtGJ+LfIt2g9ZHHyBNHI/ X2t9yqaEo5cP4pJNQs7iZB8bIahmKyk= X-Google-Smtp-Source: ABdhPJy2T3x1mzu19AkqqOdPqUuGGJvbDminoIyt8pJcFbSB9whke5IOLfKtxyaNxd0uGEZM3AcQpg== X-Received: by 2002:a05:600c:a44:b0:38e:3ce3:3148 with SMTP id c4-20020a05600c0a4400b0038e3ce33148mr14862952wmq.26.1653830312022; Sun, 29 May 2022 06:18:32 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:31 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:09 +0200 Message-Id: <20220529131811.481017-9-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 09/11] arch: add BR2_ARCH_NEEDS_GCC_AT_LEAST_12 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" This new symbol will be used by architectures introduced with gcc 12. Signed-off-by: Romain Naour --- arch/Config.in | 4 ++++ package/gcc/Config.in.host | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/Config.in b/arch/Config.in index 49e16fce38..966ceaa397 100644 --- a/arch/Config.in +++ b/arch/Config.in @@ -321,6 +321,10 @@ config BR2_ARCH_NEEDS_GCC_AT_LEAST_11 bool select BR2_ARCH_NEEDS_GCC_AT_LEAST_10 +config BR2_ARCH_NEEDS_GCC_AT_LEAST_12 + bool + select BR2_ARCH_NEEDS_GCC_AT_LEAST_11 + # The following string values are defined by the individual # Config.in.$ARCH files config BR2_ARCH diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index bcf0743b23..afaa4d2191 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -51,6 +51,7 @@ config BR2_GCC_VERSION_10_X config BR2_GCC_VERSION_11_X bool "gcc 11.x" + depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_12 # powerpc spe support has been deprecated since gcc 8.x. # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html depends on !BR2_powerpc_SPE From patchwork Sun May 29 13:18:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636678 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kPDod+8S; 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 (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zgC13wSz9sBB for ; Sun, 29 May 2022 23:20:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E244640A13; Sun, 29 May 2022 13:20:20 +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 lru0XwlvGdnS; Sun, 29 May 2022 13:20:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 029FB40A0D; Sun, 29 May 2022 13:20:19 +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 716B01BF4D8 for ; Sun, 29 May 2022 13:18:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6025141BC1 for ; Sun, 29 May 2022 13:18:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 VopvS_fAqMcI for ; Sun, 29 May 2022 13:18:35 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp4.osuosl.org (Postfix) with ESMTPS id 6C53941BBE for ; Sun, 29 May 2022 13:18:35 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id 7so3880592wmz.3 for ; Sun, 29 May 2022 06:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gbkd5wAg3w1bK22OsS0CB43eE1yGilswdDZ0WdX+KEQ=; b=kPDod+8SWByxZkvDCBlNVNnWDdm2KFJPW8OLLbR9Ql5kqklErOryiQkZ8LF2kiKs0m SMkz2I9jlV2/ms0X30rLR4mIGR1rc/2U4g//SDHalsk0Vkm6gKrXBuOALitsdCyBdaVW CC45LAothZyWsCn50fNDQsN4O7c42K+uMtkFu2jNVaFYkHB8/3Rx+y341f9pnB9f3spe NJt0uCXrrbZopDgTVI9n7/4OMqlwTvzYGDDp3z3OyEYO9Wya383dxhPSyzZt6pfVaSSB zV09pDhpuafe7zyMcoQr8FxKD+rqZTkQTktkwcHzPii4SHHjW5abjVVe8/gtZff+6cwE U88g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gbkd5wAg3w1bK22OsS0CB43eE1yGilswdDZ0WdX+KEQ=; b=T5uTzKs2XzssdT2K3vgdqG1Z5r2QH+WRZEephWyS0Tl+B7dSYg5z8tDBVNWnfqYB0o Z60Ul5xAbwHbHyVJFl/dx1xOd2iwC9Xl7cV/XACgqstieQWeVegRxIGmAFp6lXZ7v/u1 KUdbnXhI4tRg8nW4O/h7r00l/hjllj+3S5rvLet4knOPk3MT3nuNnZ62V6fEhzogYCEY ECt8hDJsdqlPQHba6M2qphXfVSsSn9c6RzsEUmMx1ABIPL55vwtPmun8xw7RKdUhtkiD 7t064E4xorIYaKLQLrHXSdDK/MMSCeCJWzoJyOoBNb7Jd2uSGa7YJfdvm89jHd8pnVCV AMKw== X-Gm-Message-State: AOAM532zb9MVOWPj/Pb4yhADkBH0c19prGUn/ILYgwY++4FNvmrO2/x7 C5Iq3Q1L4hm74WbRgy8FXc1HIxhoEQQ= X-Google-Smtp-Source: ABdhPJzCVDMC+P82jjB/0LK466FGYWpjqc9ssavHQGZxV9jx6oN3b9koKe57Bkdpeq6uofGauY2Y/Q== X-Received: by 2002:a7b:cd8b:0:b0:397:435f:91c8 with SMTP id y11-20020a7bcd8b000000b00397435f91c8mr15166353wmj.83.1653830313653; Sun, 29 May 2022 06:18:33 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:32 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:10 +0200 Message-Id: <20220529131811.481017-10-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 10/11] package/gcc: switch to gcc 11.x as the default 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Even if gcc 10.x is still maintained for some time, switch to gcc 11.x since it has been released since 2021-04-27 and gcc 12.x is available since "2022-05-10". We have been having toolchains in the autobuilders with gcc 11.x since mid-June 2021, so the vast majority of the problems should have already been solved. Signed-off-by: Romain Naour --- package/gcc/Config.in.host | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index afaa4d2191..10061dbc9d 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -4,7 +4,7 @@ choice prompt "GCC compiler Version" default BR2_GCC_VERSION_ARC if BR2_arc default BR2_GCC_VERSION_POWERPC_SPE if BR2_powerpc_SPE - default BR2_GCC_VERSION_10_X + default BR2_GCC_VERSION_11_X help Select the version of gcc you wish to use. From patchwork Sun May 29 13:18:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1636679 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=op1Tv2iC; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4L9zgS1pymz9sBB for ; Sun, 29 May 2022 23:20:36 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B6E6540B0D; Sun, 29 May 2022 13:20:34 +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 gOBZF3PyafeO; Sun, 29 May 2022 13:20:32 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 9D2B040AC8; Sun, 29 May 2022 13:20:31 +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 381611BF4D8 for ; Sun, 29 May 2022 13:18:39 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 355B4610BF for ; Sun, 29 May 2022 13:18:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 WfV6ctvZWfWH for ; Sun, 29 May 2022 13:18:37 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9429C61106 for ; Sun, 29 May 2022 13:18:36 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id n124-20020a1c2782000000b003972dfca96cso5097949wmn.4 for ; Sun, 29 May 2022 06:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ow+VsUvdK5uwm+WIHXxyc603aY8hG1iv0w0sVeh6g2s=; b=op1Tv2iCS6UL3TDeOF5/cEgDbPM9DsWIotDVWbLn90zcGNgHefCMWfnbmCAE64mWel 5YgPleri23K98o5ya4X7DjsbfFB4UCBh63JIb46aBm80GPkluWwRXPOp16Q39/j8k0ax Q9vK51PC3BYJGdejlgzBDSwTp9BUBxMe4u1ZiIqH6IiQwRtV6ZBsu/09rh7iM44A/Lxg oD/H2ZxVb1pXrK7dS7m/Sbe8PYZu3mMsxbaufoOTcOFV/+4kFoK0583vUGudj65r9zVv 4GWwruT9hUUq6Ni88gaUnknn+rZx1AuX1feRPebBIEMwYvNt+GxqgeGSNXt3v8Ae2bBC qMOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ow+VsUvdK5uwm+WIHXxyc603aY8hG1iv0w0sVeh6g2s=; b=yO3hmmY8z6WEJE58yJ1a08ovswzV8XRk/1wPFct2MCsSTi5ekSxbTUSRhltY6z/n4t KovOLabZIPfkd0dG8N7TF9J3+QDBZSBYs1eIXxRwpvuB5Tz0kTOspAHOgpN0iRm4J3MV dUUkAV6C9LOPLuEMgXoCRl5oZsJzO0Zb/Uw/ATyWCd1RRbWkMBTy8a34G3J+FGDSScr4 gj3fz+VRMc0CtCe9CZNN+bNRR7IJvAGlaE1FUOniC4VrQ4Q3+Ffg3zm567vGZJ3TaI7E IigZgrdkh5oPoPa0pzJNb/uT2QC7a8KEtVZsXrpMUuZOUJxGnUiSK2pR4wRnswda80ov 5bDg== X-Gm-Message-State: AOAM531o3QxPP9/4SgigiQaEKy+tImJvbzjhw/HJBufFIp85YV5DEco8 vUr2dJqcbqF6eZHwpLsHLTbobjZjq7k= X-Google-Smtp-Source: ABdhPJwRiWNpmd2rJuYVqjnt5iLwi223UQIrlIOSUawCbXcxRe1wcop8b0usqBsIxwCUiEzOdWhAjA== X-Received: by 2002:a7b:ce8a:0:b0:397:37c9:254a with SMTP id q10-20020a7bce8a000000b0039737c9254amr14950096wmj.96.1653830315963; Sun, 29 May 2022 06:18:35 -0700 (PDT) Received: from atlas.home (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id d15-20020a05600c34cf00b003949dbc3790sm7492562wmq.18.2022.05.29.06.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 May 2022 06:18:35 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Sun, 29 May 2022 15:18:11 +0200 Message-Id: <20220529131811.481017-11-romain.naour@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220529131811.481017-1-romain.naour@gmail.com> References: <20220529131811.481017-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH for-next 11/11] package/gcc: remove gcc 9.x 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: Romain Naour Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" gcc 12.1 is around, gcc 11.3 is the default version, so drop 9.5 in order to reduce the gcc choice. Signed-off-by: Romain Naour --- Config.in.legacy | 9 + ...-issue-with-set_got-clobbering-LR-r9.patch | 105 ------ ...TRANT-for-OpenRISC-when-pthread-is-p.patch | 31 -- ...get-92095-internal-error-with-O1-mcp.patch | 325 ------------------ ...-mcmodel-option-to-handle-large-GOTs.patch | 201 ----------- ...-cmodel-large-when-building-crtstuff.patch | 60 ---- package/gcc/Config.in.host | 15 - package/gcc/gcc.hash | 2 - 8 files changed, 9 insertions(+), 739 deletions(-) delete mode 100644 package/gcc/9.4.0/0001-or1k-Fix-issue-with-set_got-clobbering-LR-r9.patch delete mode 100644 package/gcc/9.4.0/0002-gcc-define-_REENTRANT-for-OpenRISC-when-pthread-is-p.patch delete mode 100644 package/gcc/9.4.0/0003-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch delete mode 100644 package/gcc/9.4.0/0004-or1k-Add-mcmodel-option-to-handle-large-GOTs.patch delete mode 100644 package/gcc/9.4.0/0005-or1k-Use-cmodel-large-when-building-crtstuff.patch diff --git a/Config.in.legacy b/Config.in.legacy index 3d5df3abbb..39def0d853 100644 --- a/Config.in.legacy +++ b/Config.in.legacy @@ -144,6 +144,15 @@ endif ############################################################################### +comment "Legacy options removed in 2022.08" + +config BR2_GCC_VERSION_9_X + bool "gcc 9.x support removed" + select BR2_LEGACY + help + Support for gcc version 9.x has been removed. The current + default version (11.x or later) has been selected instead. + comment "Legacy options removed in 2022.05" config BR2_KERNEL_HEADERS_5_16 diff --git a/package/gcc/9.4.0/0001-or1k-Fix-issue-with-set_got-clobbering-LR-r9.patch b/package/gcc/9.4.0/0001-or1k-Fix-issue-with-set_got-clobbering-LR-r9.patch deleted file mode 100644 index 185e16c179..0000000000 --- a/package/gcc/9.4.0/0001-or1k-Fix-issue-with-set_got-clobbering-LR-r9.patch +++ /dev/null @@ -1,105 +0,0 @@ -From 014db5e5febec94e35c13ce89ee6b389328873a1 Mon Sep 17 00:00:00 2001 -From: shorne -Date: Sat, 31 Aug 2019 06:00:56 +0000 -Subject: [PATCH] or1k: Fix issue with set_got clobbering LR (r9) - -When compiling glibc we found that the GOT register was being allocated -r9 when the instruction was still set_got_tmp. That is a problem -because r9 is the Link Register (LR) in OpenRISC which is used/clobbered -in set_got. We cannot use r9 as the GOT register. Also, we cannot -simply say set_got_tmp clobbers r9 as this is the reason for having the -temporary set_got_tmp. - -Fix by using a register class constraint that does not allow r9 during -register allocation. - -gcc/ChangeLog: - - * config/or1k/constraints.md (t): New constraint. - * config/or1k/or1k.h (GOT_REGS): New register class. - * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint. - -git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275242 138bc75d-0d04-0410-961f-82ee72b054a4 -(cherry picked from commit 5b9471ffca25d39635680516ba2ff85295480fc3) -Signed-off-by: Romain Naour ---- - gcc/config/or1k/constraints.md | 4 ++++ - gcc/config/or1k/or1k.h | 3 +++ - gcc/config/or1k/or1k.md | 4 ++-- - 3 files changed, 9 insertions(+), 2 deletions(-) - -diff --git a/gcc/config/or1k/constraints.md b/gcc/config/or1k/constraints.md -index 93da8c058c6..a16b749008f 100644 ---- a/gcc/config/or1k/constraints.md -+++ b/gcc/config/or1k/constraints.md -@@ -24,6 +24,7 @@ - - ; We use: - ; c - sibcall registers -+; t - got address registers (excludes LR (r9) which is clobbered by set_got) - ; I - constant signed 16-bit - ; K - constant unsigned 16-bit - ; M - constant signed 16-bit shifted left 16-bits (l.movhi) -@@ -32,6 +33,9 @@ - (define_register_constraint "c" "SIBCALL_REGS" - "Registers which can hold a sibling call address") - -+(define_register_constraint "t" "GOT_REGS" -+ "Registers which can be used to store the Global Offset Table (GOT) address.") -+ - ;; Immediates - (define_constraint "I" - "A signed 16-bit immediate in the range -32768 to 32767." -diff --git a/gcc/config/or1k/or1k.h b/gcc/config/or1k/or1k.h -index 6dda230f217..feee702d89c 100644 ---- a/gcc/config/or1k/or1k.h -+++ b/gcc/config/or1k/or1k.h -@@ -189,6 +189,7 @@ enum reg_class - { - NO_REGS, - SIBCALL_REGS, -+ GOT_REGS, - GENERAL_REGS, - FLAG_REGS, - ALL_REGS, -@@ -200,6 +201,7 @@ enum reg_class - #define REG_CLASS_NAMES { \ - "NO_REGS", \ - "SIBCALL_REGS", \ -+ "GOT_REGS", \ - "GENERAL_REGS", \ - "FLAG_REGS", \ - "ALL_REGS" } -@@ -212,6 +214,7 @@ enum reg_class - #define REG_CLASS_CONTENTS \ - { { 0x00000000, 0x00000000 }, \ - { SIBCALL_REGS_MASK, 0 }, \ -+ { 0xfffffdff, 0x00000000 }, \ - { 0xffffffff, 0x00000003 }, \ - { 0x00000000, 0x00000004 }, \ - { 0xffffffff, 0x00000007 } \ -diff --git a/gcc/config/or1k/or1k.md b/gcc/config/or1k/or1k.md -index 2dad51cd46b..88f3f02630f 100644 ---- a/gcc/config/or1k/or1k.md -+++ b/gcc/config/or1k/or1k.md -@@ -595,7 +595,7 @@ - ;; set_got pattern below. This works because the set_got_tmp insn is the - ;; first insn in the stream and that it isn't moved during RA. - (define_insn "set_got_tmp" -- [(set (match_operand:SI 0 "register_operand" "=r") -+ [(set (match_operand:SI 0 "register_operand" "=t") - (unspec_volatile:SI [(const_int 0)] UNSPECV_SET_GOT))] - "" - { -@@ -604,7 +604,7 @@ - - ;; The insn to initialize the GOT. - (define_insn "set_got" -- [(set (match_operand:SI 0 "register_operand" "=r") -+ [(set (match_operand:SI 0 "register_operand" "=t") - (unspec:SI [(const_int 0)] UNSPEC_SET_GOT)) - (clobber (reg:SI LR_REGNUM))] - "" --- -2.31.1 - diff --git a/package/gcc/9.4.0/0002-gcc-define-_REENTRANT-for-OpenRISC-when-pthread-is-p.patch b/package/gcc/9.4.0/0002-gcc-define-_REENTRANT-for-OpenRISC-when-pthread-is-p.patch deleted file mode 100644 index 5ac03d7c0c..0000000000 --- a/package/gcc/9.4.0/0002-gcc-define-_REENTRANT-for-OpenRISC-when-pthread-is-p.patch +++ /dev/null @@ -1,31 +0,0 @@ -From f80e9941739fb3973b61fc6a5abddef5ad2faf73 Mon Sep 17 00:00:00 2001 -From: Bernd Kuhls -Date: Fri, 27 Mar 2020 21:23:53 +0100 -Subject: [PATCH] gcc: define _REENTRANT for OpenRISC when -pthread is passed - -The detection of pthread support fails on OpenRISC unless _REENTRANT -is defined. Added the CPP_SPEC definition to correct this. - -Patch sent upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94372 - -Signed-off-by: Bernd Kuhls ---- - gcc/config/or1k/linux.h | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/gcc/config/or1k/linux.h b/gcc/config/or1k/linux.h -index cbdc781418f..36303af892c 100644 ---- a/gcc/config/or1k/linux.h -+++ b/gcc/config/or1k/linux.h -@@ -32,6 +32,8 @@ - #undef MUSL_DYNAMIC_LINKER - #define MUSL_DYNAMIC_LINKER "/lib/ld-musl-or1k.so.1" - -+#define CPP_SPEC "%{pthread:-D_REENTRANT}" -+ - #undef LINK_SPEC - #define LINK_SPEC "%{h*} \ - %{static:-Bstatic} \ --- -2.31.1 - diff --git a/package/gcc/9.4.0/0003-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch b/package/gcc/9.4.0/0003-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch deleted file mode 100644 index 0c69de93be..0000000000 --- a/package/gcc/9.4.0/0003-Revert-re-PR-target-92095-internal-error-with-O1-mcp.patch +++ /dev/null @@ -1,325 +0,0 @@ -From 1107ecc3e8af31adc7bbd4e08c0614836bd1cebd Mon Sep 17 00:00:00 2001 -From: Romain Naour -Date: Wed, 20 Jan 2021 23:22:16 +0100 -Subject: [PATCH] Revert "re PR target/92095 (internal error with -O1 - -mcpu=niagara2 -fPIE)" - -This reverts commit 6bf2990842388101897b6f465524cbc295ee8cf9. - -Building the Buildroot defconfig qemu_sparc_ss10_defconfig using -gcc 8.4, 9.3 and 10 produce a broken rootfs that trigger illegal -instruction messages. - -gcc 8.3, 9.2 are the latest working gcc version. -git bisect between gcc 8.4 and 8.4 allowed to identify -the commit that introcuce the regression. - -Reverting this patch allowed to produce a working rootfs. - -Signed-off-by: Romain Naour -Cc: Eric Botcazou ---- - gcc/config/sparc/sparc-protos.h | 1 - - gcc/config/sparc/sparc.c | 121 +++++++----------- - gcc/config/sparc/sparc.md | 5 +- - .../gcc.c-torture/compile/20191108-1.c | 14 -- - gcc/testsuite/gcc.target/sparc/overflow-3.c | 2 +- - gcc/testsuite/gcc.target/sparc/overflow-4.c | 2 +- - gcc/testsuite/gcc.target/sparc/overflow-5.c | 2 +- - 7 files changed, 53 insertions(+), 94 deletions(-) - delete mode 100644 gcc/testsuite/gcc.c-torture/compile/20191108-1.c - -diff --git a/gcc/config/sparc/sparc-protos.h b/gcc/config/sparc/sparc-protos.h -index f1c120c4860..f4b6f00a7b1 100644 ---- a/gcc/config/sparc/sparc-protos.h -+++ b/gcc/config/sparc/sparc-protos.h -@@ -69,7 +69,6 @@ extern void sparc_split_reg_mem (rtx, rtx, machine_mode); - extern void sparc_split_mem_reg (rtx, rtx, machine_mode); - extern int sparc_split_reg_reg_legitimate (rtx, rtx); - extern void sparc_split_reg_reg (rtx, rtx, machine_mode); --extern const char *output_load_pcrel_sym (rtx *); - extern const char *output_ubranch (rtx, rtx_insn *); - extern const char *output_cbranch (rtx, rtx, int, int, int, rtx_insn *); - extern const char *output_return (rtx_insn *); -diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c -index 0553dc501e6..516dcf96d7b 100644 ---- a/gcc/config/sparc/sparc.c -+++ b/gcc/config/sparc/sparc.c -@@ -4170,6 +4170,13 @@ eligible_for_sibcall_delay (rtx_insn *trial) - static bool - sparc_cannot_force_const_mem (machine_mode mode, rtx x) - { -+ /* After IRA has run in PIC mode, it is too late to put anything into the -+ constant pool if the PIC register hasn't already been initialized. */ -+ if ((lra_in_progress || reload_in_progress) -+ && flag_pic -+ && !crtl->uses_pic_offset_table) -+ return true; -+ - switch (GET_CODE (x)) - { - case CONST_INT: -@@ -4205,11 +4212,9 @@ sparc_cannot_force_const_mem (machine_mode mode, rtx x) - } - - /* Global Offset Table support. */ --static GTY(()) rtx got_symbol_rtx = NULL_RTX; --static GTY(()) rtx got_register_rtx = NULL_RTX; - static GTY(()) rtx got_helper_rtx = NULL_RTX; -- --static GTY(()) bool got_helper_needed = false; -+static GTY(()) rtx got_register_rtx = NULL_RTX; -+static GTY(()) rtx got_symbol_rtx = NULL_RTX; - - /* Return the SYMBOL_REF for the Global Offset Table. */ - -@@ -4222,6 +4227,27 @@ sparc_got (void) - return got_symbol_rtx; - } - -+#ifdef HAVE_GAS_HIDDEN -+# define USE_HIDDEN_LINKONCE 1 -+#else -+# define USE_HIDDEN_LINKONCE 0 -+#endif -+ -+static void -+get_pc_thunk_name (char name[32], unsigned int regno) -+{ -+ const char *reg_name = reg_names[regno]; -+ -+ /* Skip the leading '%' as that cannot be used in a -+ symbol name. */ -+ reg_name += 1; -+ -+ if (USE_HIDDEN_LINKONCE) -+ sprintf (name, "__sparc_get_pc_thunk.%s", reg_name); -+ else -+ ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", regno); -+} -+ - /* Wrapper around the load_pcrel_sym{si,di} patterns. */ - - static rtx -@@ -4241,78 +4267,30 @@ gen_load_pcrel_sym (rtx op0, rtx op1, rtx op2) - return insn; - } - --/* Output the load_pcrel_sym{si,di} patterns. */ -- --const char * --output_load_pcrel_sym (rtx *operands) --{ -- if (flag_delayed_branch) -- { -- output_asm_insn ("sethi\t%%hi(%a1-4), %0", operands); -- output_asm_insn ("call\t%a2", operands); -- output_asm_insn (" add\t%0, %%lo(%a1+4), %0", operands); -- } -- else -- { -- output_asm_insn ("sethi\t%%hi(%a1-8), %0", operands); -- output_asm_insn ("add\t%0, %%lo(%a1-4), %0", operands); -- output_asm_insn ("call\t%a2", operands); -- output_asm_insn (" nop", NULL); -- } -- -- if (operands[2] == got_helper_rtx) -- got_helper_needed = true; -- -- return ""; --} -- --#ifdef HAVE_GAS_HIDDEN --# define USE_HIDDEN_LINKONCE 1 --#else --# define USE_HIDDEN_LINKONCE 0 --#endif -- - /* Emit code to load the GOT register. */ - - void - load_got_register (void) - { -- rtx insn; -+ if (!got_register_rtx) -+ got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM); - - if (TARGET_VXWORKS_RTP) -- { -- if (!got_register_rtx) -- got_register_rtx = pic_offset_table_rtx; -- -- insn = gen_vxworks_load_got (); -- } -+ emit_insn (gen_vxworks_load_got ()); - else - { -- if (!got_register_rtx) -- got_register_rtx = gen_rtx_REG (Pmode, GLOBAL_OFFSET_TABLE_REGNUM); -- - /* The GOT symbol is subject to a PC-relative relocation so we need a - helper function to add the PC value and thus get the final value. */ - if (!got_helper_rtx) - { - char name[32]; -- -- /* Skip the leading '%' as that cannot be used in a symbol name. */ -- if (USE_HIDDEN_LINKONCE) -- sprintf (name, "__sparc_get_pc_thunk.%s", -- reg_names[REGNO (got_register_rtx)] + 1); -- else -- ASM_GENERATE_INTERNAL_LABEL (name, "LADDPC", -- REGNO (got_register_rtx)); -- -+ get_pc_thunk_name (name, GLOBAL_OFFSET_TABLE_REGNUM); - got_helper_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (name)); - } - -- insn -- = gen_load_pcrel_sym (got_register_rtx, sparc_got (), got_helper_rtx); -+ emit_insn (gen_load_pcrel_sym (got_register_rtx, sparc_got (), -+ got_helper_rtx)); - } -- -- emit_insn (insn); - } - - /* Ensure that we are not using patterns that are not OK with PIC. */ -@@ -5477,7 +5455,7 @@ save_local_or_in_reg_p (unsigned int regno, int leaf_function) - return true; - - /* GOT register (%l7) if needed. */ -- if (got_register_rtx && regno == REGNO (got_register_rtx)) -+ if (regno == GLOBAL_OFFSET_TABLE_REGNUM && got_register_rtx) - return true; - - /* If the function accesses prior frames, the frame pointer and the return -@@ -12520,9 +12498,10 @@ static void - sparc_file_end (void) - { - /* If we need to emit the special GOT helper function, do so now. */ -- if (got_helper_needed) -+ if (got_helper_rtx) - { - const char *name = XSTR (got_helper_rtx, 0); -+ const char *reg_name = reg_names[GLOBAL_OFFSET_TABLE_REGNUM]; - #ifdef DWARF2_UNWIND_INFO - bool do_cfi; - #endif -@@ -12559,22 +12538,17 @@ sparc_file_end (void) - #ifdef DWARF2_UNWIND_INFO - do_cfi = dwarf2out_do_cfi_asm (); - if (do_cfi) -- output_asm_insn (".cfi_startproc", NULL); -+ fprintf (asm_out_file, "\t.cfi_startproc\n"); - #endif - if (flag_delayed_branch) -- { -- output_asm_insn ("jmp\t%%o7+8", NULL); -- output_asm_insn (" add\t%%o7, %0, %0", &got_register_rtx); -- } -+ fprintf (asm_out_file, "\tjmp\t%%o7+8\n\t add\t%%o7, %s, %s\n", -+ reg_name, reg_name); - else -- { -- output_asm_insn ("add\t%%o7, %0, %0", &got_register_rtx); -- output_asm_insn ("jmp\t%%o7+8", NULL); -- output_asm_insn (" nop", NULL); -- } -+ fprintf (asm_out_file, "\tadd\t%%o7, %s, %s\n\tjmp\t%%o7+8\n\t nop\n", -+ reg_name, reg_name); - #ifdef DWARF2_UNWIND_INFO - if (do_cfi) -- output_asm_insn (".cfi_endproc", NULL); -+ fprintf (asm_out_file, "\t.cfi_endproc\n"); - #endif - } - -@@ -13080,10 +13054,7 @@ sparc_init_pic_reg (void) - edge entry_edge; - rtx_insn *seq; - -- /* In PIC mode, we need to always initialize the PIC register if optimization -- is enabled, because we are called from IRA and LRA may later force things -- to the constant pool for optimization purposes. */ -- if (!flag_pic || (!crtl->uses_pic_offset_table && !optimize)) -+ if (!crtl->uses_pic_offset_table) - return; - - start_sequence (); -diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md -index d9ef79c13cc..6dbd054f1c7 100644 ---- a/gcc/config/sparc/sparc.md -+++ b/gcc/config/sparc/sparc.md -@@ -1601,7 +1601,10 @@ - (clobber (reg:P O7_REG))] - "REGNO (operands[0]) == INTVAL (operands[3])" - { -- return output_load_pcrel_sym (operands); -+ if (flag_delayed_branch) -+ return "sethi\t%%hi(%a1-4), %0\n\tcall\t%a2\n\t add\t%0, %%lo(%a1+4), %0"; -+ else -+ return "sethi\t%%hi(%a1-8), %0\n\tadd\t%0, %%lo(%a1-4), %0\n\tcall\t%a2\n\t nop"; - } - [(set (attr "type") (const_string "multi")) - (set (attr "length") -diff --git a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c b/gcc/testsuite/gcc.c-torture/compile/20191108-1.c -deleted file mode 100644 -index 7929751bb06..00000000000 ---- a/gcc/testsuite/gcc.c-torture/compile/20191108-1.c -+++ /dev/null -@@ -1,14 +0,0 @@ --/* PR target/92095 */ --/* Testcase by Sergei Trofimovich */ -- --typedef union { -- double a; -- int b[2]; --} c; -- --double d(int e) --{ -- c f; -- (&f)->b[0] = 15728640; -- return e ? -(&f)->a : (&f)->a; --} -diff --git a/gcc/testsuite/gcc.target/sparc/overflow-3.c b/gcc/testsuite/gcc.target/sparc/overflow-3.c -index 52d6ab2b688..86dddfb09e6 100644 ---- a/gcc/testsuite/gcc.target/sparc/overflow-3.c -+++ b/gcc/testsuite/gcc.target/sparc/overflow-3.c -@@ -1,6 +1,6 @@ - /* { dg-do compile } */ - /* { dg-require-effective-target lp64 } */ --/* { dg-options "-O -fno-pie" } */ -+/* { dg-options "-O" } */ - - #include - #include -diff --git a/gcc/testsuite/gcc.target/sparc/overflow-4.c b/gcc/testsuite/gcc.target/sparc/overflow-4.c -index c6121b958c3..019feee335c 100644 ---- a/gcc/testsuite/gcc.target/sparc/overflow-4.c -+++ b/gcc/testsuite/gcc.target/sparc/overflow-4.c -@@ -1,6 +1,6 @@ - /* { dg-do compile } */ - /* { dg-require-effective-target lp64 } */ --/* { dg-options "-O -fno-pie -mno-vis3 -mno-vis4" } */ -+/* { dg-options "-O -mno-vis3 -mno-vis4" } */ - - #include - #include -diff --git a/gcc/testsuite/gcc.target/sparc/overflow-5.c b/gcc/testsuite/gcc.target/sparc/overflow-5.c -index f00283f6e7b..67d4ac38095 100644 ---- a/gcc/testsuite/gcc.target/sparc/overflow-5.c -+++ b/gcc/testsuite/gcc.target/sparc/overflow-5.c -@@ -1,6 +1,6 @@ - /* { dg-do compile } */ - /* { dg-require-effective-target lp64 } */ --/* { dg-options "-O -fno-pie -mvis3" } */ -+/* { dg-options "-O -mvis3" } */ - - #include - #include --- -2.31.1 - diff --git a/package/gcc/9.4.0/0004-or1k-Add-mcmodel-option-to-handle-large-GOTs.patch b/package/gcc/9.4.0/0004-or1k-Add-mcmodel-option-to-handle-large-GOTs.patch deleted file mode 100644 index 894411f394..0000000000 --- a/package/gcc/9.4.0/0004-or1k-Add-mcmodel-option-to-handle-large-GOTs.patch +++ /dev/null @@ -1,201 +0,0 @@ -From 90b202b59fa2bdb68314a23471b32d3e16602bc8 Mon Sep 17 00:00:00 2001 -From: Stafford Horne -Date: Sun, 2 May 2021 06:11:44 +0900 -Subject: [PATCH] or1k: Add mcmodel option to handle large GOTs - -When building libgeos we get an error with: - - linux-uclibc/9.3.0/crtbeginS.o: in function `__do_global_dtors_aux': - crtstuff.c:(.text+0x118): relocation truncated to fit: R_OR1K_GOT16 against symbol `__cxa_finalize' defined in .text section in - /home/shorne/work/openrisc/3eb9f9d0f6d8274b2d19753c006bd83f7d536e3c/output/host/or1k-buildroot-linux-uclibc/sysroot/lib/libc.so. - -This is caused by GOT code having a limit of 64k. In OpenRISC this -looks to be the only relocation code pattern to be limited to 64k. - -This patch allows specifying a new option -mcmodel=large which can be -used to generate 2 more instructions to construct 32-bit addresses for -up to 4G GOTs. - -gcc/ChangeLog: - - PR 99783 - * config/or1k/or1k-opts.h: New file. - * config/or1k/or1k.c (or1k_legitimize_address_1, print_reloc): - Support generating gotha relocations if -mcmodel=large is - specified. - * config/or1k/or1k.h (TARGET_CMODEL_SMALL, TARGET_CMODEL_LARGE): - New macros. - * config/or1k/or1k.opt (mcmodel=): New option. - * doc/invoke.text (OpenRISC Options): Document mcmodel. - -Signed-off-by: Giulio Benetti ---- - gcc/config/or1k/or1k-opts.h | 30 ++++++++++++++++++++++++++++++ - gcc/config/or1k/or1k.c | 11 +++++++++-- - gcc/config/or1k/or1k.h | 7 +++++++ - gcc/config/or1k/or1k.opt | 19 +++++++++++++++++++ - gcc/doc/invoke.texi | 13 ++++++++++++- - 5 files changed, 77 insertions(+), 3 deletions(-) - create mode 100644 gcc/config/or1k/or1k-opts.h - -diff --git a/gcc/config/or1k/or1k-opts.h b/gcc/config/or1k/or1k-opts.h -new file mode 100644 -index 00000000000..f791b894fdd ---- /dev/null -+++ b/gcc/config/or1k/or1k-opts.h -@@ -0,0 +1,30 @@ -+/* Definitions for option handling for OpenRISC. -+ Copyright (C) 2021 Free Software Foundation, Inc. -+ Contributed by Stafford Horne. -+ -+ This file is part of GCC. -+ -+ GCC is free software; you can redistribute it and/or modify it -+ under the terms of the GNU General Public License as published -+ by the Free Software Foundation; either version 3, or (at your -+ option) any later version. -+ -+ GCC is distributed in the hope that it will be useful, but WITHOUT -+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY -+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public -+ License for more details. -+ -+ You should have received a copy of the GNU General Public License -+ along with GCC; see the file COPYING3. If not see -+ . */ -+ -+#ifndef GCC_OR1K_OPTS_H -+#define GCC_OR1K_OPTS_H -+ -+/* The OpenRISC code generation models available. */ -+enum or1k_cmodel_type { -+ CMODEL_SMALL, -+ CMODEL_LARGE -+}; -+ -+#endif /* GCC_OR1K_OPTS_H */ -diff --git a/gcc/config/or1k/or1k.c b/gcc/config/or1k/or1k.c -index fc10fcfabde..df67d72b139 100644 ---- a/gcc/config/or1k/or1k.c -+++ b/gcc/config/or1k/or1k.c -@@ -750,7 +750,14 @@ or1k_legitimize_address_1 (rtx x, rtx scratch) - { - base = gen_sym_unspec (base, UNSPEC_GOT); - crtl->uses_pic_offset_table = 1; -- t2 = gen_rtx_LO_SUM (Pmode, pic_offset_table_rtx, base); -+ if (TARGET_CMODEL_LARGE) -+ { -+ emit_insn (gen_rtx_SET (t1, gen_rtx_HIGH (Pmode, base))); -+ emit_insn (gen_add3_insn (t1, t1, pic_offset_table_rtx)); -+ t2 = gen_rtx_LO_SUM (Pmode, t1, base); -+ } -+ else -+ t2 = gen_rtx_LO_SUM (Pmode, pic_offset_table_rtx, base); - t2 = gen_const_mem (Pmode, t2); - emit_insn (gen_rtx_SET (t1, t2)); - base = t1; -@@ -1097,7 +1104,7 @@ print_reloc (FILE *stream, rtx x, HOST_WIDE_INT add, reloc_kind kind) - no special markup. */ - static const char * const relocs[RKIND_MAX][RTYPE_MAX] = { - { "lo", "got", "gotofflo", "tpofflo", "gottpofflo", "tlsgdlo" }, -- { "ha", NULL, "gotoffha", "tpoffha", "gottpoffha", "tlsgdhi" }, -+ { "ha", "gotha", "gotoffha", "tpoffha", "gottpoffha", "tlsgdhi" }, - }; - reloc_type type = RTYPE_DIRECT; - -diff --git a/gcc/config/or1k/or1k.h b/gcc/config/or1k/or1k.h -index feee702d89c..dbaf0d0fe4c 100644 ---- a/gcc/config/or1k/or1k.h -+++ b/gcc/config/or1k/or1k.h -@@ -21,6 +21,8 @@ - #ifndef GCC_OR1K_H - #define GCC_OR1K_H - -+#include "config/or1k/or1k-opts.h" -+ - /* Names to predefine in the preprocessor for this target machine. */ - #define TARGET_CPU_CPP_BUILTINS() \ - do \ -@@ -35,6 +37,11 @@ - } \ - while (0) - -+#define TARGET_CMODEL_SMALL \ -+ (or1k_code_model == CMODEL_SMALL) -+#define TARGET_CMODEL_LARGE \ -+ (or1k_code_model == CMODEL_LARGE) -+ - /* Storage layout. */ - - #define DEFAULT_SIGNED_CHAR 1 -diff --git a/gcc/config/or1k/or1k.opt b/gcc/config/or1k/or1k.opt -index 7bdbd842dd4..116524c3441 100644 ---- a/gcc/config/or1k/or1k.opt -+++ b/gcc/config/or1k/or1k.opt -@@ -23,6 +23,9 @@ - - ; Please try to keep this file in ASCII collating order. - -+HeaderInclude -+config/or1k/or1k-opts.h -+ - mhard-div - Target RejectNegative InverseMask(SOFT_DIV) - Use hardware divide instructions, use -msoft-div for emulation. -@@ -31,6 +34,22 @@ mhard-mul - Target RejectNegative InverseMask(SOFT_MUL). - Use hardware multiply instructions, use -msoft-mul for emulation. - -+mcmodel= -+Target RejectNegative Joined Enum(or1k_cmodel_type) Var(or1k_code_model) Init(CMODEL_SMALL) -+Specify the code model used for accessing memory addresses. Specifying large -+enables generating binaries with large global offset tables. By default the -+value is small. -+ -+Enum -+Name(or1k_cmodel_type) Type(enum or1k_cmodel_type) -+Known code model types (for use with the -mcmodel= option): -+ -+EnumValue -+Enum(or1k_cmodel_type) String(small) Value(CMODEL_SMALL) -+ -+EnumValue -+Enum(or1k_cmodel_type) String(large) Value(CMODEL_LARGE) -+ - mcmov - Target RejectNegative Mask(CMOV) - Allows generation of binaries which use the l.cmov instruction. If your target -diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi -index 7b5f6e03d9f..683c64417af 100644 ---- a/gcc/doc/invoke.texi -+++ b/gcc/doc/invoke.texi -@@ -1032,7 +1032,9 @@ Objective-C and Objective-C++ Dialects}. - @emph{OpenRISC Options} - @gccoptlist{-mboard=@var{name} -mnewlib -mhard-mul -mhard-div @gol - -msoft-mul -msoft-div @gol ---mcmov -mror -msext -msfimm -mshftimm} -+-mcmov -mror -mrori -msext -msfimm -mshftimm @gol -+-mcmodel=@var{code-model}} -+ - - @emph{PDP-11 Options} - @gccoptlist{-mfpu -msoft-float -mac0 -mno-ac0 -m40 -m45 -m10 @gol -@@ -27462,6 +27464,15 @@ MWAITX, SHA, CLZERO, AES, PCL_MUL, CX16, MOVBE, MMX, SSE, SSE2, SSE3, SSE4A, - SSSE3, SSE4.1, SSE4.2, ABM, XSAVEC, XSAVES, CLFLUSHOPT, POPCNT, and 64-bit - instruction set extensions.) - -+@item -mcmodel=small -+@opindex mcmodel=small -+Generate OpenRISC code for the small model: The GOT is limited to 64k. This is -+the default model. -+ -+@item -mcmodel=large -+@opindex mcmodel=large -+Generate OpenRISC code for the large model: The GOT may grow up to 4G in size. -+ - - @item btver1 - CPUs based on AMD Family 14h cores with x86-64 instruction set support. (This --- -2.31.1 - diff --git a/package/gcc/9.4.0/0005-or1k-Use-cmodel-large-when-building-crtstuff.patch b/package/gcc/9.4.0/0005-or1k-Use-cmodel-large-when-building-crtstuff.patch deleted file mode 100644 index 69d143349a..0000000000 --- a/package/gcc/9.4.0/0005-or1k-Use-cmodel-large-when-building-crtstuff.patch +++ /dev/null @@ -1,60 +0,0 @@ -From d64a757040fe36b0d9dc65d24107c656f66bc8e5 Mon Sep 17 00:00:00 2001 -From: Stafford Horne -Date: Sun, 2 May 2021 06:11:45 +0900 -Subject: [PATCH] or1k: Use cmodel=large when building crtstuff - -When linking gcc runtime objects into large binaries the link may fail -with the below errors. This will happen even if we are building with --mcmodel=large. - - /home/shorne/work/openrisc/output/host/lib/gcc/or1k-buildroot-linux-uclibc/10.3.0/crtbeginS.o: in function `deregister_tm_clones': - crtstuff.c:(.text+0x3c): relocation truncated to fit: R_OR1K_GOT16 against undefined symbol `_ITM_deregisterTMCloneTable' - /home/shorne/work/openrisc/output/host/lib/gcc/or1k-buildroot-linux-uclibc/10.3.0/crtbeginS.o: in function `register_tm_clones': - crtstuff.c:(.text+0xc0): relocation truncated to fit: R_OR1K_GOT16 against undefined symbol `_ITM_registerTMCloneTable' - -This patch builds the gcc crtstuff binaries always with the --mcmodel=large option to ensure they can be linked into large binaries. - -libgcc/ChangeLog: - - PR 99783 - * config.host (or1k-*, tmake_file): Add or1k/t-crtstuff. - * config/or1k/t-crtstuff: New file. - -Signed-off-by: Giulio Benetti ---- - libgcc/config.host | 4 ++-- - libgcc/config/or1k/t-crtstuff | 2 ++ - 2 files changed, 4 insertions(+), 2 deletions(-) - create mode 100644 libgcc/config/or1k/t-crtstuff - -diff --git a/libgcc/config.host b/libgcc/config.host -index bdbf77a3e62..bfb45a90630 100644 ---- a/libgcc/config.host -+++ b/libgcc/config.host -@@ -1061,12 +1061,12 @@ nios2-*-*) - extra_parts="$extra_parts crti.o crtn.o" - ;; - or1k-*-linux*) -- tmake_file="$tmake_file or1k/t-or1k" -+ tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff" - tmake_file="$tmake_file t-softfp-sfdf t-softfp" - md_unwind_header=or1k/linux-unwind.h - ;; - or1k-*-*) -- tmake_file="$tmake_file or1k/t-or1k" -+ tmake_file="$tmake_file or1k/t-or1k or1k/t-crtstuff" - tmake_file="$tmake_file t-softfp-sfdf t-softfp" - ;; - pdp11-*-*) -diff --git a/libgcc/config/or1k/t-crtstuff b/libgcc/config/or1k/t-crtstuff -new file mode 100644 -index 00000000000..dcae7f3498e ---- /dev/null -+++ b/libgcc/config/or1k/t-crtstuff -@@ -0,0 +1,2 @@ -+# Compile crtbeginS.o and crtendS.o with -mcmodel=large -+CRTSTUFF_T_CFLAGS_S += -mcmodel=large --- -2.31.1 - diff --git a/package/gcc/Config.in.host b/package/gcc/Config.in.host index 10061dbc9d..18e4a483df 100644 --- a/package/gcc/Config.in.host +++ b/package/gcc/Config.in.host @@ -21,20 +21,6 @@ config BR2_GCC_VERSION_POWERPC_SPE depends on BR2_powerpc_SPE select BR2_TOOLCHAIN_GCC_AT_LEAST_8 -config BR2_GCC_VERSION_9_X - bool "gcc 9.x" - depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_10 - # powerpc spe support has been deprecated since gcc 8.x. - # https://gcc.gnu.org/ml/gcc/2018-04/msg00102.html - depends on !BR2_powerpc_SPE - # C-SKY sk610 needs abiv1, which is not supported in - # upstream gcc. C-SKY gcc upstream support not tested - # with upstream binutils and glibc. - depends on !BR2_csky - # ARC HS48 rel 31 only supported by gcc arc fork. - depends on !BR2_archs4x_rel31 - select BR2_TOOLCHAIN_GCC_AT_LEAST_9 - config BR2_GCC_VERSION_10_X bool "gcc 10.x" depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_11 @@ -99,7 +85,6 @@ config BR2_GCC_SUPPORTS_DLANG config BR2_GCC_VERSION string default "8.4.0" if BR2_GCC_VERSION_POWERPC_SPE - default "9.4.0" if BR2_GCC_VERSION_9_X default "10.3.0" if BR2_GCC_VERSION_10_X default "11.3.0" if BR2_GCC_VERSION_11_X default "12.1.0" if BR2_GCC_VERSION_12_X diff --git a/package/gcc/gcc.hash b/package/gcc/gcc.hash index dc19c282c2..b1cfb1c9cf 100644 --- a/package/gcc/gcc.hash +++ b/package/gcc/gcc.hash @@ -1,7 +1,5 @@ # From https://gcc.gnu.org/pub/gcc/releases/gcc-8.4.0/sha512.sum sha512 6de904f552a02de33b11ef52312bb664396efd7e1ce3bbe37bfad5ef617f133095b3767b4804bc7fe78df335cb53bc83f1ac055baed40979ce4c2c3e46b70280 gcc-8.4.0.tar.xz -# From https://gcc.gnu.org/pub/gcc/releases/gcc-9.4.0/sha512.sum -sha512 dfd3500bf21784b8351a522d53463cf362ede66b0bc302edf350bb44e94418497a8b4b797b6af8ca9b2eeb746b3b115d9c3698381b989546e9151b4496415624 gcc-9.4.0.tar.xz # From https://gcc.gnu.org/pub/gcc/releases/gcc-10.3.0/sha512.sum sha512 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86 gcc-10.3.0.tar.xz # From https://gcc.gnu.org/pub/gcc/releases/gcc-11.3.0/sha512.sum