<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Mar 27, 2014 at 1:31 PM, Dave Johansen <span dir="ltr">&lt;<a href="mailto:davejohansen@gmail.com" target="_blank">davejohansen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I&#39;m trying to build ODB on RHEL 5 32-bit and I get some linker errors. Here are some examples:<br>
odb-option-functions.o: In function `__exchange_and_add&#39;:<br>/opt/rh/devtoolset-1.1/root/usr/lib/gcc/i386-CentOS-linux/4.7.2/../../../../include/c++/4.7.2/ext/atomicity.h:48: undefined reference to `__atomic_fetch_add_4&#39;<br>

odb-profile.o: In function `__exchange_and_add&#39;:<br>/opt/rh/devtoolset-1.1/root/usr/lib/gcc/i386-CentOS-linux/4.7.2/../../../../include/c++/4.7.2/ext/atomicity.h:48: undefined reference to `__atomic_fetch_add_4&#39;<br>

semantics/relational/odb-name.o: In function `__exchange_and_add&#39;:<br>/opt/rh/devtoolset-1.1/root/usr/lib/gcc/i386-CentOS-linux/4.7.2/../../../../include/c++/4.7.2/ext/atomicity.h:48: undefined reference to `__atomic_fetch_add_4&#39;<br>

odb-options.o:/opt/rh/devtoolset-1.1/root/usr/lib/gcc/i386-CentOS-linux/4.7.2/../../../../include/c++/4.7.2/ext/atomicity.h:48: more undefined references to `__atomic_fetch_add_4&#39; follow<br><br></div>It builds fine on RHEL 5 64-bit. Any ideas what the issue might be?<br>

<br></div>Thanks,<br>Dave<br></div>
</blockquote></div><br></div><div class="gmail_extra">I just tried doing the same build with devtoolset 2 on 32-bit and ran into the same problem. Any ideas?<br>Thanks,<br>Dave<br></div></div>