[cfe-dev] Issue #1 from RTEMS run of clang-analyzer

Ted Kremenek kremenek at apple.com
Wed Sep 29 18:15:34 PDT 2010


On Sep 29, 2010, at 4:02 PM, Joel Sherrill wrote:

>> $ CC=gcc make
>> gcc -DFOO=\"Foo Bar\" -c t.c
>> i686-apple-darwin11-gcc-4.2.1: Bar": No such file or directory
>> <command-line>: warning: missing terminating " character
>> make: *** [t.o] Error 1
>> 
> Try "scan-build make"
> 
> $ scan-build make
> scan-build: 'clang' executable not found in '/usr/lib/clang-analyzer/scan-build/bin'.
> scan-build: Using 'clang' from path: /usr/bin/clang
> /usr/lib/clang-analyzer/scan-build/ccc-analyzer -DFOO=\"Foo Bar\"  -c t.c
> gcc: Bar": No such file or directory
> <command-line>: warning: missing terminating " character
> make: *** [t.o] Error 1
> scan-build: Removing directory '/tmp/scan-build-2010-09-29-1' because it contains no reports.

Hi Joel,

My point was that this error occurs regardless of whether you use scan-build or not.  If I do:

$ CC=gcc make

or

$ scan-build make

I get the same problem.  All ccc-analyzer is doing is literally forwarding the argv arguments to gcc.  It's not doing any manipulation of them.



More information about the cfe-dev mailing list