Running ASan tests on AArch64

Evgeniy Stepanov eugenis at google.com
Mon Dec 22 05:12:19 PST 2014


This is probably because aarch64 is not in ASAN_SUPPORTED_ARCH.

On Sat Dec 20 2014 at 9:46:36 AM Christophe Lyon <christophe.lyon at linaro.org>
wrote:

> On 19 December 2014 at 20:46, Kostya Serebryany <kcc at google.com> wrote:
> > +folks who deal with the bots more often.
> >
> > If you need to run check-asan, here are the instructions that work for
> me on
> > x86-64 linux
> > https://code.google.com/p/address-sanitizer/wiki/HowToBuild?tm=4
> > Alexey, Evgeniy, Sergey may have more ideas on why this doesn't work for
> > you.
> >
> Tried that, but same error.
> The build seems OK, but make check-asan won't start.
> The same procedure works on x86_64.
>
> > On Thu, Dec 18, 2014 at 6:18 AM, Christophe Lyon
> > <christophe.lyon at linaro.org> wrote:
> >>
> >> Hi,
> >>
> >> [sorry for the possible duplicate, the list server was not working
> >> correctly when I first sent this message]
> >>
> >> I would like to run ASan tests on AArch64, to make sure I don't break
> >> them while doing some cleanup.
> >>
> >> Since it seems that
> >> http://clang.llvm.org/get_started.html
> >> is outdated, here is how I built my clang toolchain:
> >> - checkout LLVM, Clang and compiler-rt
> >> - add clang and compiler-rt symlinks into llvm/tools and llvm/projects
> >
> >
> > this sounds unusual.
> > did you try to checkout compiler-rt and clang directly in their places,
> w/o
> > creating symlinks?
> >
> > --kcc
> >
> >>
> >> - call cmake:
> >>   cmake ../llvm_tmp_src -DCMAKE_BUILD_TYPE=Release ../llvm_tmp_src/
> >> - build:
> >> - make -j4
> >>
> >> This seemed to work, after I patched compiler-rt/cmake/config-ix.cmake
> >> and replaced -march=aarch64 with -march=armv8-a.
> >>
> >> At this point, make check-asan does not work:
> >> make: *** No rule to make target `check-asan'.  Stop.
> >>
> >> So I tried the last part of the instructions found here:
> >> https://code.google.com/p/address-sanitizer/wiki/
> AddressSanitizerTestSuite
> >>
> >> mkdir compiler-rt_obj && cd compiler-rt_obj
> >> cmake -DCMAKE_C_COMPILER=/your/c/compiler \
> >>         -DCMAKE_CXX_COMPILER=/your/cxx/compiler \
> >>         -DLLVM_CONFIG_PATH=../llvm_tmp_obj/bin/llvm-config \
> >>         ../compiler-rt_src
> >>
> >> Using the compiler previously built above as /your/c/compiler.
> >>
> >> This step succeeds too, or seems to.
> >>
> >> But still, make check-asan:
> >> make: *** No rule to make target `check-asan'.  Stop.
> >>
> >> I must be missing something.
> >>
> >> What is the recommended way of running asan tests?
> >>
> >> Thanks
> >> _______________________________________________
> >> llvm-commits mailing list
> >> llvm-commits at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141222/4b7c26b7/attachment.html>


More information about the llvm-commits mailing list