<div dir="ltr">Right. libclang_rt.san is now gone. Fresh compiler-rt build doesn't contain this library, and fresh Clang is not using it.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 1, 2015 at 10:36 AM, Kostya Serebryany <span dir="ltr"><<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Trying building from scratch (remove the build directory, sync all llvm subprojects to the same revision, build again)<div><br></div><div>--kcc </div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 1, 2015 at 7:58 AM, Hongxu Chen <span dir="ltr"><<a href="mailto:leftcopy.chx@gmail.com" target="_blank">leftcopy.chx@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hi everyone,</div><div><br></div><div>    (Sorry if I'm asking at the wrong mail listing, but compiler-rt page tells I'd better write on llvm-dev rather than cfe-dev/cfe-users.)</div><div>   </div><div>    I've just built LLVM/Clang+Compiler-rt (Compiler-rt is put inside llvm/projects folder) and tried the -fsanitize option. But strangely the link failed since it cannot find *libclang_rt.san-x86_64.a*. The error message is as below:</div><div><br></div><div>        /usr/bin/ld: cannot find /home/hongxu/RESEARCH/llvm-git/obj/bin/../lib/clang/3.7.0/lib/linux/libclang_rt.san-x86_64.a: No such file or directory</div><div>        clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)</div><div><br></div><div>    However inside the folder <u>/home/hongxu/RESEARCH/llvm-git/obj/bin/../lib/clang/3.7.0/lib/linux/</u> there are other libraries:</div><div><br></div><div>       > pwd</div><div>       /home/hongxu/RESEARCH/llvm-git/obj/lib/clang/3.7.0/lib/linux/</div><div>       > ll *.a |grep x86 | awk '{print $9}'</div><div>       libclang_rt.asan_cxx-x86_64.a</div><div>       libclang_rt.asan-preinit-x86_64.a</div><div>       libclang_rt.asan-x86_64.a</div><div>       libclang_rt.builtins-x86_64.a</div><div>       libclang_rt.dd-x86_64.a</div><div>       libclang_rt.dfsan-libc-x86_64.a</div><div>       libclang_rt.dfsan-x86_64.a</div><div>       libclang_rt.lsan-x86_64.a</div><div>       libclang_rt.msan-x86_64.a</div><div>       libclang_rt.profile-x86_64.a</div><div>       libclang_rt.tsan-x86_64.a</div><div>       libclang_rt.ubsan_cxx-x86_64.a</div><div>       libclang_rt.ubsan_standalone_cxx-x86_64.a</div><div>       libclang_rt.ubsan_standalone-x86_64.a</div><div>       libclang_rt.ubsan-x86_64.a</div><div><br></div><div>       I found that "libclang_rt.san-x86_64.a" was present at least for Clang-3.6 for ArchLinux(<a href="https://www.archlinux.org/packages/extra/x86_64/clang/files/" target="_blank">https://www.archlinux.org/packages/extra/x86_64/clang/files/</a>). So how can I build to get that library?</div><div><br></div><br clear="all"><div><div><div dir="ltr"><font color="#313131" face="Arial, sans-serif"><span style="font-size:12px">Thanks and Regards,</span></font><div><font color="#313131" face="Arial, sans-serif"><span style="font-size:12px">Hongxu</span></font></div></div></div></div>
</div>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Alexey Samsonov<br><a href="mailto:vonosmas@gmail.com" target="_blank">vonosmas@gmail.com</a></div></div>
</div>