Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#9423 closed Patches (fixed)

Sparc build fail due to no Endianness

Reported by: jared.szechy@… Owned by: René Rivera
Milestone: To Be Determined Component: predef USE GITHUB
Version: Boost 1.55.0 Severity: Showstopper
Keywords: sparc Cc:

Description

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.

Attachments (1)

002-sparc_fix.patch (962 bytes ) - added by jared.szechy@… 9 years ago.
1.55.0 sparc build patch

Download all attachments as: .zip

Change History (6)

by jared.szechy@…, 9 years ago

Attachment: 002-sparc_fix.patch added

1.55.0 sparc build patch

comment:1 by anonymous, 9 years ago

Component: Building Boostpredef
Owner: set to René Rivera

comment:2 by anonymous, 9 years ago

This does not appear to have been fixed yet?

comment:3 by René Rivera, 9 years ago

Resolution: fixed
Status: newclosed

comment:4 by jared.szechy@…, 9 years ago

Am I missing something? How as this been fixed?

comment:5 by jared.szechy@…, 9 years ago

My apologies, I didn't realize the source in now on github.

Note: See TracTickets for help on using tickets.