[MacPorts] #54996: llvm-5.0 does not build on 10.6 because of missing thread_local support (fix available)

MacPorts noreply at macports.org
Thu Oct 19 06:11:47 UTC 2017


#54996: llvm-5.0 does not build on 10.6 because of missing thread_local support
(fix available)
-----------------------+----------------------------------
  Reporter:  devernay  |      Owner:  MarcusCalhoun-Lopez
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  snowleopard haspatch
      Port:  llvm-5.0  |
-----------------------+----------------------------------

Comment (by kencu):

 Looks good.
 {{{
 $ port -v installed clang-5.0 llvm-5.0
 The following ports are currently installed:
   clang-5.0 @5.0.0_3+analyzer+libstdcxx (active) platform='darwin 10'
 archs='x86_64' date='2017-10-18T21:08:53-0700'
   llvm-5.0 @5.0.0_1 (active) platform='darwin 10' archs='x86_64'
 date='2017-10-18T19:15:58-0700'
 }}}
 and it was successful at building my favourite c++11 test port, `aria2`,
 although admittedly with lots more warnings than I'm used to seeing
 (building against libc++):

 {{{
 In file included from /opt/local/libexec/llvm-5.0/include/c++/v1/set:389:
 /opt/local/libexec/llvm-5.0/include/c++/v1/__tree:1819:22: warning: the
 specified comparator type does not provide a const call operator [-Wuser-
 defined-warnings]
                      __trigger_diagnostics()), "");
                      ^
 /opt/local/libexec/llvm-5.0/include/c++/v1/__tree:876:70: note: in
 instantiation of member function
 'std::__1::__tree<std::__1::shared_ptr<aria2::DHTPeerAnnounceEntry>,
 aria2::DHTPeerAnnounceStorage::InfoHashLess,
 std::__1::allocator<std::__1::shared_ptr<aria2::DHTPeerAnnounceEntry> >
 >::~__tree' requested here
     template <class, class, class> friend class _LIBCPP_TEMPLATE_VIS set;
                                                                      ^
 /opt/local/libexec/llvm-5.0/include/c++/v1/memory:2546:7: note: in
 instantiation of member function
 'std::__1::default_delete<aria2::DHTPeerAnnounceStorage>::operator()'
 requested here
       __ptr_.second()(__tmp);
       ^
 /opt/local/libexec/llvm-5.0/include/c++/v1/memory:2500:19: note: in
 instantiation of member function
 'std::__1::unique_ptr<aria2::DHTPeerAnnounceStorage,
 std::__1::default_delete<aria2::DHTPeerAnnounceStorage> >::reset'
 requested here
   ~unique_ptr() { reset(); }
                   ^
 ./DHTRegistry.h:77:5: note: in instantiation of member function
 'std::__1::unique_ptr<aria2::DHTPeerAnnounceStorage,
 std::__1::default_delete<aria2::DHTPeerAnnounceStorage> >::~unique_ptr'
 requested here
     Data() : initialized(false) {}
     ^
 /opt/local/libexec/llvm-5.0/include/c++/v1/__tree:970:7: note: from
 'diagnose_if' attribute on '__trigger_diagnostics':
       _LIBCPP_DIAGNOSE_WARNING(!__invokable<_Compare const&, _Tp const&,
 _Tp const&>::value,
       ^
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 /opt/local/libexec/llvm-5.0/include/c++/v1/__config:1095:20: note:
 expanded from macro '_LIBCPP_DIAGNOSE_WARNING'
     __attribute__((diagnose_if(__VA_ARGS__, "warning")))
                    ^           ~~~~~~~~~~~
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/54996#comment:16>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list