Boost C++ Libraries: Ticket #13531: Facing build failure on PowerPC due to boost/spirit/home/x3/support/numeric_utils/sign.hpp https://svn.boost.org/trac10/ticket/13531 <p> Below is the error message from boost/spirit/home/x3/support/numeric_utils/sign.hpp </p> <p> This can be resolved by making the below change in sign.hpp, #if defined(BOOST_MATH_USE_STD_FPCLASSIFY) &amp;&amp; !defined(BOOST_MATH_DISABLE_STD_FPCLASSIFY) </p> <blockquote> <p> return -x; </p> </blockquote> <p> #else </p> <blockquote> <p> return (boost::math::changesign)(x); </p> </blockquote> <p> #endif </p> <p> Kindly help in making this change for future releases. </p> <p> Error Message below, </p> <p> ../../../../../include/boost/spirit/home/x3/support/numeric_utils/sign.hpp: In instantiation of 'T snps_boost_1_63_0::spirit::x3::changesign(T) [with T = long double]': ../../../../../include/boost/spirit/home/x3/support/numeric_utils/extract_real.hpp:93:38: required from here ../../../../../include/boost/spirit/home/x3/support/numeric_utils/sign.hpp:36:32: error: no type named 'bits' in 'traits_type {aka struct snps_boost_1_63_0::math::detail::fp_traits_non_native&lt;long double, snps_boost_1_63_0::math::detail::extended_double_precision&gt;}' </p> <blockquote> <p> typename traits_type::bits a; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ../../../../../include/boost/spirit/home/x3/support/numeric_utils/sign.hpp:37:26: error: 'get_bits' is not a member of 'traits_type {aka snps_boost_1_63_0::math::detail::fp_traits_non_native&lt;long double, snps_boost_1_63_0::math::detail::extended_double_precision&gt;}' </p> <blockquote> <p> traits_type::get_bits(x, a); <del></del><del></del><del></del><del></del><del></del>~<sup><del></del>~ </sup></p> </blockquote> <p> ../../../../../include/boost/spirit/home/x3/support/numeric_utils/sign.hpp:36:32: error: no type named 'bits' in 'traits_type {aka struct snps_boost_1_63_0::math::detail::fp_traits_non_native&lt;long double, snps_boost_1_63_0::math::detail::extended_double_precision&gt;}' </p> <blockquote> <p> typename traits_type::bits a; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> ../../../../../include/boost/spirit/home/x3/support/numeric_utils/sign.hpp:38:7: error: 'sign' is not a member of 'traits_type {aka snps_boost_1_63_0::math::detail::fp_traits_non_native&lt;long double, snps_boost_1_63_0::math::detail::extended_double_precision&gt;}' </p> <blockquote> <p> a <sup>= traits_type::sign; <del></del></sup><del></del><del></del><del></del><del>~ </del></p> </blockquote> <p> ../../../../../include/boost/spirit/home/x3/support/numeric_utils/sign.hpp:39:26: error: 'set_bits' is not a member of 'traits_type {aka snps_boost_1_63_0::math::detail::fp_traits_non_native&lt;long double, snps_boost_1_63_0::math::detail::extended_double_precision&gt;}' </p> <blockquote> <p> traits_type::set_bits(x, a); <del></del><del></del><del></del><del></del><del></del>~<sup><del></del>~ </sup></p> </blockquote> <p> <strong>* exit status 1 </strong>* </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13531 Trac 1.4.3 Rangasamy <rangasamy@…> Fri, 20 Apr 2018 07:14:38 GMT attachment set https://svn.boost.org/trac10/ticket/13531 https://svn.boost.org/trac10/ticket/13531 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">sign.hpp.txt</span> </li> </ul> Ticket Rangasamy <rangasamy@…> Fri, 20 Apr 2018 07:18:13 GMT <link>https://svn.boost.org/trac10/ticket/13531#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13531#comment:1</guid> <description> <p> I have referred the below link to fix it, </p> <p> <a class="ext-link" href="https://gitlab.labs.nic.cz/turris/openwrt-packages/commit/b283b55cfbbda925a8561cbe41ecaa7d34282fff"><span class="icon">​</span>https://gitlab.labs.nic.cz/turris/openwrt-packages/commit/b283b55cfbbda925a8561cbe41ecaa7d34282fff</a> </p> </description> <category>Ticket</category> </item> <item> <author>rangasamy@…</author> <pubDate>Tue, 24 Apr 2018 08:24:17 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/13531#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13531#comment:2</guid> <description> <p> Just an information, this issue exists in Boost 1.67.0 as well which got released this month. </p> </description> <category>Ticket</category> </item> <item> <author>Nikita Kniazev <nok.raven@…></author> <pubDate>Sun, 29 Jul 2018 12:56:30 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/13531#comment:3 https://svn.boost.org/trac10/ticket/13531#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">nok.raven@…</span> added </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/spirit/pull/392"><span class="icon">​</span>https://github.com/boostorg/spirit/pull/392</a> </p> <p> Thanks for bringing up this 3 years old issue. I am sorry about the delay, the fix will be in Boost 1.69 (it is too late for 1.68). </p> Ticket Joel de Guzman Thu, 22 Nov 2018 13:54:25 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/13531#comment:4 https://svn.boost.org/trac10/ticket/13531#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket