[llvm-dev] How do I run llvm's asan tests?

Aaron Jacobs via llvm-dev llvm-dev at lists.llvm.org
Wed Feb 20 20:07:01 PST 2019


Thanks Kostya and Reid for confirming the usual process. After a tremendous
amount of faffing around, I did manage to make this work on a Google Cloud
Engine instance that I created from scratch, as follows:

    gcloud compute instances create debian --image-project
debian-cloud --image-family debian-9 --machine-type n1-standard-16
--project <redacted> --zone australia-southeast1-a --boot-disk-size
1TB
    gcloud compute ssh debian

    sudo apt-get install gcc g++ git cmake ninja-build
    gcc --version # gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
    g++ --version # ++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
    cmake --version # cmake version 3.7.2
    ninja --version # 1.7.2

    git clone https://github.com/llvm/llvm-project.git
    cd llvm-project
    mkdir build
    cd build
    cmake -G Ninja -DLLVM_ENABLE_PROJECTS='clang;compiler-rt;' ../llvm
    ninja check-asan

    # But that doesn't actually run the test I want, so:
    ninja check-sanitizer

So I guess this was a problem with my local setup (a relatively stock
Google-internal linux image) in the end. Sorry for the noise.

Aaron


More information about the llvm-dev mailing list