<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;"><br><div><div>On Nov 19, 2013, at 8:59 , Richard <<a href="mailto:legalize@xmission.com">legalize@xmission.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br>In article <<a href="mailto:20131119113333.GA5152@britannica.bec.de">20131119113333.GA5152@britannica.bec.de</a>>,<br>    Joerg Sonnenberger <<a href="mailto:joerg@britannica.bec.de">joerg@britannica.bec.de</a>> writes:<br><br><blockquote type="cite">On Mon, Nov 18, 2013 at 09:54:17PM -0700, Richard wrote:<br><blockquote type="cite">We use SCons for our build system.  When I run 'scan-build scons<br><args>', my build runs for a long time and reports various warnings<br>from the analysis as it runs.<br></blockquote><br>I would recomment starting by replacing scons, but at the very least<br>sure that your construct honors CC etc from environment.<br></blockquote><br>Sorry, but suggesting someone replace their build system is not <br>going to be taken seriously.  This also runs contrary to the entire<br>point of scan-build.<br><br>If my build environment wasn't getting clang for compilation, then I<br>wouldn't be getting clang analysis diangostics in the output of the<br>build as I already stated was happening.<br><br>Clearly it is running as I get these .plist directories with HTML<br>reports in them.  What I don't get is a summary report that combines<br>the .plist directory contents.   Also, from reading the description of<br>scan-build, it implies that all the reports are put in a directory in<br>/tmp, which clearly isn't happening.<br></blockquote><br></div><div>That <i>definitely</i> isn’t how it’s supposed to work, but…does scons clear the environment before it invokes the compiler? scan-build works by setting environment variables that are then picked up by its helper script, ccc-analyzer.</div><div><br></div><div>It looks like this is a known issue: <a href="http://stackoverflow.com/questions/9305356/how-can-i-make-clangs-scan-build-work-with-scons">http://stackoverflow.com/questions/9305356/how-can-i-make-clangs-scan-build-work-with-scons</a>. We should add that to the site.</div><div><br></div><div>Jordan</div><br></body></html>