[cfe-dev] new checker version (210) fails?
Gary Boone
gary.boone at gmail.com
Sun Jun 7 15:36:28 PDT 2009
Hey, that worked. And I checked; it also works for the previous
versions that "broke."
Whoa! The guy debugs by feelings! :)
So summarizing: if you see "could not find clang-cc line", then try
adding '-sdk iphonesimulator2.2' to the xcodebuild command. Eg:
>> xcodebuild clean; ~/development/checker-0.210/scan-build -k -V
>> xcodebuild -sdk iphonesimulator2.2
...or whatever the approprate SDK is. I'm guessing that the allowed
names are given by the .sdk files found in:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
/Developer/SDKs/
Thanks,
Gary
On Jun 7, 2009, at 12:53 PM, Ted Kremenek wrote:
> Hi Gary,
>
> 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?
>
> Ted
>
> On Jun 7, 2009, at 11:54 AM, Gary Boone wrote:
>
>> Thanks, Ted! Here's a fix he sent that worked for me:
>>
>> --- ccc-analyzer (revision 72966)
>> +++ ccc-analyzer (working copy)
>> @@ -108,7 +108,7 @@
>> close(TO_PARENT);
>> my $line;
>> while (<FROM_CHILD>) {
>> - next if (!/clang-cc/);
>> + next if (!(/clang-cc/ || /gcc/));
>> $line = $_;
>> }
>>
>> @@ -126,7 +126,7 @@
>> $items[$i] =~ s/\"$//;
>> }
>> my $cmd = shift @items;
>> - die "cannot find 'clang-cc' in 'clang' command\n" if (!($cmd =~ /
>> clang-cc/));
>> + die "cannot find 'clang-cc' in 'clang' command\n" if (!($cmd =~ /
>> clang-cc/ || $cmd =~ /gcc/));
>> return \@items;
>> }
>>
>>
>> Following the patch, I then saw this error, which I hadn't seen
>> with previous versions that worked for me:
>>
>> clang-cc: Unknown command line argument '-arch'. Try: '/Users/
>> Gary/Development/checker-0.210/libexec/clang-cc --help'
>>
>> It was solved (again, thanks Ted) by running with:
>>
>> xcodebuild clean; ~/development/checker-0.210/scan-build -k -V
>> xcodebuild -sdk iphonesimulator2.2
>>
>>
>> --Gary
>>
>>
>> On Jun 7, 2009, at 10:10 AM, Ted Kremenek wrote:
>>
>>> Hi Gary,
>>>
>>> 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.
>>>
>>> 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.
>>>
>>> I'm going to try and take a look a this soon. Thanks for your
>>> patience!
>>>
>>> Ted
>>>
>>> On Jun 7, 2009, at 8:02 AM, Gary Boone wrote:
>>>
>>>> Bump... I just tried 210. Same problem.
>>>>
>>>> Thanks,
>>>> Gary
>>>>
>>>> On May 17, 2009, at 10:47 AM, Gary Boone wrote:
>>>>
>>>>> My process is:
>>>>> - download and uncompress (Mac OSX 10.5.7)
>>>>> - cd to my development directory
>>>>> - xcodebuild clean; ~/development/checker-0.195/scan-build -k -V
>>>>> xcodebuild
>>>>>
>>>>> Version 0.195 compiles and produces a webpage of results.
>>>>>
>>>>> Versions 0.199, 0.204, and 0.208 all fail during compilation with
>>>>> multiple occurrences of this message:
>>>>>
>>>>> could not find clang-cc line
>>>>>
>>>>>
>>>>> Thanks,
>>>>> Gary
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> cfe-dev mailing list
>>>> cfe-dev at cs.uiuc.edu
>>>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090607/ccaada7c/attachment.html>
More information about the cfe-dev
mailing list