[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: clang static analyzer: use it!



On Tue, 08.09.09 19:52, Lennart Poettering (mzerqung 0pointer de) wrote:

> 
> On Tue, 08.09.09 10:33, Michel Alexandre Salim (michael silvanus gmail com) wrote:
> 
> > The latest Rawhide llvm build:
> > 
> > http://koji.fedoraproject.org/koji/buildinfo?buildID=130997
> > 
> > -- which you'd probably have to install manually until it hits the
> > Rawhide mirrors -- have clang's analyzer packaged. Once it lands
> > properly you can have llvm, llvm-clang (the compiler) and
> > llvm-clang-analyzer installed by simply doing
> > 
> >   yum install llvm-clang-analyzer
> 
> Thanks for packaging this. Unfortunately it doesn't really work:
> 
> Whatever I try to use scan-build on I get:
> 
> Can't exec "clang-cc": No such file or directory at
> /usr/lib64/clang-analyzer/libexec/ccc-analyzer line 216.
> readline() on closed filehandle FROM_CHILD at
> /usr/lib64/clang-analyzer/libexec/ccc-analyzer line 222.
> 
> Adding /usr/libexec/ to the $PATH seems to fix this. However, it still
> can't find any standard C includes then.

Hmm, I need to correct myself, this seems to work fine:

CFLAGS=-I/usr/lib/gcc/x86_64-redhat-linux/4.4.1/include/ scan-build ./autogen.sh
CFLAGS=-I/usr/lib/gcc/x86_64-redhat-linux/4.4.1/include/ scan-build make

Thanks again for packaging.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]