<div dir="ltr">+folks who deal with the bots more often. <div><br></div><div>If you need to run check-asan, here are the instructions that work for me on x86-64 linux</div><div><a href="https://code.google.com/p/address-sanitizer/wiki/HowToBuild?tm=4">https://code.google.com/p/address-sanitizer/wiki/HowToBuild?tm=4</a><br></div><div>Alexey, Evgeniy, Sergey may have more ideas on why this doesn't work for you. </div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 18, 2014 at 6:18 AM, Christophe Lyon <span dir="ltr"><<a href="mailto:christophe.lyon@linaro.org" target="_blank">christophe.lyon@linaro.org</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
[sorry for the possible duplicate, the list server was not working<br>
correctly when I first sent this message]<br>
<br>
I would like to run ASan tests on AArch64, to make sure I don't break<br>
them while doing some cleanup.<br>
<br>
Since it seems that<br>
<a href="http://clang.llvm.org/get_started.html" target="_blank">http://clang.llvm.org/get_started.html</a><br>
is outdated, here is how I built my clang toolchain:<br>
- checkout LLVM, Clang and compiler-rt<br>
- add clang and compiler-rt symlinks into llvm/tools and llvm/projects<br></blockquote><div><br></div><div>this sounds unusual. </div><div>did you try to checkout compiler-rt and clang directly in their places, w/o creating symlinks? </div><div><br></div><div>--kcc </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- call cmake:<br>
  cmake ../llvm_tmp_src -DCMAKE_BUILD_TYPE=Release ../llvm_tmp_src/<br>
- build:<br>
- make -j4<br>
<br>
This seemed to work, after I patched compiler-rt/cmake/config-ix.cmake<br>
and replaced -march=aarch64 with -march=armv8-a.<br>
<br>
At this point, make check-asan does not work:<br>
make: *** No rule to make target `check-asan'.  Stop.<br>
<br>
So I tried the last part of the instructions found here:<br>
<a href="https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerTestSuite" target="_blank">https://code.google.com/p/address-sanitizer/wiki/AddressSanitizerTestSuite</a><br>
<br>
mkdir compiler-rt_obj && cd compiler-rt_obj<br>
cmake -DCMAKE_C_COMPILER=/your/c/compiler \<br>
        -DCMAKE_CXX_COMPILER=/your/cxx/compiler \<br>
        -DLLVM_CONFIG_PATH=../llvm_tmp_obj/bin/llvm-config \<br>
        ../compiler-rt_src<br>
<br>
Using the compiler previously built above as /your/c/compiler.<br>
<br>
This step succeeds too, or seems to.<br>
<br>
But still, make check-asan:<br>
make: *** No rule to make target `check-asan'.  Stop.<br>
<br>
I must be missing something.<br>
<br>
What is the recommended way of running asan tests?<br>
<br>
Thanks<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div></div>