diff options
author | jbeich <jbeich@FreeBSD.org> | 2018-07-15 07:14:45 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2018-07-15 07:14:45 +0800 |
commit | 4f5a3256fafa86246c88a9acd61b1566cf75022d (patch) | |
tree | 6e7b7d7b22fda3aefdfde7fcc754b4f513b0a346 /net-p2p | |
parent | dfcd07861f50e3fa051b24874978a4c5323a6686 (diff) | |
download | freebsd-ports-gnome-4f5a3256fafa86246c88a9acd61b1566cf75022d.tar.gz freebsd-ports-gnome-4f5a3256fafa86246c88a9acd61b1566cf75022d.tar.zst freebsd-ports-gnome-4f5a3256fafa86246c88a9acd61b1566cf75022d.zip |
net-p2p/qtum: unbreak with boost 1.68 on FreeBSD 10.*
After https://github.com/boostorg/multiprecision/commit/3cedeeab3048
building with Clang 3.4.1 fails like the following:
In file included from cpp-ethereum/libethereum/State.cpp:22:
In file included from cpp-ethereum/libethereum/State.h:24:
In file included from /usr/include/c++/v1/array:108:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:607:
/usr/include/c++/v1/tuple:187:73: error: reference to type 'boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>' requires an initializer
_NOEXCEPT_(is_nothrow_default_constructible<_Hp>::value) : value()
^
/usr/include/c++/v1/type_traits:2359:44: note: in instantiation of member function 'std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>::__tuple_leaf' requested here
typename __select_2nd<decltype(_VSTD::move(_Tp(_VSTD::declval<_Args>()...))), true_type>::type
^
/usr/include/c++/v1/type_traits:2360:1: note: while substituting deduced template arguments into function template '__is_constructible_test' [with _Tp = std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>, _Args = <>]
__is_constructible_test(_Tp&&, _Args&& ...);
^
/usr/include/c++/v1/type_traits:2419:14: note: in instantiation of template class 'std::__1::__libcpp_is_constructible<false, std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>>' requested here
: public __libcpp_is_constructible<is_scalar<_Tp>::value || is_reference<_Tp>::value,
^
/usr/include/c++/v1/type_traits:2445:14: note: in instantiation of template class 'std::__1::__is_constructible_void_check<false, std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>>' requested here
: public __is_constructible_void_check<__contains_void<_Tp, _Args...>::value
^
/usr/include/c++/v1/type_traits:2653:14: note: in instantiation of template class 'std::__1::is_constructible<std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>>' requested here
: public is_constructible<_Tp>
^
/usr/local/include/boost/multiprecision/number.hpp:645:119: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
template <class T, class = typename boost::disable_if_c<std::is_constructible<T, self_type const&>::value || !std::is_default_constructible<T>::value, T>::type>
^
/usr/local/include/boost/multiprecision/number.hpp:647:13: note: in instantiation of default argument for 'operator type-parameter-0-0<std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false> >' required here
explicit operator T ()const
^~~~~~~~~~~~~~~~~~
/usr/local/include/boost/multiprecision/number.hpp:647:13: note: while substituting deduced template arguments into function template 'operator type-parameter-0-0' [with T = std::__1::__tuple_leaf<0, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>, $1 = <no value>]
explicit operator T ()const
^
/usr/include/c++/v1/tuple:573:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2, 3, 4>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, dev::FixedHash<32> &&, dev::FixedHash<32> &&, dev::eth::Account::Changedness &&>::__tuple_impl<0, 1, 2, 3, 4, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, dev::FixedHash<32> &&, dev::FixedHash<32> &&, dev::eth::Account::Changedness &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, dev::FixedHash<32>, dev::FixedHash<32>, dev::eth::Account::Changedness>' requested here
: base_(typename __make_tuple_indices<sizeof...(_Up)>::type(),
^
/usr/include/c++/v1/tuple:882:12: note: in instantiation of function template specialization 'std::__1::tuple<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, dev::FixedHash<32> &&, dev::FixedHash<32> &&, dev::eth::Account::Changedness &&>::tuple<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, dev::FixedHash<32>, dev::FixedHash<32>, dev::eth::Account::Changedness, false>' requested here
return tuple<_Tp&&...>(_VSTD::forward<_Tp>(__t)...);
^
cpp-ethereum/libethereum/State.cpp:186:8: note: in instantiation of function template specialization 'std::__1::forward_as_tuple<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, dev::FixedHash<32>, dev::FixedHash<32>, dev::eth::Account::Changedness>' requested here
std::forward_as_tuple(state[0].toInt<u256>(), state[1].toInt<u256>(), state[2].toHash<h256>(), state[3].toHash<h256>(), Account::Unchanged)
^
In file included from cpp-ethereum/libethereum/State.cpp:22:
In file included from cpp-ethereum/libethereum/State.h:24:
In file included from /usr/include/c++/v1/array:108:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:607:
/usr/include/c++/v1/tuple:188:9: error: static_assert failed "Attempted to default construct a reference element in a tuple"
{static_assert(!is_reference<_Hp>::value,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/v1/tuple:187:73: error: reference to type 'boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>' requires an initializer
_NOEXCEPT_(is_nothrow_default_constructible<_Hp>::value) : value()
^
/usr/include/c++/v1/type_traits:2359:44: note: in instantiation of member function 'std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>::__tuple_leaf' requested here
typename __select_2nd<decltype(_VSTD::move(_Tp(_VSTD::declval<_Args>()...))), true_type>::type
^
/usr/include/c++/v1/type_traits:2360:1: note: while substituting deduced template arguments into function template '__is_constructible_test' [with _Tp = std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>, _Args = <>]
__is_constructible_test(_Tp&&, _Args&& ...);
^
/usr/include/c++/v1/type_traits:2419:14: note: in instantiation of template class 'std::__1::__libcpp_is_constructible<false, std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>>' requested here
: public __libcpp_is_constructible<is_scalar<_Tp>::value || is_reference<_Tp>::value,
^
/usr/include/c++/v1/type_traits:2445:14: note: in instantiation of template class 'std::__1::__is_constructible_void_check<false, std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>>' requested here
: public __is_constructible_void_check<__contains_void<_Tp, _Args...>::value
^
/usr/include/c++/v1/type_traits:2653:14: note: in instantiation of template class 'std::__1::is_constructible<std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>>' requested here
: public is_constructible<_Tp>
^
/usr/local/include/boost/multiprecision/number.hpp:645:119: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
template <class T, class = typename boost::disable_if_c<std::is_constructible<T, self_type const&>::value || !std::is_default_constructible<T>::value, T>::type>
^
/usr/local/include/boost/multiprecision/number.hpp:647:13: note: in instantiation of default argument for 'operator type-parameter-0-0<std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false> >' required here
explicit operator T ()const
^~~~~~~~~~~~~~~~~~
/usr/local/include/boost/multiprecision/number.hpp:647:13: note: while substituting deduced template arguments into function template 'operator type-parameter-0-0' [with T = std::__1::__tuple_leaf<1, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, false>, $1 = <no value>]
explicit operator T ()const
^
/usr/include/c++/v1/tuple:573:15: note: in instantiation of function template specialization 'std::__1::__tuple_impl<std::__1::__tuple_indices<0, 1, 2, 3, 4>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, dev::FixedHash<32> &&, dev::FixedHash<32> &&, dev::eth::Account::Changedness &&>::__tuple_impl<0, 1, 2, 3, 4, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, dev::FixedHash<32> &&, dev::FixedHash<32> &&, dev::eth::Account::Changedness &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, dev::FixedHash<32>, dev::FixedHash<32>, dev::eth::Account::Changedness>' requested here
: base_(typename __make_tuple_indices<sizeof...(_Up)>::type(),
^
/usr/include/c++/v1/tuple:882:12: note: in instantiation of function template specialization 'std::__1::tuple<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0> &&, dev::FixedHash<32> &&, dev::FixedHash<32> &&, dev::eth::Account::Changedness &&>::tuple<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, dev::FixedHash<32>, dev::FixedHash<32>, dev::eth::Account::Changedness, false>' requested here
return tuple<_Tp&&...>(_VSTD::forward<_Tp>(__t)...);
^
cpp-ethereum/libethereum/State.cpp:186:8: note: in instantiation of function template specialization 'std::__1::forward_as_tuple<boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, boost::multiprecision::number<boost::multiprecision::backends::cpp_int_backend<256, 256, 0, 0, void>, 0>, dev::FixedHash<32>, dev::FixedHash<32>, dev::eth::Account::Changedness>' requested here
std::forward_as_tuple(state[0].toInt<u256>(), state[1].toInt<u256>(), state[2].toHash<h256>(), state[3].toHash<h256>(), Account::Unchanged)
^
In file included from cpp-ethereum/libethereum/State.cpp:22:
In file included from cpp-ethereum/libethereum/State.h:24:
In file included from /usr/include/c++/v1/array:108:
In file included from /usr/include/c++/v1/algorithm:628:
In file included from /usr/include/c++/v1/memory:607:
/usr/include/c++/v1/tuple:188:9: error: static_assert failed "Attempted to default construct a reference element in a tuple"
{static_assert(!is_reference<_Hp>::value,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~
PR: 229569
Reported by: antoine (via exp-run)
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/qtum/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net-p2p/qtum/Makefile b/net-p2p/qtum/Makefile index 17a675737e48..12e44dd1664f 100644 --- a/net-p2p/qtum/Makefile +++ b/net-p2p/qtum/Makefile @@ -36,7 +36,7 @@ CONFIGURE_ARGS= --disable-man \ --with-qrencode \ --without-libs -USES= autoreconf bdb:5+ compiler:c++11-lib gmake libtool pkgconfig qt:5 ssl +USES= autoreconf bdb:5+ compiler:c++14-lang gmake libtool pkgconfig qt:5 ssl USE_QT= buildtools core dbus gui linguisttools network testlib widgets USE_GITHUB= yes GH_TUPLE= qtumproject:qtum:${DISTVERSIONPREFIX}${PORTVERSION} \ |