<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi, <br>I’m having trouble getting going with scan-build. I downloaded checker-276 from the link on <a href="http://clang-analyzer.llvm.org">http://clang-analyzer.llvm.org</a> and I can’t get the simplest example to run. The first error is the clang in checker-276 is that it can’t find a system header (stdio.h in my case). I have Xcode 6.0.1 installed and gcc and g++ work fine from the command line:<br><br>jrb$ gcc --version<br>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1<br>Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)<br>Target: x86_64-apple-darwin13.4.0<br>Thread model: posix<br><br>If I use a very simple example:<br>jrb$ cat main.c<br>#include <stdio.h><br>int<br>main(int argc, char** argv)<br>{<br>   printf("hello world\n");<br>   return 0;<br>}<br><br>When I run scan-build I get this:<br><br>jrb$ ~/Downloads/checker-276/scan-build gcc -g main.c<br>scan-build: Using '/Users/jrb/Downloads/checker-276/bin/clang' for static analysis<br>main.c:1:10: fatal error: 'stdio.h' file not found<br>#include <stdio.h><br>        ^<br>1 error generated.<br>main.c:1:10: fatal error: 'stdio.h' file not found<br>#include <stdio.h><br>        ^<br>1 error generated.<br>scan-build: 0 bugs found.<br>scan-build: The analyzer encountered problems on some source files.<br>scan-build: Preprocessed versions of these sources were deposited in '/var/folders/cd/pbxz31kj4bl_x_t1dzxnqxhm0000gn/T/scan-build-2014-12-20-221956-7628-1/failures'.<br>scan-build: Please consider submitting a bug report using these files:<br>scan-build:   <a href="http://clang-analyzer.llvm.org/filing_bugs.html">http://clang-analyzer.llvm.org/filing_bugs.html</a><br><br><br>- James</body></html>