<div dir="ltr">Hi,<div><br></div><div>You should update (rebuild from trunk) the ASan runtime you use (IIRC it's a dylib on Mac). We occasionally bump the version of __asan_init to mark the ABI changes (changes in the interface between compiler instrumentation and runtime library).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 11:26 AM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm trying to build cmake with clang + ASan in order to run cmake's tests under ASan.  Most everything works, but there's one test where I get:<br>
<br>
 Undefined symbols for architecture x86_64:<br>
   "___asan_init_v4", referenced from:<br>
       _asan.module_ctor in libfoo.a(foo.cpp.o)<br>
 ld: symbol(s) not found for architecture x86_64<br>
<br>
This is on OS X 10.8, with clang trunk from a couple of days ago.<br>
<br>
Googling ___asan_init_v4 yields next to nothing.  What might be going wrong here?<br>
<br>
Thanks,<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
Rogue Research                        <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer              Montréal, Québec, Canada<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div>
</div>