<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><base href="x-msg://138/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">To analyze your project with scan-build, you also need to run configure through scan-build as well.  See:<div><br></div><div><a href="http://clang-analyzer.llvm.org/scan-build.html">http://clang-analyzer.llvm.org/scan-build.html</a></div><div><br><div><div>On Apr 19, 2012, at 10:56 PM, "Plank, Stefan" <<a href="mailto:stefan.plank@siemens-enterprise.com">stefan.plank@siemens-enterprise.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><font face="Arial, sans-serif" size="2"><div>Hello,</div><div> </div><div>I found<span class="Apple-converted-space"> </span><font face="Arial, sans-serif">the hint t email to this email list<span class="Apple-converted-space"> </span></font>and hopefully you can help me, because I don't know what is going wrong.</div><div>All seems good but no defekts are found and logged.</div><div>Just trying to use clang as valgrind alternative and scan-build for static code analysis together.</div><div> </div><div>This I have done:</div><div> </div><div>I checked out llvm, clang and compiler-rt and updated it with make update.</div><div> </div><div>Then I did</div><div>       <span class="Apple-converted-space"> </span><b>mkdir build</b></div><div>       <span class="Apple-converted-space"> </span><b>(cd build && ../configure --enable-optimized && make -j 10 && make install)</b></div><div> </div><div>After this I copied all files from</div><div>       <span class="Apple-converted-space"> </span><b>/root/svn/llvm/tools/clang/tools/scan-build</b></div><div>to</div><div>       <span class="Apple-converted-space"> </span><b>/usr/local/bin</b></div><div>where the installed files from clang are.</div><div> </div><div>My linux kernel version is 3.3.2.1 und the llvm revision is 154805</div><div> </div><div>I did a maven profile using clang and scan-build</div><div> </div><div>But on screen every time this message is logged:</div><div> </div><div>[exec] -- The C compiler identification is GNU</div><div>[exec] -- The CXX compiler identification is GNU</div><div>[exec] -- Check for working C compiler: /usr/local/bin/clang</div><div>[exec] -- Check for working C compiler: /usr/local/bin/clang -- works</div><div>[exec] -- Detecting C compiler ABI info</div><div>[exec] -- Detecting C compiler ABI info - done</div><div>[exec] -- Check for working CXX compiler: /usr/local/bin/clang++</div><div>[exec] -- Check for working CXX compiler: /usr/local/bin/clang++ -- works</div><div>[exec] -- Detecting CXX compiler ABI info</div><div>[exec] -- Detecting CXX compiler ABI info - done</div><div>[exec] -- Configuring done</div><div>[exec] -- Generating done</div><div>[exec] -- Build files have been written to: /root/svn/ims_main/media_server/src/ims/native/tests/NetSniffer/target/RelWithDebInfo-x86_64</div><div><font color="#FF0000">[exec] scan-build: Emitting reports for this run to '/tmp/scan-build-2012-04-16-1'.</font></div><div>[exec] Scanning dependencies of target sniffer</div><div>[exec] [ 25%] [ 50%] [ 75%] [100%] Building CXX object CMakeFiles/sniffer.dir/src/Filter.cpp.o</div><div>[exec] Building CXX object CMakeFiles/sniffer.dir/src/Sniffer.cpp.o</div><div>[exec] Building CXX object CMakeFiles/sniffer.dir/src/common.cpp.o</div><div>[exec] Building CXX object CMakeFiles/sniffer.dir/src/main.cpp.o</div><div>[exec] Linking CXX executable sniffer</div><div>[exec] [100%] Built target sniffer</div><div><font color="#FF0000">[exec] scan-build: Removing directory '/tmp/scan-build-2012-04-16-1' because it contains no reports.</font></div><div> </div><div>Even if there are placed errors no report is done?</div><div>Can you tell me my mistake and what I have done wrong?</div><div> </div><div><font face="Arial, sans-serif">Mit freundlichen Grüßen / Best regards,<br>Stefan Plank<br>Entwicklungsingenieur<br><br>Siemens Enterprise Communications GmbH & Co. KG<br>Hofmannstr. 51<br>80200 München<br>Tel.: +49 89 7007-32410<br>Fax: +49 89 7007-31675<br><a href="mailto:stefan.plank@siemens-enterprise.com"><font color="#0000FF"><u>mailto:stefan.plank@siemens-enterprise.com</u></font></a><br><br>Communication for the open minded<br><a href="http://www.siemens-enterprise.de/"><font color="#0000FF"><u>www.siemens-enterprise.de</u></font></a><br><br><font size="1">Siemens Enterprise Communications GmbH & Co. KG; Sitz der Gesellschaft: München; Registergericht: München, HRA 88546; WEEE-Reg.Nr. DE 27980375; Persönlich haftende Gesellschafterin: Siemens Enterprise Communications Management GmbH; Geschäftsführer: Alexander Frick, Thomas Heim, Martin Kinne , Vera Meyer; Vorsitzender des Aufsichtsrates: Mark Stone;<br>Sitz der Gesellschaft: München; Registergericht: München, HRB 163415<br><br>Siemens Enterprise Communications GmbH & Co. KG is a Trademark Licensee of Siemens AG<br>Wichtiger Hinweis: Diese E-Mail und etwaige Anlagen enthalten firmenvertrauliche Informationen. Sollten Sie diese E-Mail irrtümlich erhalten haben, benachrichtigen Sie uns bitte durch Antwort-Mail und löschen Sie diese E-Mail nebst Anlagen von Ihrem System. Vielen Dank.<br></font></font></div><div><font face="Arial, sans-serif" size="1"> </font></div><div><font face="Arial, sans-serif" size="1"> </font></div><div><font face="Arial, sans-serif" size="1"><font face="Arial, sans-serif" size="2"></font></font></div><div> </div></font><span><clang_detailed_log></span>_______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a></div></blockquote></div><br></div></body></html>