[MacPorts] #38493: rethinkdb: error: thread-local storage is unsupported for the current target
#38493: rethinkdb: error: thread-local storage is unsupported for the current target --------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: snowleopard | Port: rethinkdb --------------------------+-------------------------------- rethinkdb @1.4.0 fails to build on Snow Leopard with this error: {{{ In file included from src/arch/address.cc:14: ./src/arch/runtime/thread_pool.hpp:94:12: error: thread-local storage is unsupported for the current target static __thread linux_thread_pool_t *thread_pool; ^ }}} Note that in #36172 we had the same error for povray on Snow Leopard, and did not find a solution. -- Ticket URL: <https://trac.macports.org/ticket/38493> MacPorts <http://www.macports.org/> Ports system for OS X
#38493: rethinkdb: error: thread-local storage is unsupported for the current target ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: snowleopard Port: rethinkdb | ---------------------------+-------------------------------- Comment (by egall@…): Even though anatol.pomozov@gmail.com hasn't officially added himself as the maintainer for this port yet, I'd still recommend cc-ing him on this, because he's still acting like the maintainer for it. -- Ticket URL: <https://trac.macports.org/ticket/38493#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#38493: rethinkdb: error: thread-local storage is unsupported for the current target ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: snowleopard Port: rethinkdb | ---------------------------+-------------------------------- Changes (by larryv@…): * cc: anatol.pomozov@… (added) -- Ticket URL: <https://trac.macports.org/ticket/38493#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#38493: rethinkdb: error: thread-local storage is unsupported for the current target ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: snowleopard Port: rethinkdb | ---------------------------+-------------------------------- Comment (by anatol.pomozov@…): The problem is that your compiler does not support Thread-local storage variables for MachO binary format. I had exactly the same question to Clang mailist 2 years ago http://lists.cs.uiuc.edu/pipermail/cfe- dev/2011-March/013668.html It means you cannot use gcc-4.2 - it does not support TLS. Alternatives - use more recent version gcc (4.6 seems work fine) or recent version of clang. 2 years ago clang did not have support for _thread, but I believe it has now. -- Ticket URL: <https://trac.macports.org/ticket/38493#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#38493: rethinkdb: error: thread-local storage is unsupported for the current target ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: snowleopard Port: rethinkdb | ---------------------------+-------------------------------- Comment (by ryandesign@…): The rethinkdb configure script checks for old versions of g++ and prevents their use (see #38490). We are already going to great lengths in the portfile to blacklist those old compilers (r104262, r104264), and in the case of Snow Leopard, where none of the compilers provided by Xcode are new enough, we are already using MacPorts clang 3.2, and it does not work either. I've now attached the complete log. Note that we had the same problem for povray in #36172, despite testing all MacPorts versions of clang. comment:ticket:36172:12 suggested that povray may be searching for TLS support incorrectly, and Jeremy pointed to [http://cgit.freedesktop.org/xorg/xserver/tree/m4/xorg-tls.m4 another project which does it correctly], but I didn't feel it was within my expertise to port that knowledge to povray. Perhaps someone else can take a look and see if that fix can be ported to povray and rethinkdb. -- Ticket URL: <https://trac.macports.org/ticket/38493#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#38493: rethinkdb: error: thread-local storage is unsupported for the current target ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: snowleopard Port: rethinkdb | ---------------------------+-------------------------------- Comment (by ryandesign@…): I was going to wait until we update to 1.4.1, and then if it's still a problem, open a ticket with the developers. -- Ticket URL: <https://trac.macports.org/ticket/38493#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#38493: rethinkdb: error: thread-local storage is unsupported for the current target ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: snowleopard Port: rethinkdb | ---------------------------+-------------------------------- Comment (by anatol.pomozov@…): In this case please pull the version update from #38497 and test it on macosx 10.6 If you already use latest clang, then my next guess is that TLS is not supported on 10.6. -- Ticket URL: <https://trac.macports.org/ticket/38493#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts