[MacPorts] #62293: clang-9.0 @ 9.0.1_3: Build failure on El Capitan with Xcode 7.3.1
MacPorts
noreply at macports.org
Sun Feb 14 19:20:30 UTC 2021
#62293: clang-9.0 @ 9.0.1_3: Build failure on El Capitan with Xcode 7.3.1
---------------------------+--------------------
Reporter: SerpentChris | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords:
Port: clang-9.0 |
---------------------------+--------------------
Comment (by kencu):
The error in the log is:
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-9.0/clang-9.0/work/llvm-9.0.1.src/tools/clang/tools/extra/clangd/Context.cpp:23:10:
error: thread-local storage is not supported for the current target
:info:build static thread_local auto C = Context::empty();
:info:build ^
:info:build 1 error generated.
:info:build make[2]: ***
[tools/clang/tools/extra/clangd/CMakeFiles/obj.clangDaemon.dir/Context.cpp.o]
Error 1
}}}
To avoid this error on other systems, and yet make bootstrapping as easy
as possible, the build of clang-9.0 currently does this:
{{{
if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 14} {
configure.args-append -DCLANG_ENABLE_CLANGD=OFF
}
}}}
It would appear that on darwin 15 systems with older Xcodes, they may not
be able to build clangd either, and might need to have that blocker
tweaked to:
{{{
if {${subport} eq "clang-${llvm_version}" && ${os.major} <= 15} {
configure.args-append -DCLANG_ENABLE_CLANGD=OFF
}
}}}
This is not a big issue, as nobody on 10.11 will want to use {{{clangd}}}
anyway, I submit (I suspect nobody on MacPorts has probably ever used
{{{clangd}}} for anything, except on the very current systems).
You would say perhaps we should check the xcode version instead, and use
the xcodeversion PortGroup -- but there has been an issue raised in other
ports (cctools, for example) where testing the xcodeversion failed when a
user did not have the full Xcode installed.
I am not at this moment 100% certain if we can or can not use an xcode
version test in a PortFile if there are only the CLTs installed without
Xcode being installed.
clang-8.0 and clang-9.0 already do use this -- holdovers from before the
CLT-only plan -- and it seems to work for now, so I just left it.
--
Ticket URL: <https://trac.macports.org/ticket/62293#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list