[MacPorts] #69657: onetbb @2021.11.0: error: no viable conversion

MacPorts noreply at macports.org
Wed Apr 3 00:00:57 UTC 2024


#69657: onetbb @2021.11.0: error: no viable conversion
--------------------------------+------------------------
 Reporter:  ryandesign          |      Owner:  mohd-akram
     Type:  defect              |     Status:  assigned
 Priority:  Normal              |  Milestone:
Component:  ports               |    Version:  2.9.1
 Keywords:  yosemite elcapitan  |       Port:  onetbb
--------------------------------+------------------------
 Building onetbb succeeds on macOS 10.12 and later and on OS X 10.9 and
 earlier but not on 10.10 or 10.11:

 [https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/262193/steps
 /install-port/logs/stdio 10.10]:

 {{{
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_onetbb/onetbb/work/oneTBB-2021.11.0/src/tbb/threading_control.cpp:68:20:
 error: no viable conversion from 'unique_ptr<tbb::detail::r1::tcm_adaptor,
 [...]>' to 'unique_ptr<tbb::detail::r1::permit_manager, [...]>'
             return tcm;
                    ^~~
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2487:29:
 note: candidate constructor (the implicit copy constructor) not viable: no
 known conversion from 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to 'const
 std::__1::unique_ptr<tbb::detail::r1::permit_manager,
 tbb::detail::r1::cache_aligned_deleter> &' for 1st argument
 class _LIBCPP_TYPE_VIS_ONLY unique_ptr
                             ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2516:49:
 note: candidate constructor not viable: no known conversion from
 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to 'nullptr_t' for 1st argument
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unique_ptr(nullptr_t)
 _NOEXCEPT
                                                 ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2543:31:
 note: candidate constructor not viable: no known conversion from
 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to
 'std::__1::unique_ptr<tbb::detail::r1::permit_manager,
 tbb::detail::r1::cache_aligned_deleter> &&' for 1st argument
     _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
                               ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2547:9:
 note: candidate constructor [with _Up = tbb::detail::r1::tcm_adaptor, _Ep
 = tbb::detail::r1::cache_aligned_deleter] not viable: no known conversion
 from 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to
 'unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter> &&' for 1st argument
         unique_ptr(unique_ptr<_Up, _Ep>&& __u,
         ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2562:35:
 note: candidate template ignored: could not match 'auto_ptr' against
 'unique_ptr'
         _LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
                                   ^
 1 error generated.
 }}}

 [https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/257127/steps
 /install-port/logs/stdio 10.11]:

 {{{
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_onetbb/onetbb/work/oneTBB-2021.11.0/src/tbb/threading_control.cpp:68:20:
 error: no viable conversion from returned value of type
 'unique_ptr<tbb::detail::r1::tcm_adaptor, [...]>' to function return type
 'unique_ptr<tbb::detail::r1::permit_manager, [...]>'
             return tcm;
                    ^~~
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2553:29:
 note: candidate constructor (the implicit copy constructor) not viable: no
 known conversion from 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to 'const
 std::__1::unique_ptr<tbb::detail::r1::permit_manager,
 tbb::detail::r1::cache_aligned_deleter> &' for 1st argument
 class _LIBCPP_TYPE_VIS_ONLY unique_ptr
                             ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2582:49:
 note: candidate constructor not viable: no known conversion from
 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to 'nullptr_t' for 1st argument
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR unique_ptr(nullptr_t)
 _NOEXCEPT
                                                 ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2609:31:
 note: candidate constructor not viable: no known conversion from
 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to
 'std::__1::unique_ptr<tbb::detail::r1::permit_manager,
 tbb::detail::r1::cache_aligned_deleter> &&' for 1st argument
     _LIBCPP_INLINE_VISIBILITY unique_ptr(unique_ptr&& __u) _NOEXCEPT
                               ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2613:9:
 note: candidate constructor [with _Up = tbb::detail::r1::tcm_adaptor, _Ep
 = tbb::detail::r1::cache_aligned_deleter] not viable: no known conversion
 from 'std::__1::unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter>' to
 'unique_ptr<tbb::detail::r1::tcm_adaptor,
 tbb::detail::r1::cache_aligned_deleter> &&' for 1st argument
         unique_ptr(unique_ptr<_Up, _Ep>&& __u,
         ^
 /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:2628:35:
 note: candidate template ignored: could not match 'auto_ptr' against
 'unique_ptr'
         _LIBCPP_INLINE_VISIBILITY unique_ptr(auto_ptr<_Up>&& __p,
                                   ^
 1 error generated.
 }}}

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


More information about the macports-tickets mailing list