<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Hey, that worked. And I checked; it also works for the previous versions that "broke." </div><div><br></div><div>Whoa! The guy debugs by feelings! :)</div><div><br></div><div>So summarizing: if you see "<span class="Apple-style-span" style="color: rgb(84, 0, 0); ">could not find clang-cc line", then try adding '<span class="Apple-style-span" style="color: rgb(0, 0, 0); ">-sdk iphonesimulator2.2' to the xcodebuild command. Eg:</span></span></div><div><br></div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div apple-content-edited="true"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>xcodebuild clean; ~/development/checker-0.210/scan-build -k -V xcodebuild -sdk iphonesimulator2.2</div></div></div></div></div></div></div></div></blockquote></div></div></div></blockquote></div><div><br></div><div>...or whatever the approprate SDK is. I'm guessing that the allowed names are given by the .sdk files found in:</div><div><br></div><div>/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs</div><div>/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/</div><div>/Developer/SDKs/</div><div><br></div><div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br class="Apple-interchange-newline">Thanks,</div><div>Gary</div><div><br></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"> </div><br><div><div>On Jun 7, 2009, at 12:53 PM, Ted Kremenek wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Gary,<div><br></div><div>I have a feeling that the '-sdk iphonesimulator2.2' is all that did the trick.  If you remove the changes to ccc-analyzer, does it still work?</div><div><br></div><div>Ted</div><div><br><div><div>On Jun 7, 2009, at 11:54 AM, Gary Boone wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Thanks, Ted! Here's a fix he sent that worked for me:</div><div><div><br><div><font class="Apple-style-span" face="'Courier New'">--- ccc-analyzer</font><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'Courier New'">    </font></span><font class="Apple-style-span" face="'Courier New'">(revision 72966)<br>+++ ccc-analyzer</font><span class="Apple-tab-span" style="white-space: pre; "><font class="Apple-style-span" face="'Courier New'"> </font></span><font class="Apple-style-span" face="'Courier New'">(working copy)<br>@@ -108,7 +108,7 @@<br>  close(TO_PARENT);<br>  my $line;<br>  while (<FROM_CHILD>) {<br>-    next if (!/clang-cc/);<br>+    next if (!(/clang-cc/ || /gcc/));<br>    $line = $_;<br>  }<br><br>@@ -126,7 +126,7 @@<br>    $items[$i] =~ s/\"$//;<br>  }<br>  my $cmd = shift @items;<br>-  die "cannot find 'clang-cc' in 'clang' command\n" if (!($cmd =~ /clang-cc/));<br>+  die "cannot find 'clang-cc' in 'clang' command\n" if (!($cmd =~ /clang-cc/ || $cmd =~ /gcc/));<br>  return \@items;<br>}</font><br><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><div>Following the patch, I then saw this error, which I hadn't seen with previous versions that worked for me:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">      </span>clang-cc: Unknown command line argument '-arch'.  Try: '/Users/Gary/Development/checker-0.210/libexec/clang-cc --help'</div><div><br></div><div>It was solved (again, thanks Ted) by running with:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">    </span>xcodebuild clean; ~/development/checker-0.210/scan-build -k -V xcodebuild -sdk iphonesimulator2.2</div><div><br></div><div><br></div><div>--Gary</div><div><br></div></div></div></div><br><div><div>On Jun 7, 2009, at 10:10 AM, Ted Kremenek wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Gary,<br><br>I've been really busy with some other things over the last few weeks, and 0.210 just contains a few opportunistic bug fixes to the analyzer.  I haven't forgotten about you.<br><br>I suspect what is happening is that a compiler option that ccc-analyzer doesn't recognize is being mishandled.  This periodically has been a problem, and the plan over the next few weeks is to rewrite ccc-analyzer to directly use Clang's internal driver library (which processes compiler options) instead of having a hackish Perl script layered on top of the Clang driver.  The result of this work (which we anticipate won't be too hard) is that a most of these problems will just be defined away.<br><br>I'm going to try and take a look a this soon.  Thanks for your patience!<br><br>Ted<br><br>On Jun 7, 2009, at 8:02 AM, Gary Boone wrote:<br><br><blockquote type="cite">Bump... I just tried 210. Same problem.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite">Gary<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On May 17, 2009, at 10:47 AM, Gary Boone wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><blockquote type="cite">My process is:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">- download and uncompress (Mac OSX 10.5.7)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">- cd to my development directory<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">- xcodebuild clean; ~/development/checker-0.195/scan-build -k -V<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">xcodebuild<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Version 0.195 compiles and produces a webpage of results.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Versions 0.199, 0.204, and 0.208 all fail during compilation with<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">multiple occurrences of this message:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span>could not find clang-cc line<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Gary<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">cfe-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br></blockquote><blockquote type="cite"><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div></div></blockquote></div><br></div></body></html>