[cfe-dev] scan-build: error: Cannot find an executable 'clang' relative to scan-build. Consider using --use-analyzer to pick a version of 'clang' to use for static analysis.

Q Z zhaoqian301 at gmail.com
Tue Mar 3 19:47:24 PST 2015


I'm a beginner of clang-analyzer. I got a problem when I execute command
"scan-build make":
scan-build: error: Cannot find an executable 'clang' relative to
scan-build.  Consider using --use-analyzer to pick a version of 'clang' to
use for static analysis.

PS:I have compiled llvm+clang(with source code llvm 3.3). And I have added
the two
PATH:/home/zq/LLVM/llvm-3.3.src/tools/clang/tools/scan-view/:/home/zq/LLVM/llvm-3.3.src/tools/clang/tools/scan-build/:/home/zq/LLVM/build/Release+Asserts/bin/

Can anybody help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150304/5fd17a07/attachment.html>


More information about the cfe-dev mailing list