From patchwork Sun Aug 1 22:00:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1512162 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=m4EZEM/O; dkim-atps=neutral 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 (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GdFSV041sz9sT6 for ; Mon, 2 Aug 2021 08:00:41 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id DA651400BD; Sun, 1 Aug 2021 22:00: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 wqw204_xeGuR; Sun, 1 Aug 2021 22:00:38 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 0046F400CF; Sun, 1 Aug 2021 22:00:36 +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 B154C1BF36B for ; Sun, 1 Aug 2021 22:00:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 9FA73838AF for ; Sun, 1 Aug 2021 22:00:35 +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 pBScdZ_Wf-Nj for ; Sun, 1 Aug 2021 22:00:34 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by smtp1.osuosl.org (Postfix) with ESMTPS id A4F5383837 for ; Sun, 1 Aug 2021 22:00:34 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id j2so19068296wrx.9 for ; Sun, 01 Aug 2021 15:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TDlLkvre1xETpQudaEJMV8Y6PZD5q06BJ2vBe7vlcSM=; b=m4EZEM/O5y+ZJsw2s5yXcTSP99gTPEsBLyC9m0Ii0mndXOR9hpPV8LO2RcLXgZVch2 HxE0gA5qlxuGtPm95RWQzTKTQSVJPy3eeeq2zE3H8CCklbvB8Ik5U2FqT0CIyfBZQKi3 n/03Eto5hCZTliDgafLbVFGKcNHHiXmODc4HIbuxA/T89KKqSfhmOZzOf3RFoc1WSIvA a0nLtHiM8g/Fe+PKZ1HLXy3KdUcb4oFNU1myLFdSUm91D34/C5thl13uSAyUB9fqRIT9 3kUeTHrlH4md9Y7SoswlgWgroT/Y1sRwnfkvqa54qv7Gckb25w24ziV3E9xEYETYKkcE KC3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TDlLkvre1xETpQudaEJMV8Y6PZD5q06BJ2vBe7vlcSM=; b=dHIo3iyVsZS0Fw9iGy0XqWXoUs6tBVzFMEvVubGHg4Eo38WGMM84s+m85MDmhmgTfU FnE0PcxzgUdZwwwV2fQlF1m8wZfwTjvmWofJL//bRJjE6Z7i6+AhInTzVzfePouU5YIe H14rgUVNZLRpUF4Mv/f8EmN2tdM5KhhAXOJSqmewW0MtXQc+2Ot1NF9rxeXfv5ijLary FA0gQX38hUwb+hAVOEgcVn+X0bTZfTRjvGvIgrff/0sFz864OrzJYcL4N/auVGHdIW+r 4Fpr6B4OP6Q698wLEVfrZYvJZcCP9wJuD+BWiDYPIebQK5cjX8PURHiY3axMbyYVenXE 15dg== X-Gm-Message-State: AOAM532+ySVde+Dd0zeT0DNJ6XjuXBbFJ4p+WES8JzxIwBkic+iqth9K HPTd6n2iXysecgBJScPMs+eAQIdvyMe3tA== X-Google-Smtp-Source: ABdhPJyIFxW4qHuEEw1SpUpdYSjs2lZC+VJMuU/M4PBDSJ9FA2Z5vYs4LNana8K5TH6JRqHxjUnKDg== X-Received: by 2002:adf:e652:: with SMTP id b18mr14584934wrn.349.1627855232512; Sun, 01 Aug 2021 15:00:32 -0700 (PDT) Received: from kali.home (pop.92-184-106-87.mobile.abo.orange.fr. [92.184.106.87]) by smtp.gmail.com with ESMTPSA id w13sm8981873wrq.91.2021.08.01.15.00.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 15:00:32 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 2 Aug 2021 00:00:24 +0200 Message-Id: <20210801220024.806915-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libjson: fix build with gcc 11 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Simon Dawson , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix the following build failure with gcc 11: In file included from _internal/Source/JSONDefs.h:12, from _internal/Source/JSONDebug.h:4, from _internal/Source/JSONNode.h:4, from _internal/Source/JSONNode.cpp:1: _internal/Source/JSONDefs/GNU_C.h:58:28: error: ISO C++17 does not allow dynamic exception specifications 58 | #define json_throws(x) throw(x) | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/1e66dff705bbb38e7e0f0e5864ce794b4345dcc6 Signed-off-by: Fabrice Fontaine --- package/libjson/libjson.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/libjson/libjson.mk b/package/libjson/libjson.mk index d04ddc40f3..73268c9ccf 100644 --- a/package/libjson/libjson.mk +++ b/package/libjson/libjson.mk @@ -11,7 +11,7 @@ LIBJSON_INSTALL_STAGING = YES LIBJSON_LICENSE = BSD-2-Clause LIBJSON_LICENSE_FILES = License.txt -LIBJSON_CXXFLAGS = $(TARGET_CFLAGS) -DNDEBUG +LIBJSON_CXXFLAGS = $(TARGET_CFLAGS) -DNDEBUG -std=c++11 ifeq ($(BR2_STATIC_LIBS),y) LIBJSON_MAKE_OPTS += SHARED=0