#67782 closed defect (fixed)

py-gdal @3.7.1.1: error: thread-local storage is unsupported for the current target

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: petrrr
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: nilason (Nicklas Larsson)
Port: py-gdal

Description

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

extensions/ogr_wrap.cpp:2945:8: error: thread-local storage is unsupported for the current target
static thread_local int bUseExceptionsLocal = -1;
       ^

Usually this would be fixed by adding this line to the port (within the if {${name} ne ${subport}} block):

compiler.thread_local_storage yes

This instructs MacPorts to select a compiler that supports thread-local storage.

Change History (3)

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 81b1bb6df0d7ed6d1f160889e2ce0768866314b0/macports-ports (master):

py-gdal: use compiler supporting thread-local storage

Closes #67782

Note: See TracTickets for help on using tickets.