json icon indicating copy to clipboard operation
json copied to clipboard

boost build issue with json on x86

Open dharanlinux opened this issue 4 months ago • 3 comments

Facing below issue, while build with json module for x86 platform.

Error Log:

gcc.compile.c++ bin.v2/libs/json/build/gcc-7.5.0/release/x86_64/threading-multi/visibility-hidden/src.o
In file included from ./boost/json/detail/charconv/detail/fast_float/fast_float.hpp:11:0,
                 from ./boost/json/detail/charconv/impl/from_chars.ipp:14,
                 from ./boost/json/src.hpp:58,
                 from libs/json/src/src.cpp:10:
./boost/json/detail/charconv/detail/fast_float/float_common.hpp:306:73: error: conflicting declaration 'constexpr const uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa []'
 constexpr uint64_t binary_format_lookup_tables<double, U>::max_mantissa[];
                                                                         ^
In file included from ./boost/json/detail/charconv/detail/fast_float/fast_float.hpp:11:0,
                 from ./boost/json/detail/charconv/impl/from_chars.ipp:14,
                 from ./boost/json/src.hpp:58,
                 from libs/json/src/src.cpp:10:
./boost/json/detail/charconv/detail/fast_float/float_common.hpp:275:34: note: previous declaration as 'constexpr const uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa [24]'
   static constexpr std::uint64_t max_mantissa[] = {
                                  ^~~~~~~~~~~~
In file included from ./boost/json/detail/charconv/detail/fast_float/fast_float.hpp:11:0,
                 from ./boost/json/detail/charconv/impl/from_chars.ipp:14,
                 from ./boost/json/src.hpp:58,
                 from libs/json/src/src.cpp:10:
./boost/json/detail/charconv/detail/fast_float/float_common.hpp:306:73: error: declaration of 'constexpr const uint64_t boost::json::detail::charconv::detail::fast_float::binary_format_lookup_tables<double, U>::max_mantissa [24]' outside of class is not definition [-fpermissive]
 constexpr uint64_t binary_format_lookup_tables<double, U>::max_mantissa[];

dharanlinux avatar Oct 15 '24 13:10 dharanlinux