From patchwork Sun May 16 21:57:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 1479178 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; helo=desiato.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=bD8gMn08; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=hauke-m.de header.i=@hauke-m.de header.a=rsa-sha256 header.s=MBO0001 header.b=Ny94HOQr; dkim-atps=neutral Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fjx4f5lV1z9sVb for ; Mon, 17 May 2021 07:59:30 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=fUD95szc4vt9sdBNzRbXum9phDkhudyxoHMNORZE5Wo=; b=bD8gMn089gjJF4M0B1l7lpHT7l a899UOvRQmMFfKBhJ9Wv6x9WlgUxEoftkBLEskh0OLKpgHxwWQnX9fHoVVXhCjnwPou/U4R+s+NN8 hUc/zo2fWL7w3rQrdfS82EAwgpCYur6ohWgdstlK0usxfl29Unu3dzTHIMNEObLzJ0zu1inT4WDY8 MK1K+zDNpPIUxnxJh/QZIOvShQLfwwXZtX57itkCIx4jPitHGTQAXYxf/MGjbEXdmCjYzoFWt39La u861RC3qAcMQqOM/AHiX4I6jKJUUUG6FXPI1Q4TnCExt0mCZRKR8HKVl29zINgvJUgqg7idBifESH ADZiNzIg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1liOla-00D2hE-3A; Sun, 16 May 2021 21:57:43 +0000 Received: from mout-p-201.mailbox.org ([2001:67c:2050::465:201]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1liOlU-00D2gn-3j for openwrt-devel@lists.openwrt.org; Sun, 16 May 2021 21:57:38 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4Fjx2Q1BWzzQjVK; Sun, 16 May 2021 23:57:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hauke-m.de; s=MBO0001; t=1621202252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mO17t58+zB2m6rkVhcE86wB/go5YThu2HKZb1KnkcKY=; b=Ny94HOQreR7N8uWCQIw9XFFxn9+ZzU+L6D9KwT/7BaghgCxaH88QprHCtJqZIZyrm8rbhD b5RLRlFjIGURnT0k/yavJKbtV5TZ+5dburNie3WinJP9u7B1rmU+N2RDfoDbKYPqZkzyV5 EnlgjoYHFb+FFtMAGvNbHyeBTeHhNjxmTAnw/x0z7yVc9/fEObaqguGsDL6vaq76MPJM8f lm14Iz0ZZRwd1dXlUcAeEkAWoGtSSnMILHDTuz5V9wQUQzoLOjOUiC/NwBYd5OyXLZG1T8 ASGKeD5skPYaZsnIpp5lZDYG2T2qTgMNL67mqJAruwApsmHa6JQ+u51138OI7g== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id srFEeY9yhO26; Sun, 16 May 2021 23:57:31 +0200 (CEST) From: Hauke Mehrtens To: openwrt-devel@lists.openwrt.org Cc: abuse@basmevissen.nl, Hauke Mehrtens Subject: [PATCH 19.07] tools/mklibs: Fix compile with GCC 11 Date: Sun, 16 May 2021 23:57:20 +0200 Message-Id: <20210516215720.3812015-1-hauke@hauke-m.de> MIME-Version: 1.0 X-MBO-SPAM-Probability: * X-Rspamd-Score: 0.92 / 15.00 / 15.00 X-Rspamd-Queue-Id: 269EF1868 X-Rspamd-UID: 8cda08 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210516_225736_325466_80E26C66 X-CRM114-Status: UNSURE ( 7.31 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: GCC 11 defaults to C++17, but mklibs does not compile when using the C++17 standard. This patch switches back to the gnu++98 version like done in master commit 9437012b9ee4 ("tools/mklibs: update to 0 [...] Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2001:67c:2050:0:0:0:465:201 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org GCC 11 defaults to C++17, but mklibs does not compile when using the C++17 standard. This patch switches back to the gnu++98 version like done in master commit 9437012b9ee4 ("tools/mklibs: update to 0.1.44 and convert to Python 3") This fixes the following compile error message: elf.hpp:52:56: error: ISO C++17 does not allow dynamic exception specifications 52 | const section &get_section(unsigned int i) const throw (std::out_of_range) { return *sections.at(i); }; Signed-off-by: Hauke Mehrtens --- tools/mklibs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mklibs/Makefile b/tools/mklibs/Makefile index 507c2fd394..8826840524 100644 --- a/tools/mklibs/Makefile +++ b/tools/mklibs/Makefile @@ -18,6 +18,7 @@ HOST_FIXUP:=autoreconf include $(INCLUDE_DIR)/host-build.mk HOST_CFLAGS += -I$(CURDIR)/include +HOST_CPPFLAGS += -std=gnu++98 define Host/Install $(INSTALL_BIN) \