Re: clang static analyzer: use it!

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

 



On Tue, 08.09.09 19:52, Lennart Poettering (mzerqung@xxxxxxxxxxx) wrote:

> 
> On Tue, 08.09.09 10:33, Michel Alexandre Salim (michael.silvanus@xxxxxxxxx) 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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux