From patchwork Thu Jan 14 21:17:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 567685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AA5AB140157 for ; Fri, 15 Jan 2016 08:17:49 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b=3LSE6k+4; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9B8B03319A; Thu, 14 Jan 2016 21:17:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JMiyk4i3DuDV; Thu, 14 Jan 2016 21:17:45 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E74F03207A; Thu, 14 Jan 2016 21:17:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CDA6E1BFBF9 for ; Thu, 14 Jan 2016 21:17:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id ED86A8C58B for ; Thu, 14 Jan 2016 21:17:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ciT86-XrFX9h for ; Thu, 14 Jan 2016 21:17:41 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by whitealder.osuosl.org (Postfix) with ESMTPS id 5638186795 for ; Thu, 14 Jan 2016 21:17:41 +0000 (UTC) Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id 334D82082C for ; Thu, 14 Jan 2016 22:17:39 +0100 (CET) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3phJPt422Rz5vN5 for ; Thu, 14 Jan 2016 22:17:38 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.embedded.rocks (Postfix) with ESMTP id 9A9E8EE0C1A; Thu, 14 Jan 2016 22:17:37 +0100 (CET) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1452806243; x=1453411044; bh=SYZ7S3Mk69TG3j4D/96QUisEWQrMCjX1VMuelnadua8=; b=3LSE6k+4wEUS hy+A06/21gUUcm3lEqkQoc4MFeVE0DzHuXM31PNxiZzqHMpIbgEk7MKUVXITNioD sDgWstHsRV7qP8LsETYhNh4Q3kpfPY5d50tc91obKG6MKJ5X9/EAqbxR4cOqTWeM wn6LUrDy7KbCr1csv7QJIyl2mF/yOf5pGM7WbB9+PwCphJ00NFtONsCQSRmye/fQ GrIR1VOdY7Uvep87gQ5enb2wNCFSv21kkrGxFSeb742I0xt1WPOcK1lOK59HvOae RUegSbnqKsIi3H/xrS9UVxNAs6wgt+fpywAIJEnr0dnBScMHgg3P+ZJdRVwOPcxB HSlwKTODwQ== X-Virus-Scanned: Debian amavisd-new at mail.embedded.rocks Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id LXk1VDNYxajS; Thu, 14 Jan 2016 22:17:23 +0100 (CET) Received: from nzxt.fritz.box (x2f74301.dyn.telefonica.de [2.247.67.1]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Thu, 14 Jan 2016 22:17:23 +0100 (CET) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Thu, 14 Jan 2016 22:17:20 +0100 Message-Id: <1452806240-4196-1-git-send-email-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.6.4 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/boost: add patch to fix undeclared isnan issue X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Add patch from upstream [1] to fix build error: ./boost/math/special_functions/fpclassify.hpp:137:75: error: '::isnan' has not been declared Fixes: http://autobuild.buildroot.net/results/6c7/6c72c189cd029fb6c81798f5443fab331358bb90/ http://autobuild.buildroot.net/results/b70/b709fc201c9df8f76163e2a620da32362abe5288/ http://autobuild.buildroot.net/results/99b/99bdbc5622dfd0ac369611ec07dd2a8a8fe41ce8/ http://autobuild.buildroot.net/results/d2b/d2b270787fc20e45c839d5670af55e47723aef2a/ and many more. Backported from: fbd1393858719c7bda7d251f742950c1bc691ea8 [1] https://github.com/boostorg/math/commit/fbd1393858719c7bda7d251f742950c1bc691ea8 Signed-off-by: Jörg Krause --- package/boost/0005-fix-undeclared-isnan.patch | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/boost/0005-fix-undeclared-isnan.patch diff --git a/package/boost/0005-fix-undeclared-isnan.patch b/package/boost/0005-fix-undeclared-isnan.patch new file mode 100644 index 0000000..95d8fed --- /dev/null +++ b/package/boost/0005-fix-undeclared-isnan.patch @@ -0,0 +1,32 @@ +From fbd1393858719c7bda7d251f742950c1bc691ea8 Mon Sep 17 00:00:00 2001 +From: Kohei Takahashi +Date: Wed, 6 Jan 2016 19:39:55 +0900 +Subject: [PATCH] Qualify std:: for isnan in some situation. + +Because isnan is implemented as a macro and libstdc++ undef it within + (at least FreeBSD 10). + +Backported from fbd1393858719c7bda7d251f742950c1bc691ea8 + +[Jörg Krause: adjust pathes to match sourceforge release tarball] +Signed-off-by: Jörg Krause + +--- + boost/math/special_functions/fpclassify.hpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/boost/math/special_functions/fpclassify.hpp b/boost/math/special_functions/fpclassify.hpp +index 58fad13..d83e111 100644 +--- a/boost/math/special_functions/fpclassify.hpp ++++ b/boost/math/special_functions/fpclassify.hpp +@@ -133,6 +133,10 @@ inline bool is_nan_helper(T, const boost::false_type&) + #if defined(BOOST_MATH_HAS_QUADMATH_H) + inline bool is_nan_helper(__float128 f, const boost::true_type&) { return ::isnanq(f); } + inline bool is_nan_helper(__float128 f, const boost::false_type&) { return ::isnanq(f); } ++#elif defined(BOOST_GNU_STDLIB) && BOOST_GNU_STDLIB && \ ++ _GLIBCXX_USE_C99_MATH && !_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC ++inline bool is_nan_helper(__float128 f, const boost::true_type&) { return std::isnan(static_cast(f)); } ++inline bool is_nan_helper(__float128 f, const boost::false_type&) { return std::isnan(static_cast(f)); } + #else + inline bool is_nan_helper(__float128 f, const boost::true_type&) { return ::isnan(static_cast(f)); } + inline bool is_nan_helper(__float128 f, const boost::false_type&) { return ::isnan(static_cast(f)); }