[pulseaudio-tickets] [Bug 98603] Thread-local storage not supported on compiler shipped with Xcode

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 7 13:53:42 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98603

--- Comment #1 from Tanu Kaskinen <tanuk at iki.fi> ---
It seems that we already use an alternative TLS mechanism in case __thread
isn't supported. Apparently the TLS support detection doesn't work correctly
with Xcode.

configure.ac uses the AX_TLS macro, which I believe is supposed to do the
detection. The macro is implemented in m4/ax_tls.m4, and it originates from
autoconf-archive. It seems that the upstream version of ax_tls.m4 has changed
since we imported it in PulseAudio, but the changes seem mostly cosmetic. In
any case, it's worth a try to replace m4/ax_tls.m4 with the current upstream
version[1].

The macro looks like it tries to compile a program with the __thread keyword,
and apparently that succeeds when you run configure? That suggests that the
compiler that the configure script uses is different from what Xcode uses. If
that's the case, you need to somehow fix that.

[1]
http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blob_plain;f=m4/ax_tls.m4

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20161107/a80e0c86/attachment.html>


More information about the pulseaudio-bugs mailing list