Opened 5 months ago
#70282 new defect
folly @2024.06.03.00 fails on Catalina and below with libc++: error: no matching constructor for initialization of 'std::function<LocalRefCount ()>'
Reported by: | barracuda156 | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.9.3 |
Keywords: | catalina, mojave, highsierra, sierra, elcapitan, yosemite, mavericks, mountainlion, lion, snowleopard | Cc: | |
Port: | folly |
Description
In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/Singleton.cpp:17: In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/Singleton.h:134: In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/concurrency/CoreCachedSharedPtr.h:27: In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/synchronization/Hazptr.h:20: In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/synchronization/HazptrDomain.h:29: In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/synchronization/HazptrThrLocal.h:27: In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/SingletonThreadLocal.h:25: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/ThreadLocal.h:64:9: error: no matching constructor for initialization of 'std::function<LocalRefCount ()>' : constructor_(std::forward<F>(constructor)) {} ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:9: note: in instantiation of function template specialization 'folly::ThreadLocal<folly::TLRefCount::LocalRefCount, folly::TLRefCount>::ThreadLocal<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:21), 0>' requested here : localCount_([&]() { return LocalRefCount(*this); }), ^ /opt/local/include/libcxx/v1/functional:2366:5: note: candidate constructor not viable: no known conversion from '(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:21)' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument function(nullptr_t) _NOEXCEPT {} ^ /opt/local/include/libcxx/v1/functional:2367:5: note: candidate constructor not viable: no known conversion from '(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:21)' to 'const function<LocalRefCount ()>' for 1st argument function(const function&); ^ /opt/local/include/libcxx/v1/functional:2368:5: note: candidate constructor not viable: no known conversion from '(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:21)' to 'function<LocalRefCount ()>' for 1st argument function(function&&) _NOEXCEPT; ^ /opt/local/include/libcxx/v1/functional:2370:5: note: candidate template ignored: requirement '__callable<(lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:21) &, true>::value' was not satisfied [with _Fp = (lambda at /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_folly/folly/work/folly-v2024.06.03.00/folly/experimental/TLRefCount.h:30:21)] function(_Fp); ^ /opt/local/include/libcxx/v1/functional:2364:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided function() _NOEXCEPT { } ^ 1 error generated.
Note: See
TracTickets for help on using
tickets.