<div dir="ltr">On 17 March 2013 22:40, SArora <span dir="ltr"><<a href="mailto:silkyar@umich.edu" target="_blank">silkyar@umich.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
However, this errors out saying<br>
<br>
/home/silky/VecProject/opencv/OpenCVInstall/arm/include/opencv2/core/mat.hpp:117:9:<br>
error: cannot compile this atomic library call yet<br>
CV_XADD(refcount, 1);<br>
^~~~~~~~~~~~~~~~~~~~<br>
/home/silky/VecProject/opencv/OpenCVInstall/arm/include/opencv2/core/operations.hpp:61:38:<br>
note: expanded from macro 'CV_XADD'<br>
#define CV_XADD(addr, delta)<br>
__c11_atomic_fetch_add((_Atomic(int)*)(addr), (delta), __ATOMIC_SEQ_CST)<br></blockquote><div><br></div><div style>This is odd. This atomic is implemented in CGAtomic.cpp, but it's being lowered as a library call because "UseLibcall" is true:</div>
<div style><br></div><div style><div>bool UseLibcall = (Size != Align ||</div><div> getContext().toBits(sizeChars) > MaxInlineWidthInBits);</div><div><br></div><div style>I don't think it should in your case. That looks like a bug, but I'm not an atomic library expert. Can you create a bug in bugzilla (<a href="http://www.llvm.org/bugs/">http://www.llvm.org/bugs/</a>), please?</div>
<div style><br></div><div style>Possibly, you should send an email with this error and the bugzilla ID to the list, just to make sure you get the attention of the right people.</div><div style><br></div><div style>cheers,</div>
<div style>--renato</div></div></div></div></div>