Opened 16 months ago

Closed 16 months ago

Last modified 16 months ago

#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

https://build.macports.org/builders/ports-10.9_x86_64-builder/builds/239016/steps/install-port/logs/stdio

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: assignedclosed

In 6b221823bad0ffc9f430a615683d072cc6e9620e/macports-ports (master):

postgis3: use compiler supporting thread-local storage

Closes #67781

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.

https://build.macports.org/builders/ports-10.10_x86_64-builder/builds/233048/steps/install-port/logs/stdio

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
Note: See TracTickets for help on using tickets.