[Boost-bugs] [Boost C++ Libraries] #9423: Sparc build fail due to no Endianness

Subject: [Boost-bugs] [Boost C++ Libraries] #9423: Sparc build fail due to no Endianness
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-22 15:25:17


#9423: Sparc build fail due to no Endianness
----------------------------+------------------------------
 Reporter: jared.szechy@… | Type: Patches
   Status: new | Milestone: To Be Determined
Component: Building Boost | Version: Boost 1.55.0
 Severity: Showstopper | Keywords: sparc
----------------------------+------------------------------
 When building boost 1.55.0 on Sparc the following errors occur throughout
 the compilation.

 {{{
 ./boost/predef/architecture/sparc.h:40:37: error: operator '&&' has no
 right operand
 In file included from ./boost/math/special_functions/sign.hpp:18,
                  from ./boost/lexical_cast.hpp:167,
                  from ./boost/graph/graphml.hpp:16,
                  from libs/graph/src/graphml.cpp:17:
 ./boost/math/special_functions/detail/fp_traits.hpp:472: error: invalid
 application of 'sizeof' to incomplete type
 'boost::STATIC_ASSERTION_FAILURE<false>'
 ./boost/math/special_functions/detail/fp_traits.hpp: In static member
 function 'static void boost::math::detail::fp_traits_non_native<long
 double, boost::math::detail::extended_double_precision>::get_bits(long
 double, boost::uint32_t&)':
 ./boost/math/special_functions/detail/fp_traits.hpp:457: error: 'offset_'
 was not declared in this scope
 ./boost/math/special_functions/detail/fp_traits.hpp: In static member
 function 'static void boost::math::detail::fp_traits_non_native<long
 double, boost::math::detail::extended_double_precision>::set_bits(long
 double&, boost::uint32_t)':
 ./boost/math/special_functions/detail/fp_traits.hpp:462: error: 'offset_'
 was not declared in this scope
 }}}

 It seems that the endian.h files were changed since 1.54, and in that
 transition sparc was forgotten about. I was able to solve the compilation
 issue with the attached patch.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9423>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC