[MacPorts] #68014: py-scipy seems to be broken with GCC: error: '__and_' was not declared in this scope; did you mean 'std::__and_'? etc.

MacPorts noreply at macports.org
Wed Aug 23 01:58:23 UTC 2023


#68014: py-scipy seems to be broken with GCC: error: '__and_' was not declared in
this scope; did you mean 'std::__and_'? etc.
--------------------------+-----------------------
 Reporter:  barracuda156  |      Owner:  michaelld
     Type:  defect        |     Status:  assigned
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.8.1
 Keywords:  powerpc       |       Port:  py-scipy
--------------------------+-----------------------
 {{{
 creating
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/.tmp/tmppoucu2zp/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/.tmp/tmppoucu2zp
 INFO: compile options: '-c'
 extra options: '-std=c++14'
 INFO: gcc-mp-12:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 scipy/py310-scipy/work/.tmp/tmppoucu2zp/main.cpp
 INFO: building 'test_boost_build' library
 INFO: compiling C++ sources
 INFO: C compiler: /opt/local/bin/g++-mp-12 -fno-strict-aliasing -Wsign-
 compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os
 -isysroot/ -I/opt/local/libexec/boost/1.76/include
 -isystem/opt/local/include/LegacySupport -I/opt/local/include

 creating build/temp.macosx-10.6-ppc-3.10
 creating build/temp.macosx-10.6-ppc-3.10/scipy
 creating build/temp.macosx-10.6-ppc-3.10/scipy/_lib
 creating build/temp.macosx-10.6-ppc-3.10/scipy/_lib/tests
 INFO: compile options:
 '-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.10.1/scipy/_lib/boost
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/numpy/core/include
 -Ibuild/src.macosx-10.6-ppc-3.10/numpy/distutils/include -c'
 extra options: '-std=c++14'
 INFO: g++-mp-12: scipy/_lib/tests/test_boost_build.cpp
 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/policies/error_handling.hpp:21,
                  from
 /opt/local/libexec/boost/1.76/include/boost/math/distributions/detail/common_error_handling.hpp:12,
                  from
 /opt/local/libexec/boost/1.76/include/boost/math/distributions/arcsine.hpp:34,
                  from
 /opt/local/libexec/boost/1.76/include/boost/math/distributions.hpp:15,
                  from scipy/_lib/tests/test_boost_build.cpp:4:
 /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/move.h:57,
                  from
 /opt/local/include/gcc12/c++/bits/exception_ptr.h:43,
                  from /opt/local/include/gcc12/c++/exception:168,
                  from /opt/local/include/gcc12/c++/ios:39,
                  from /opt/local/include/gcc12/c++/ostream:38,
                  from /opt/local/include/gcc12/c++/iostream:39,
                  from scipy/_lib/tests/test_boost_build.cpp:3:
 /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/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
   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:15:
 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...>;
       |                                 ^~~~~~~~~~~~~~~~~~
 error: Command "/opt/local/bin/g++-mp-12 -fno-strict-aliasing -Wsign-
 compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -pipe -Os
 -isysroot/ -I/opt/local/libexec/boost/1.76/include
 -isystem/opt/local/include/LegacySupport -I/opt/local/include
 -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.10.1/scipy/_lib/boost
 -I/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/numpy/core/include
 -Ibuild/src.macosx-10.6-ppc-3.10/numpy/distutils/include -c
 scipy/_lib/tests/test_boost_build.cpp -o
 build/temp.macosx-10.6-ppc-3.10/scipy/_lib/tests/test_boost_build.o -MMD
 -MF build/temp.macosx-10.6-ppc-3.10/scipy/_lib/tests/test_boost_build.o.d
 -std=c++14" failed with exit status 1
 INFO:
 ########### CLIB COMPILER OPTIMIZATION ###########
 INFO: Platform      :
   Architecture: unsupported
   Compiler    : gcc

 CPU baseline  :
   Requested   : optimization disabled
   Enabled     : none
   Flags       : none
   Extra checks: none
   Requested   : optimization disabled

 CPU dispatch  :
   Enabled     : none
   Generated   : none
 INFO: CCompilerOpt.cache_flush[863] : 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.10.1/build/temp.macosx-10.6-ppc-3.10/ccompiler_opt_cache_clib.py
 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.10.1" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 setup.py --no-user-cfg config_fc --fcompiler gnu95 --f77exec
 /opt/local/bin/gfortran-mp-12 --f77flags='-m32 -Os -fno-second-underscore'
 --f90exec /opt/local/bin/gfortran-mp-12 --f90flags='-m32 -Os -fno-second-
 underscore' config --cc /opt/local/bin/gcc-mp-12 --include-dirs
 /opt/local/include --library-dirs /opt/local/lib build -j6
 Exit code: 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68014>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list