From patchwork Sun Aug 1 12:19:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1512037 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::136; helo=smtp3.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=HoR+nltr; dkim-atps=neutral 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 (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Gd0ZM5YbHz9sXk for ; Sun, 1 Aug 2021 22:19:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 61C2D6076C; Sun, 1 Aug 2021 12:19:52 +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 E9KrMRmzKXnR; Sun, 1 Aug 2021 12:19:51 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp3.osuosl.org (Postfix) with ESMTP id B8B9060699; Sun, 1 Aug 2021 12:19:50 +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 013A91BF2EF for ; Sun, 1 Aug 2021 12:19:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id EC235401CF for ; Sun, 1 Aug 2021 12:19:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 LlCJc5HxL6rF for ; Sun, 1 Aug 2021 12:19:47 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by smtp2.osuosl.org (Postfix) with ESMTPS id B2EB440155 for ; Sun, 1 Aug 2021 12:19:47 +0000 (UTC) Received: by mail-wm1-x32f.google.com with SMTP id x17so2490323wmc.5 for ; Sun, 01 Aug 2021 05:19:47 -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=1rEK+pmukhVEO4uGiGh6nvq6ul/SIrUsHr9kHIwXIBo=; b=HoR+nltr5WL4k6OVCxVPUF5W8jWXdaJ9oH8pLiV4lk1qTr23Pk3dTs7pkqRdESmb63 r9EFLLlGdPo5p6NwOqk5qw6yYGnwohVTAMl0+Yx42EGnY9yKjhNFKQAMUVVew2VPF9Yi NjQP50rbERB/ul07jKWcclSeT+J5nP5HyEHcabRU/euZchrOJoefXx7v6EQioIrUc9dF EoiDE91Ewn7hA2lV8hsdB9/TraqwLq5mnko5Ye8OSEXlGPHouoIDRqnD9LNbCTY0gwlL CG4MtawRP89UrTMLDp6dFd2wO/hI+jgHOop56Ap4uu+NIc9epxEfKNpx7SbTBsJ5/vnl dPzw== 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=1rEK+pmukhVEO4uGiGh6nvq6ul/SIrUsHr9kHIwXIBo=; b=GNgiXXHfXFVxrzbDMZ4FpR2tdbo5E0LQvcYiek27iIe3XDdRCx5zOTzJ1gDNclnvcd PP5OVCthcZpb6YKSAfUqS76AKbLruFKsDnw6OIupO5o2CJKUFHZH3F0LdOc1Q14FLcZv wh5AlkSaDcWEs64Nn1qjznibrsqL3+RDgcEzB58eYgd1v2676azEePWA4RKzrVE15FzB qKFNd88cs19i+hZxjPZobZmAUj2n+V0egJyYAVGr1TEqHnZQSm5pB0v7tt+a8cQmdX8C oAx4EEQri4fNyJyawFdu66FeXberdqarMRVwIYFbrjHh7jn42Sei3w8JOZGkplDUnTOW OLuA== X-Gm-Message-State: AOAM533lm4dfYpeW1ivBP3k2QoIbtYPJ+6Q955EJh8alsMPrWL3MaiuV W8LQ0tuhlPw2Te7nB4aN7H7j07WzZ/epNQ== X-Google-Smtp-Source: ABdhPJxk3v9RRbjagbOqL5DLbW1RjfJsGWb/tEONCLT/vxh6YpgQ5N4KXG1br8sLoSmOxJNsfYoWRA== X-Received: by 2002:a7b:c7d1:: with SMTP id z17mr12194269wmk.50.1627820385697; Sun, 01 Aug 2021 05:19:45 -0700 (PDT) Received: from kali.home (pop.92-184-116-62.mobile.abo.orange.fr. [92.184.116.62]) by smtp.gmail.com with ESMTPSA id v12sm7712473wrq.59.2021.08.01.05.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 05:19:45 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 1 Aug 2021 14:19:36 +0200 Message-Id: <20210801121936.3060829-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libfreeimage: 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: =?utf-8?b?UsOpbWkgUsOpcm9sbGU=?= , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix the following build failure with gcc 11: In file included from Source/FreeImage/../OpenEXR/IlmImf/ImfHeader.h:51, from Source/FreeImage/../OpenEXR/IlmImf/ImfOutputFile.h:46, from Source/FreeImage/PluginEXR.cpp:33: Source/OpenEXR/Imath/ImathVec.h:228:41: error: ISO C++17 does not allow dynamic exception specifications 228 | const Vec2 & normalizeExc () throw (IEX_NAMESPACE::MathExc); | ^~~~~ Fixes: - http://autobuild.buildroot.org/results/953cd07402fe2f99f2361a3b4a7b086a88e0d72d Signed-off-by: Fabrice Fontaine --- package/libfreeimage/libfreeimage.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/libfreeimage/libfreeimage.mk b/package/libfreeimage/libfreeimage.mk index 91299084a1..4775f92109 100644 --- a/package/libfreeimage/libfreeimage.mk +++ b/package/libfreeimage/libfreeimage.mk @@ -20,7 +20,8 @@ define LIBFREEIMAGE_EXTRACT_CMDS endef define LIBFREEIMAGE_BUILD_CMDS - $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) \ + CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11" $(MAKE) -C $(@D) endef define LIBFREEIMAGE_INSTALL_STAGING_CMDS