From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YNtdJfkb1WM0agEAbAwnHQ (envelope-from ) for ; Sat, 28 Jan 2023 13:58:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iMGCJPkb1WOx1wAAG6o9tA (envelope-from ) for ; Sat, 28 Jan 2023 13:58:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 624E53D20A for ; Sat, 28 Jan 2023 13:58:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLkmY-0003az-EG; Sat, 28 Jan 2023 07:58:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLkmR-0003WF-19 for guix-patches@gnu.org; Sat, 28 Jan 2023 07:58:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pLkmQ-0004vC-N0 for guix-patches@gnu.org; Sat, 28 Jan 2023 07:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLkmQ-0004C7-I6 for guix-patches@gnu.org; Sat, 28 Jan 2023 07:58:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61119] [PATCH core-updates 0/1] gnu: p7zip: Fix build with GCC 11. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Jan 2023 12:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61119 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61119@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167491067016096 (code B ref -1); Sat, 28 Jan 2023 12:58:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jan 2023 12:57:50 +0000 Received: from localhost ([127.0.0.1]:39836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLkmD-0004BW-MZ for submit@debbugs.gnu.org; Sat, 28 Jan 2023 07:57:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:35174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLkmB-0004BH-CE for submit@debbugs.gnu.org; Sat, 28 Jan 2023 07:57:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLkmB-0003TH-1r for guix-patches@gnu.org; Sat, 28 Jan 2023 07:57:47 -0500 Received: from mailout.easymail.ca ([64.68.200.34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLkm9-0004pn-1i for guix-patches@gnu.org; Sat, 28 Jan 2023 07:57:46 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 37BF667B2F for ; Sat, 28 Jan 2023 12:57:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eB5sKCguarMj for ; Sat, 28 Jan 2023 12:57:40 +0000 (UTC) Received: from localhost.localdomain (23-233-96-72.cpe.pppoe.ca [23.233.96.72]) (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 mailout.easymail.ca (Postfix) with ESMTPSA id E6F796722C for ; Sat, 28 Jan 2023 12:57:39 +0000 (UTC) From: Simon South Date: Sat, 28 Jan 2023 07:57:37 -0500 Message-Id: X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.68.200.34; envelope-from=simon@simonsouth.net; helo=mailout.easymail.ca X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674910713; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=rvlr5RaG7vJxpVVePl4PdMQwtYK3HBjlC96EdrFLANU=; b=mNWwx9tbbZRUM4IDVD6HgUN9Rb5A2qNY68Fn62t2p0xDYTNgmoY+flja7Zx50JI9JnV9Aa EIv9j9ffGSkzqyzRatyOXpDm0z0Bu3HIj8OH/AmUHxb/sjGUbLpYM3iMJqchsDju8SuUaa kpifT/kn3iHYbGgW/PhJn7UIwzE6RpAnSmKL+FiZw5hSPSpzYaqmhCp8HQZMIgCdZwFleW tSrZ6Km82eQIwnz+WGf3JBbbQCHDkIVWzrgRL+c9FSpFkhMVD46VC3yH92pAfXXPol44NW y6G8b8TviD65AGGR7a1yPNXVqjP+RSQeiFcaLVHKkJOwbrH2n6oHJC/gyjWEcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674910713; a=rsa-sha256; cv=none; b=boaGBMo7Dp5AoNdCk+YtrYi86Ae2Pu9mjQRJ4adawQy/uvM7atJOaHNAzJtjUHvbCcV4ki w6VgduPcQ6hY75HJwDLrrhf6sm19DgpyAnC2XT2KBHPra40vHLr7Jtcx6/v1ab2+y4csx5 cooWZSgKgv2X2daDd/vxLviPWUbUklUYs8RDfRnGaODV+0euUHM0gRQvUDxsjiI1E0ijPL aWEUJhLvk0VH825SQe9IHOJJKdfFjc/vQnYiTThLZG04T5ENu1OyJnPCED9+Iq/9URhh5l UhdmfwZ+oyI+Cvc5xXujK/wGwPxq+VbCYLQyx+dwS5KbjqB72q0Qi3Icl4TDPg== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.87 X-Spam-Score: -1.87 X-Migadu-Queue-Id: 624E53D20A X-TUID: zqVe96nkdyBR On core-updates, p7zip is failing to build with error messages like ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:308:11: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17 308 | numMethods++; | ^~~~~~~~~~ This follows from the move to GCC 11 and its use by default of the GNU dialect of the C++17 standard for interpreting C++ code. (Note p7zip is essentially abandoned and its code is aging.) The patch to follow causes GCC to use the GNU dialect of the C++14 standard instead, as GCC 10 did by default, reducing the error messages to warnings and allowing the build to complete. I've tested this on x86-64 and AArch64 and everything seems fine. -- Simon South simon@simonsouth.net Simon South (1): gnu: p7zip: Fix build with GCC 11. gnu/local.mk | 1 + gnu/packages/compression.scm | 1 + .../patches/p7zip-fix-build-with-gcc-11.patch | 49 +++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 gnu/packages/patches/p7zip-fix-build-with-gcc-11.patch base-commit: 770d379d7b60590bfdcb749287cb6713dee093ce prerequisite-patch-id: 418e6f2f834e0f77d4da64e48bf654d610fbfe80 -- 2.39.1