error: thread-local storage is not supported

Renee Otten reneeotten at macports.org
Thu Nov 21 02:38:53 UTC 2019


dear all, 


one of the PRs I just merged (https://github.com/macports/macports-ports/pull/5848 <https://github.com/macports/macports-ports/pull/5848>) fails on OS X 10.8, 10.9, and 10.10 with the error "error: thread-local storage is not supported for the current target” (with AppleClang version 5.1, 6.0, and 7.0, respectively). On 10.7 it works again because /opt/local/bin/clang++-mp-9.0 is used as compiler, I assume because of the "compiler.cxx_standard 2011” statement. 

Looking at other Portfiles there seem to be two approaches to resolve this:
1. if ${os.major} < 11, disable “thread_local” which is doable for the port in question, but it will then also be disabled on 10.7 where is seems to work now
2. blacklists compilers using "compiler.blacklist-append {clang < 700}”

Is there an opinion (or even consensus) about what is the preferred way of doing this? 

Thanks,
Renee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20191120/d4f63183/attachment-0001.html>


More information about the macports-dev mailing list