[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Fedora 24, gcc 6.1.1 - 'memory_order_seq_cst' was not dec

From: Fred Wright
Subject: Re: [gpsd-dev] Fedora 24, gcc 6.1.1 - 'memory_order_seq_cst' was not declared in this scope
Date: Fri, 30 Dec 2016 13:59:30 -0800 (PST)

On Fri, 30 Dec 2016, Robert Norris wrote:

> This is still failing to compile gpsd for me (gcc version 6.2.1 20161215 
> (Debian 6.2.1-7) ) from the latest git head:
> In file included from clock_gettime.c:10:0:
> compiler.h: In function 'void memory_barrier()':
> compiler.h:93:25: error: 'memory_order_seq_cst' was not declared in this scope
>      atomic_thread_fence(memory_order_seq_cst);
> Shoving 'std::' in front of memory_order_seq_cst on line 93 of compiler.h 
> seems to make it work on my system.
> Hopefully someone with access to other systems can check to see if this is 
> the simplest fix for all distributions.

I don't see how it's even legal to do that in a C-only compile, though the
need for it may be the result of some other inappropriate C++ism.

Fred Wright

reply via email to

[Prev in Thread] Current Thread [Next in Thread]