#67781 closed defect (fixed)
postgis3 @3.3.3: error: thread-local storage is unsupported for the current target
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | Veence (Vincent) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | Cc: | nilason (Nicklas Larsson) | |
Port: | postgis3 |
Description
In file included from lwgeom_wagyu.cpp:28: In file included from ./include/mapbox/geometry/wagyu/wagyu.hpp:10: In file included from ./include/mapbox/geometry/wagyu/build_local_minima_list.hpp:6: In file included from ./include/mapbox/geometry/wagyu/local_minimum_util.hpp:4: ./include/mapbox/geometry/wagyu/interrupt.hpp:12:1: error: thread-local storage is unsupported for the current target thread_local bool WAGYU_INTERRUPT_REQUESTED = false; ^
Usually this would be fixed by adding this line to the port:
compiler.thread_local_storage yes
This instructs MacPorts to select a compiler that supports thread-local storage.
Change History (5)
comment:1 Changed 16 months ago by nilason (Nicklas Larsson)
Cc: | nilason added |
---|
comment:2 Changed 16 months ago by nilason (Nicklas Larsson)
comment:3 Changed 16 months ago by nilason (Nicklas Larsson)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:4 Changed 16 months ago by nilason (Nicklas Larsson)
We need to reopen this,
compiler.thread_local_storage yes
didn't do the trick, unfortunately.
From configure log, this is what is executing the C++ code, which fails:
C++ compiler (Wagyu): /usr/bin/clang -std=c++11 -x c++ -pipe -Os -stdlib=libc++ -arch x86_64
comment:5 Changed 16 months ago by nilason (Nicklas Larsson)
Related upstream configure code: https://github.com/postgis/postgis/blob/2355e8e4f6330e267b1c509ce7d0ae7cdf17a5a4/configure.ac#L1565-L1628
Note: See
TracTickets for help on using
tickets.
Addressed with https://github.com/macports/macports-ports/pull/19586