<div dir="ltr">Sounds like you need to build the ubsan runtime. When you run cmake, make sure compiler-rt is part of LLVM_ENABLE_PROJECTS, as in:<div>cmake -DLLVM_ENABLE_PROJECTS=llvm;clang;compiler-rt;lld;...</div><div><br></div><div>I believe it is not enabled by default.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 3, 2020 at 3:19 AM suyash singh via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> 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"><div dir="ltr">Hello, <div><br></div><div>I built using <a href="https://llvm.org/docs/CMake.html" target="_blank">https://llvm.org/docs/CMake.html</a> in a separate directory as well as the build2 directory.</div><div><div><img src="cid:ii_k8k1buaf0" alt="image.png" width="507" height="254"><br></div></div><div><br></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>