[cfe-dev] Issues Running Scan-build

Alexey Sidorin via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 22 12:12:53 PST 2016


Jonathan,

as I see from your command line, you are still using an old version of 
scan-build. Could you check if this problem is reproducible with the 
newest one?
AFAIR, you can use new scan-build with your clang so it is not necessary 
to build clang from repository.


22.01.2016 01:45, Lockhart, Jonathan (lockhaja) пишет:
>
> Alexey,
>
>
> Thanks for the input, that seems to have resolved the issue. Thanks 
> for noticing that spelling error as well. Now that you mention it, and 
> checking the change logs, I seem to remember that being an issue 
> before, and I link I moved to a different use environment. In any 
> case, I now get a message about the
>
>
> C:\Users\lockhaja\build\tools\clang\tools\scan-build>perl -S 
> scan-build -v -v -o "C:\Users\lockhaja_local\Desktop" 
> --use-analyzer=C:\Users\lockhaja\build\bin\Debug\clang.exe gcc C:\main.c
>
> The syntax of the command is incorrect.
> scan-build: Using 'C:/Users/lockhaja/build/bin/Debug/clang.exe' for 
> static analysis
> scan-build: Emitting reports for this run to 
> 'C:/Users/lockhaja_local/Desktop/2016-01-21-1'.
>
> 'C:/Users/lockhaja/build/tools/clang/tools/scan-build/ccc-analyzer' is 
> not recognized as an internal or external command, operable program or 
> batch file.
>
> scan-build: No bugs found.
>
> I purposefully added a few bugs into the system, so I know scan-build 
> should be locating those. Any thoughts on the "syntax of the command 
> is incorrect" and 
> "'C:/Users/lockhaja/build/tools/clang/tools/scan-build/ccc-analyzer' 
> is not recognized as an internal or external command, operable program 
> or batch file." messages that have appeared? I did check and the 
> ccc-analyzer file appears to be complete and correct.
>
>
> Regards,
> Jon Lockhart
> PhD Candidate - EE Systems
> University of Cincinnati
> lockhaja at mail.uc.edu
>
>
> ------------------------------------------------------------------------
> *From:* Alexey Sidorin <alexey.v.sidorin at ya.ru>
> *Sent:* Thursday, January 21, 2016 5:14 PM
> *To:* Lockhart, Jonathan (lockhaja)
> *Cc:* cfe-dev at lists.llvm.org
> *Subject:* Re: [cfe-dev] Issues Running Scan-build
> Hello Jonathan,
>
> It seems like you are using an old version of scan-build. This issue 
> should be fixed with commit 4415a4b58bd 
> (https://github.com/llvm-mirror/clang/commit/4415a4b58bd561d85a7dff84f62778b675a98a09). 
> I suggest you to update your scan-build to the newest version and 
> check it again.
>
> You can also try the newest Python version of scan-build (which is 
> located in tools/scan-build-py).
>
> And, BTW, '--user-analyzer' option in your cmdline should be corrected 
> to '--use-analyzer'.
>
>
>
> 22.01.2016 00:32, Lockhart, Jonathan (lockhaja) via cfe-dev пишет:
>>
>> Greetings,
>>
>>
>> Been a while since I emailed the list. Oddly enough I have run into 
>> an error with my scan-build installation it seems. I previously had 
>> it up and running for a project I was doing back in 2014, and that 
>> Fall was the last I touched it. I have come back to use it with the 
>> same build, nothing has changed on the machine I am using since 2014, 
>> and I am getting an error upon launching. Please see the first 
>> screenshot. I checked the scan-build perl file and it tells me that 
>> the getpwuid on line 35 is set to "Unknown." Screenshot 2 has the 
>> info from the scan-build file. Screenshot 3 has the command I am 
>> inputting and the perl command it is switching too for the command line.
>>
>>
>> Any assistance would be much appreciated and I do apologize if I am 
>> mailing the wrong list, it has been a while.
>>
>>
>> Regards,
>> Jon Lockhart
>> PhD Candidate - EE Systems
>> University of Cincinnati
>> lockhaja at mail.uc.edu
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160122/f3d9d0a1/attachment.html>


More information about the cfe-dev mailing list