This is probably because aarch64 is not in ASAN_SUPPORTED_ARCH.<br><br><div class="gmail_quote">On Sat Dec 20 2014 at 9:46:36 AM Christophe Lyon <<a href="mailto:christophe.lyon@linaro.org">christophe.lyon@linaro.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 19 December 2014 at 20:46, Kostya Serebryany <<a href="mailto:kcc@google.com" target="_blank">kcc@google.com</a>> wrote:<br>
> +folks who deal with the bots more often.<br>
><br>
> If you need to run check-asan, here are the instructions that work for me on<br>
> x86-64 linux<br>
> <a href="https://code.google.com/p/address-sanitizer/wiki/HowToBuild?tm=4" target="_blank">https://code.google.com/p/<u></u>address-sanitizer/wiki/<u></u>HowToBuild?tm=4</a><br>
> Alexey, Evgeniy, Sergey may have more ideas on why this doesn't work for<br>
> you.<br>
><br>
Tried that, but same error.<br>
The build seems OK, but make check-asan won't start.<br>
The same procedure works on x86_64.<br>
<br>
> On Thu, Dec 18, 2014 at 6:18 AM, Christophe Lyon<br>
> <<a href="mailto:christophe.lyon@linaro.org" target="_blank">christophe.lyon@linaro.org</a>> wrote:<br>
>><br>
>> 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_<u></u>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>
><br>
><br>
> this sounds unusual.<br>
> did you try to checkout compiler-rt and clang directly in their places, w/o<br>
> creating symlinks?<br>
><br>
> --kcc<br>
><br>
>><br>
>> - 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.<u></u>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/<u></u>address-sanitizer/wiki/<u></u>AddressSanitizerTestSuite</a><br>
>><br>
>> mkdir compiler-rt_obj && cd compiler-rt_obj<br>
>> cmake -DCMAKE_C_COMPILER=/your/c/<u></u>compiler \<br>
>>         -DCMAKE_CXX_COMPILER=/your/<u></u>cxx/compiler \<br>
>>         -DLLVM_CONFIG_PATH=../llvm_<u></u>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>
>> ______________________________<u></u>_________________<br>
>> llvm-commits mailing list<br>
>> <a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/llvm-commits</a><br>
</blockquote></div>