[MacPorts] #55720: lldb-6.0 won't compile with 10.11.6 default clang compiler

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #55720: lldb-6.0 won't compile with 10.11.6 default clang compiler

MacPorts
#55720: lldb-6.0 won't compile with 10.11.6 default clang compiler
---------------------------------+----------------------
 Reporter:  dkbarto              |      Owner:
     Type:  defect               |     Status:  new
 Priority:  Normal               |  Milestone:
Component:  ports                |    Version:  2.4.2
 Keywords:  clang lldb-6.0 lldb  |       Port:  lldb-6.0
---------------------------------+----------------------
 When this configuration is used the compile eventually throws an error
 about thread local variables not being supported. Which is true, the clang
 compiler than Apple shipped with 10.11 does not support thread local
 variables.
 For this reason that compiler should be black listed from the available
 compilers so a macports provided version of clang should be used. Most
 likely clang 5.0 or clang 6.0 at this time.

--
Ticket URL: <https://trac.macports.org/ticket/55720>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55720: lldb-6.0 won't compile with 10.11.6 default clang compiler

MacPorts
#55720: lldb-6.0 won't compile with 10.11.6 default clang compiler
-----------------------+----------------------
  Reporter:  dkbarto   |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.2
Resolution:            |   Keywords:
      Port:  lldb-6.0  |
-----------------------+----------------------
Changes (by mf2k):

 * owner:   => jeremyhu
 * status:  new => assigned
 * keywords:  clang lldb-6.0 lldb =>


Comment:

 In the future, please Cc the port maintainers ({{{port info --maintainers
 lldb-6.0}}}), if any.

--
Ticket URL: <https://trac.macports.org/ticket/55720#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55720: lldb-6.0 won't compile with 10.11.6 default clang compiler

MacPorts
In reply to this post by MacPorts
#55720: lldb-6.0 won't compile with 10.11.6 default clang compiler
-----------------------+----------------------
  Reporter:  dkbarto   |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.2
Resolution:            |   Keywords:
      Port:  lldb-6.0  |
-----------------------+----------------------

Comment (by ryandesign):

 [https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/73389/steps
 /install-port/logs/stdio Here is a log] from the Yosemite buildbot worker
 showing the same issue:

 {{{
 [ 17%] Building CXX object
 tools/clang/lib/Basic/CMakeFiles/clangBasic.dir/SourceManager.cpp.o
 cd
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/build/tools/clang/lib/Basic
 && /usr/bin/clang++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/build/tools/clang/lib/Basic
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/llvm-6.0.1.src/tools/clang/lib/Basic
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/llvm-6.0.1.src/tools/clang/include
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/build/tools/clang/include
 -I/opt/local/include/libxml2
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/build/include
 -I/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/llvm-6.0.1.src/include
 -pipe -Os -std=c++11 -stdlib=libc++ -fPIC -fvisibility-inlines-hidden
 -Werror=date-time -std=c++11 -Wall -W -Wno-unused-parameter -Wwrite-
 strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
 -Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
 -Wstring-conversion -fno-common -Woverloaded-virtual -Wno-nested-anon-
 types -DNDEBUG -arch x86_64 -mmacosx-version-min=10.10    -fno-exceptions
 -o CMakeFiles/clangBasic.dir/SourceManager.cpp.o -c
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/llvm-6.0.1.src/tools/clang/lib/Basic/SourceManager.cpp
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_llvm-6.0/lldb-6.0/work/llvm-6.0.1.src/tools/lldb/source/Utility/Timer.cpp:39:10:
 error: thread-local storage is not supported for the current target
   static thread_local TimerStack g_stack;
          ^
 }}}

 IIRC Apple Clang didn't add support for thread-local storage until version
 800, so earlier versions should be blacklisted.

--
Ticket URL: <https://trac.macports.org/ticket/55720#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #55720: lldb-6.0: error: thread-local storage is not supported for the current target (was: lldb-6.0 won't compile with 10.11.6 default clang compiler)

MacPorts
In reply to this post by MacPorts
#55720: lldb-6.0: error: thread-local storage is not supported for the current
target
-----------------------+----------------------
  Reporter:  dkbarto   |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.2
Resolution:            |   Keywords:
      Port:  lldb-6.0  |
-----------------------+----------------------

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