Bug#869385: higan: FTBFS on arm64, mips* - error: unknown type name 'thread_local'
Adrian Bunk
bunk at debian.org
Sun Jul 23 11:44:09 UTC 2017
Control: tags -1 patch
On Sat, Jul 22, 2017 at 11:34:45PM +0100, James Cowgill wrote:
>...
> > In file included from ../libco/libco.c:22:0:
> > ../libco/sjlj.c:30:8: error: unknown type name 'thread_local'
> > static thread_local cothread_struct co_primary;
> > ^~~~~~~~~~~~
>
> This appears to be because the code uses C11's "thread_local" storage
> type without including "threads.h" where it's declared.
>
> Note I haven't done a test rebuild yet - I'm just guessing that this is
> the cause.
higan actually has an own header settings.h that defines an own thread_local
(to __thread or empty).
The attached patch fixes the FTBFS by including that header just like
the arch-specific implementations do.
These thread_local #define's in libco/settings.h should also be replaced
with an #include <threads.h>, but that's a separate issue.
> Thanks,
> James
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sjlj-ftbfs.patch
Type: text/x-diff
Size: 344 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170723/7ff7cae3/attachment-0001.patch>
More information about the Pkg-games-devel
mailing list