[MacPorts] #70282: folly @2024.06.03.00 fails on Catalina and below with libc++: error: no matching constructor for initialization of 'std::function<LocalRefCount ()>'

MacPorts noreply at macports.org
Sun Jun 23 11:47:42 UTC 2024


#70282: folly @2024.06.03.00 fails on Catalina and below with libc++: error: no
matching constructor for initialization of 'std::function<LocalRefCount
()>'
-------------------------------------------------+-------------------------
 Reporter:  barracuda156                         |      Owner:  (none)
     Type:  defect                               |     Status:  new
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.9.3
 Keywords:  catalina, mojave, highsierra,        |       Port:  folly
  sierra, elcapitan, yosemite, mavericks,        |
  mountainlion, lion, snowleopard                |
-------------------------------------------------+-------------------------
 {{{
 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.
 }}}

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


More information about the macports-tickets mailing list