Opened 3 years ago

Closed 7 months ago

#55720 closed defect (fixed)

lldb-6.0: error: thread-local storage is not supported for the current target

Reported by: dkbarto Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: Cc:
Port: lldb-6.0

Description

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.

Change History (4)

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Keywords: clang lldb-6.0 lldb removed
Owner: set to jeremyhu
Status: newassigned

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

comment:2 Changed 2 years ago by ryandesign (Ryan Schmidt)

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.

comment:3 Changed 2 years ago by ryandesign (Ryan Schmidt)

Summary: lldb-6.0 won't compile with 10.11.6 default clang compilerlldb-6.0: error: thread-local storage is not supported for the current target

comment:4 Changed 7 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

In 2071c79f088d70040eafdf34546e461473af7072/macports-ports (master):

lldb 5.0 to devel: tweak failing systems

to match results on buildbot from recent revbumps
add known_fail to prevent needless build attempts

note: some of these older systems might build lldb with effort
the missing pieces might be replaced by legacysupport

closes: #57499
closes: #59326
closes: #59327
closes: #55720

Note: See TracTickets for help on using tickets.