Opened 3 years ago
Closed 20 months ago
#64852 closed defect (fixed)
py310-scipy: use a newer boost?
Reported by: | jowens (John Owens) | Owned by: | michaelld (Michael Dickens) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mascguy (Christopher Nielsen), Guymer (Thomas Guymer) | |
Port: | py-scipy |
Description
The boost used by py310-scipy is boost171, which requires python39, and it would be desirable if py310-scipy could be installed without also installing python39.
boost178 can be installed with python310, though it's honestly a little opaque to me how boost gets used in scipy's install.
Change History (8)
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | mascguy added; michaelld removed |
---|---|
Owner: | set to michaellass |
Port: | py-scipy added; py310-scipy removed |
Status: | new → assigned |
Summary: | can py310-scipy use a newer boost? → py310-scipy: use a newer boost? |
comment:2 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from michaellass to michaelld |
---|
Fix autocomplete failure...
comment:3 Changed 3 years ago by michaelld (Michael Dickens)
would make a lot of sense for PyXYZ ports to implicitly do +pythonXYZ
for dependents ... of course boost171
doesn't provide +python310
, though as noted newer boost does. hmmm ...
comment:4 Changed 3 years ago by Guymer (Thomas 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,
comment:5 Changed 3 years ago by Guymer (Thomas Guymer)
Cc: | Guymer added |
---|
comment:6 Changed 21 months ago by Guymer (Thomas Guymer)
Can this ticket be closed now? I just moved from Python 3.10 to Python 3.11 yesterday and "py311-scipy" called in "boost176", which has a "+python311" version, so no extra Python dependencies were brought in - so everything is fine now ... ?
comment:7 Changed 21 months ago by jowens (John Owens)
My install is the same as Thomas Guymer's. I agree with his suggestion.
comment:8 Changed 20 months ago by reneeotten (Renee Otten)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Let's (also) fix boost171 to use python310 if we can.