[MacPorts] #67353: QuantLib fails to build in Rosetta: error: '__and_' was not declared in this scope; did you mean 'std::__and_'?
MacPorts
noreply at macports.org
Tue May 2 01:29:39 UTC 2023
#67353: QuantLib fails to build in Rosetta: error: '__and_' was not declared in
this scope; did you mean 'std::__and_'?
-------------------------------------------+------------------------
Reporter: barracuda156 | Owner: ryandesign
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: powerpc, snowleopard, rosetta | Port: QuantLib
-------------------------------------------+------------------------
{{{
/bin/sh ../../../../libtool --tag=CXX --mode=compile
/opt/local/bin/g++-mp-12 -DHAVE_CONFIG_H -I../../../.. -I../../../..
-I/opt/local/libexec/boost/1.76/include -I/opt/local/include -isystem
/opt/local/libexec/boost/1.76/include -pipe
-I/opt/local/libexec/boost/1.76/include -Os -D_GLIBCXX_USE_CXX11_ABI=0
-arch ppc -MT squarerootprocessrndcalculator.lo -MD -MP -MF $depbase.Tpo
-c -o squarerootprocessrndcalculator.lo squarerootprocessrndcalculator.cpp
&&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile: /opt/local/bin/g++-mp-12 -DHAVE_CONFIG_H -I../../../..
-I../../../.. -I/opt/local/libexec/boost/1.76/include -I/opt/local/include
-isystem /opt/local/libexec/boost/1.76/include -pipe
-I/opt/local/libexec/boost/1.76/include -Os -D_GLIBCXX_USE_CXX11_ABI=0
-arch ppc -MT squarerootprocessrndcalculator.lo -MD -MP -MF
.deps/squarerootprocessrndcalculator.Tpo -c
squarerootprocessrndcalculator.cpp -fno-common -DPIC -o
.libs/squarerootprocessrndcalculator.o
In file included from
/opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:341,
from
/opt/local/libexec/boost/1.76/include/boost/math/policies/policy.hpp:11,
from
/opt/local/libexec/boost/1.76/include/boost/math/tools/precision.hpp:16,
from
/opt/local/libexec/boost/1.76/include/boost/math/tools/fraction.hpp:13,
from
/opt/local/libexec/boost/1.76/include/boost/math/special_functions/gamma.hpp:19,
from
/opt/local/libexec/boost/1.76/include/boost/math/distributions/non_central_chi_squared.hpp:14,
from squarerootprocessrndcalculator.cpp:24:
/opt/local/include/gcc12/c++/utility:94:14: error: '__and_' was not
declared in this scope; did you mean 'std::__and_'?
94 | noexcept(__and_<is_nothrow_move_constructible<_Tp>,
| ^~~~~~
| std::__and_
In file included from /opt/local/include/gcc12/c++/bits/stl_pair.h:60,
from /opt/local/include/gcc12/c++/bits/stl_algobase.h:64,
from /opt/local/include/gcc12/c++/bits/specfun.h:45,
from /opt/local/include/gcc12/c++/cmath:1935,
from ../../../../ql/mathconstants.hpp:23,
from ../../../../ql/qldefines.hpp:126,
from ../../../../ql/types.hpp:28,
from
../../../../ql/methods/finitedifferences/utilities/riskneutraldensitycalculator.hpp:28,
from
../../../../ql/methods/finitedifferences/utilities/squarerootprocessrndcalculator.hpp:28,
from squarerootprocessrndcalculator.cpp:22:
/opt/local/include/gcc12/c++/type_traits:154:12: note: 'std::__and_'
declared here
154 | struct __and_;
| ^~~~~~
/opt/local/include/gcc12/c++/utility:94:21: error:
'is_nothrow_move_constructible' was not declared in this scope; did you
mean 'std::is_nothrow_move_constructible'?
94 | noexcept(__and_<is_nothrow_move_constructible<_Tp>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| std::is_nothrow_move_constructible
/opt/local/include/gcc12/c++/type_traits:1102:12: note:
'std::is_nothrow_move_constructible' declared here
1102 | struct is_nothrow_move_constructible
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/local/include/gcc12/c++/utility:94:54: error: expected primary-
expression before '>' token
94 | noexcept(__and_<is_nothrow_move_constructible<_Tp>,
| ^
/opt/local/include/gcc12/c++/utility:94:55: error: expected primary-
expression before ',' token
94 | noexcept(__and_<is_nothrow_move_constructible<_Tp>,
| ^
/opt/local/include/gcc12/c++/utility:94:55: error: expected ')' before ','
token
94 | noexcept(__and_<is_nothrow_move_constructible<_Tp>,
| ~ ^
| )
/opt/local/include/gcc12/c++/utility:94:55: error: expected ';' before ','
token
94 | noexcept(__and_<is_nothrow_move_constructible<_Tp>,
| ^
| ;
/opt/local/include/gcc12/c++/utility:103:15: error: 'add_const_t' does not
name a type
103 | constexpr add_const_t<_Tp>&
| ^~~~~~~~~~~
/opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:342:10:
error: 'boost::math::tools::meta_programming::std::size_t' has not been
declared
342 | template<std::size_t... I>
| ^~~
/opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:343:29:
error: 'index_sequence' in namespace
'boost::math::tools::meta_programming::std' does not name a template type
343 | using index_sequence = std::index_sequence<I...>;
| ^~~~~~~~~~~~~~
/opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:345:10:
error: 'boost::math::tools::meta_programming::std::size_t' has not been
declared
345 | template<std::size_t N>
| ^~~
/opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:346:34:
error: 'make_index_sequence' in namespace
'boost::math::tools::meta_programming::std' does not name a template type
346 | using make_index_sequence = std::make_index_sequence<N>;
| ^~~~~~~~~~~~~~~~~~~
/opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:349:33:
error: 'index_sequence_for' in namespace
'boost::math::tools::meta_programming::std' does not name a template type
349 | using index_sequence_for = std::index_sequence_for<T...>;
| ^~~~~~~~~~~~~~~~~~
libtool: compile: /opt/local/bin/g++-mp-12 -DHAVE_CONFIG_H -I../../../..
-I../../../.. -I/opt/local/libexec/boost/1.76/include -I/opt/local/include
-isystem /opt/local/libexec/boost/1.76/include -pipe
-I/opt/local/libexec/boost/1.76/include -Os -D_GLIBCXX_USE_CXX11_ABI=0
-arch ppc -MT hestonrndcalculator.lo -MD -MP -MF
.deps/hestonrndcalculator.Tpo -c hestonrndcalculator.cpp -o
hestonrndcalculator.o >/dev/null 2>&1
make[5]: *** [squarerootprocessrndcalculator.lo] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/67353>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list