[cfe-dev] Problem running clang-test when building with existing llvm install

NAKAMURA Takumi geek4civic at gmail.com
Sun Nov 13 17:10:46 PST 2011


2011/11/12 Langmuir, Ben <ben.langmuir at intel.com>:
> Is there a way to successfully run "make clang-test" when building clang with an existing llvm install? I.e. without a full llvm source tree.
>
> I have successfully built clang using the -DCLANG_PATH_TO_LLVM_BUILD option to cmake, and I got most of the tests to pass by:
> 1) changing the variable LLVM_TOOLS_BINARY_DIR in <llvm_install>/share/llvm/cmake/LLVMConfig.cmake to point into the installation rather than the non-existent build directory
> 2) putting FileCheck into the bin directory of the install
>
> However, I still see many failures (the complete list is attached):
>
> cmake -DCLANG_PATH_TO_LLVM_BUILD=../../llvm/install ..
> make -j4
> make -j4 clang-test
> ...
>  Expected Passes    : 3774
>  Expected Failures  : 26
>  Unsupported Tests  : 1
>  Unexpected Failures: 184
>
> All of the tests pass when using a full llvm source tree.

I guess "make clang-test" could not be available yet w/o LLVM build tree.

Please make sure;

1) where is "Lit"? Which version of Lit do you install?
2) Do you find "FileCheck" "count" "not" in your $PATH?

...Takumi




More information about the cfe-dev mailing list