[MacPorts] #64852: py310-scipy: use a newer boost?

MacPorts noreply at macports.org
Sat May 7 13:31:07 UTC 2022


#64852: py310-scipy: use a newer boost?
-----------------------+-----------------------
  Reporter:  jowens    |      Owner:  michaelld
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  py-scipy  |
-----------------------+-----------------------

Comment (by Guymer):

 Hi,

 Does this issue manifest like:

 {{{
 :info:build INFO: g++-mp-devel: scipy/_lib/tests/test_boost_build.cpp
 :info:build In file included from
 /opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:341,
 :info:build                  from
 /opt/local/libexec/boost/1.76/include/boost/math/policies/policy.hpp:11,
 :info:build                  from
 /opt/local/libexec/boost/1.76/include/boost/math/policies/error_handling.hpp:21,
 :info:build                  from
 /opt/local/libexec/boost/1.76/include/boost/math/distributions/detail/common_error_handling.hpp:12,
 :info:build                  from
 /opt/local/libexec/boost/1.76/include/boost/math/distributions/arcsine.hpp:34,
 :info:build                  from
 /opt/local/libexec/boost/1.76/include/boost/math/distributions.hpp:15,
 :info:build                  from scipy/_lib/tests/test_boost_build.cpp:4:
 :info:build /opt/local/include/gcc-devel/c++/utility:94:14: error:
 '__and_' was not declared in this scope; did you mean 'std::__and_'?
 :info:build    94 |
 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
 :info:build       |              ^~~~~~
 :info:build       |              std::__and_
 :info:build In file included from /opt/local/include/gcc-
 devel/c++/bits/move.h:57,
 :info:build                  from /opt/local/include/gcc-
 devel/c++/bits/exception_ptr.h:43,
 :info:build                  from /opt/local/include/gcc-
 devel/c++/exception:168,
 :info:build                  from /opt/local/include/gcc-devel/c++/ios:39,
 :info:build                  from /opt/local/include/gcc-
 devel/c++/ostream:38,
 :info:build                  from /opt/local/include/gcc-
 devel/c++/iostream:39,
 :info:build                  from scipy/_lib/tests/test_boost_build.cpp:3:
 :info:build /opt/local/include/gcc-devel/c++/type_traits:154:12: note:
 'std::__and_' declared here
 :info:build   154 |     struct __and_;
 :info:build       |            ^~~~~~
 :info:build /opt/local/include/gcc-devel/c++/utility:94:21: error:
 'is_nothrow_move_constructible' was not declared in this scope; did you
 mean 'std::is_nothrow_move_constructible'?
 :info:build    94 |
 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
 :info:build       |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build       |                     std::is_nothrow_move_constructible
 :info:build /opt/local/include/gcc-devel/c++/type_traits:1102:12: note:
 'std::is_nothrow_move_constructible' declared here
 :info:build  1102 |     struct is_nothrow_move_constructible
 :info:build       |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build /opt/local/include/gcc-devel/c++/utility:94:54: error:
 expected primary-expression before '>' token
 :info:build    94 |
 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
 :info:build       |                                                      ^
 :info:build /opt/local/include/gcc-devel/c++/utility:94:55: error:
 expected primary-expression before ',' token
 :info:build    94 |
 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
 :info:build       |
 ^
 :info:build /opt/local/include/gcc-devel/c++/utility:94:55: error:
 expected ')' before ',' token
 :info:build    94 |
 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
 :info:build       |             ~
 ^
 :info:build       |
 )
 :info:build /opt/local/include/gcc-devel/c++/utility:94:55: error:
 expected ';' before ',' token
 :info:build    94 |
 noexcept(__and_<is_nothrow_move_constructible<_Tp>,
 :info:build       |
 ^
 :info:build       |
 ;
 :info:build
 /opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:342:15:
 error: 'boost::math::tools::meta_programming::std::size_t' has not been
 declared
 :info:build   342 | template<std::size_t... I>
 :info:build       |               ^~~~~~
 :info:build
 /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
 :info:build   343 | using index_sequence = std::index_sequence<I...>;
 :info:build       |                             ^~~~~~~~~~~~~~
 :info:build
 /opt/local/libexec/boost/1.76/include/boost/math/tools/mp.hpp:345:15:
 error: 'boost::math::tools::meta_programming::std::size_t' has not been
 declared
 :info:build   345 | template<std::size_t N>
 :info:build       |               ^~~~~~
 :info:build
 /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
 :info:build   346 | using make_index_sequence =
 std::make_index_sequence<N>;
 :info:build       |                                  ^~~~~~~~~~~~~~~~~~~
 :info:build
 /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
 :info:build   349 | using index_sequence_for =
 std::index_sequence_for<T...>;
 :info:build       |                                 ^~~~~~~~~~~~~~~~~~
 :info:build error: Command
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/compwrap/cxx/opt/local/bin/g++-mp-devel -Wno-
 unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic
 -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/scipy-1.8.0/scipy/_lib/boost
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/numpy/core/include
 -Ibuild/src.macosx-12.0-arm64-3.10/numpy/distutils/include -c
 scipy/_lib/tests/test_boost_build.cpp -o
 build/temp.macosx-12.0-arm64-cpython-310/scipy/_lib/tests/test_boost_build.o
 -MMD -MF
 build/temp.macosx-12.0-arm64-cpython-310/scipy/_lib/tests/test_boost_build.o.d
 -std=c++14" failed with exit status 1
 :info:build INFO:
 :info:build ########### CLIB COMPILER OPTIMIZATION ###########
 :info:build INFO: Platform      :
 :info:build   Architecture: aarch64
 :info:build   Compiler    : gcc
 :info:build CPU baseline  :
 :info:build   Requested   : 'min'
 :info:build   Enabled     : NEON NEON_FP16 NEON_VFPV4 ASIMD
 :info:build   Flags       : none
 :info:build   Extra checks: none
 :info:build CPU dispatch  :
 :info:build   Requested   : 'max -xop -fma4'
 :info:build   Enabled     : ASIMDHP
 :info:build   Generated   : none
 :info:build INFO: CCompilerOpt.cache_flush[817] : write cache to path ->
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/scipy-1.8.0/build/temp.macosx-12.0-arm64-cpython-310/ccompiler_opt_cache_clib.py
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/scipy-1.8.0" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 setup.py --no-user-cfg build -j8
 :info:build Exit code: 1
 :error:build Failed to build py310-scipy: command execution failed
 :debug:build Error code: CHILDSTATUS 14774 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-scipy/py310-scipy/main.log
 for details.
 }}}

 ... when attempting to install py310-scipy? Or is that a Boost issue?

 Thanks,

-- 
Ticket URL: <https://trac.macports.org/ticket/64852#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list