<div dir="ltr"><div>It&#39;s using -std=c++11. I&#39;m not sure if switching to gnu flavour would have made a difference with gcc 4.8 provided in centos 7 and gcc 4.9 from Debian 8 - is it worth trying? Newer gcc versions don&#39;t complain and build this without error while still using -std=c++11.</div><div><br></div><div>I&#39;m leaning towards taking out the dnf/libdnf updates until these distros are retired from the supported distro list.</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 2 Dec 2019 at 16:10, Adrian Bunk &lt;<a href="mailto:bunk@stusta.de">bunk@stusta.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Dec 02, 2019 at 02:55:06PM +0000, Ross Burton wrote:<br>
&gt; FAILED: libdnf/CMakeFiles/libdnf.dir/dnf-context.cpp.o<br>
&gt; /home/pokybuild/yocto-worker/buildtools/build/build/tmp/work/x86_64-linux/libdnf-native/0.38.1-r0/git/libdnf/dnf-context.cpp:2618:8:<br>
&gt; error: ‘atomic_flag’ in namespace ‘std’ does not name a type<br>
&gt;  static std::atomic_flag cfgMainLoaded = ATOMIC_FLAG_INIT;<br>
&gt;         ^<br>
&gt; /home/pokybuild/yocto-worker/buildtools/build/build/tmp/work/x86_64-linux/libdnf-native/0.38.1-r0/git/libdnf/dnf-context.cpp:<br>
&gt; In function ‘libdnf::ConfigMain&amp; libdnf::getGlobalMainConfig()’:<br>
&gt; /home/pokybuild/yocto-worker/buildtools/build/build/tmp/work/x86_64-linux/libdnf-native/0.38.1-r0/git/libdnf/dnf-context.cpp:2622:10:<br>
&gt; error: ‘cfgMainLoaded’ was not declared in this scope<br>
&gt;      if (!cfgMainLoaded.test_and_set()) {<br>
&gt;           ^<br>
&gt; This was on a Centos 7 worker...<br>
<br>
The build should also fail on Ubuntu 16.04.<br>
<br>
Building with -std=gnu++11 should fix it (untested).<br>
<br>
&gt; Ross<br>
<br>
cu<br>
Adrian<br>
</blockquote></div>