[LLVMdev] installing llvm from source, make check-all fails on llvm::transforms and clang:preprocessor

Duncan Sands baldrick at free.fr
Tue Mar 6 02:05:12 PST 2012


Hi Simona, these failures are due to the name of the path to LLVM/clang, see
below.

> /scratch/user/download/release_30/build/Debug/bin/clang -cc1 -internal-isystem
> /scratch/user/download/release_30/build/Debug/bin/../lib/clang/3.0/include
> /scratch/user/download/release_30/llvm/tools/clang/test/Preprocessor/macro_paste_c_block_comment.c
>
>
> -Eonly 2>&1 | not grep scratch

This test checks that the word "scratch" doesn't occur in the clang output.
But because it lives under your "/scratch" directory, the word scratch does
occur, in the path.

> /scratch/user/download/release_30/llvm/test/Transforms/GVN/null-aliases-nothing.ll:18:18:
> note: CHECK-NOT: pattern specified here
> ; CHECK-NOT: load

Here it is checked that the word "load" does not occur.  But because it lives
under "download" which contains "load", the word load is wrongly thought to
occur.

Yes, this is all very silly and shows a weakness in the testing infrastructure.

Ciao, Duncan.



More information about the llvm-dev mailing list