clang-analyze on RTEMS

Joel Sherrill joel.sherrill at OARcorp.com
Mon Sep 20 01:21:01 UTC 2010


  Hi,

I have run clang-analyze on RTEMS.  Running
it on the same subset we run Coverity Scan
on produced no issues.  I don't know if clang
will turn up anything but it is another
tool in the arsenal. So I tried to run it
on everything and got this:

checking for style of include used by gmake... GNU
checking for sparc-rtems4.11-gcc... 
/usr/lib/clang-analyzer/scan-build/ccc-analyzer
checking for sparc-rtems4.11-gcc... (cached) 
/usr/lib/clang-analyzer/scan-build/ccc-analyzer
checking whether the C compiler works... no
configure: error: in 
`/home/joel/rtems-4.11-work/build/gcc-testing/rtems/clang-analyzer/b-clang-sparc-rtems4.11/sparc-rtems4.11/c/sis':
configure: error: C compiler cannot create executables
See `config.log' for more details.
gmake[2]: *** [sis] Error 1
gmake[2]: Leaving directory 
`/home/joel/rtems-4.11-work/build/gcc-testing/rtems/clang-analyzer/b-clang-sparc-rtems4.11/sparc-rtems4.11/c'

It is pretty easy to run .. just configure .. then

scan-build -o output_dir make

Any thoughts on why the autoconf test fails?

--joel



More information about the users mailing list