<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<meta content="text/html; charset=utf-8">
</head>
<body>
<div>Laszlo,</div>
<div><br>
</div>
<div>Excellent, then I shall utilize it from the checkout repository and add it to my path. Clang is finishing building now, so I will see how it works and how it compares to the Perl version. Still having some issues getting that version to launch as well. </div>
<div><br>
</div>
<div>Regards, </div>
<div>Jon Lockhart </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div id="composer_signature">
<div style="font-size:85%; color:#575757">Sent from my Verizon Wireless 4G LTE smartphone</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-------- Original message --------</div>
<div>From: Laszlo Nagy <rizsotto.mailinglist@gmail.com> </div>
<div>Date: 01/28/2016 7:11 PM (GMT-05:00) </div>
<div>To: "Lockhart, Jonathan (lockhaja)" <lockhaja@mail.uc.edu> </div>
<div>Cc: Alexey Sidorin <alexey.v.sidorin@ya.ru>, cfe-dev@lists.llvm.org, cfe-users@lists.llvm.org
</div>
<div>Subject: Re: [cfe-dev] Issues Running Scan-build </div>
<div><br>
</div>
<div>
<div dir="ltr">hey Jon,
<div><br>
</div>
<div>as i mentioned earlier, the `scan-build-py` is not installed by any target. so, it will stay in your source/checkout repository. (and it will be change in the future when the implementation will be mature enough to release.) at this moment it's self contained
 and not depend on anything, so you can copy that subdirectory wherever you like, just put the `bin` dir into your `PATH`.</div>
<div><br>
</div>
<div>regards,</div>
<div>Laszlo</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jan 29, 2016 at 10:43 AM, Lockhart, Jonathan (lockhaja)
<span dir="ltr"><<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div>
<div>Laszlo,</div>
<div><br>
</div>
<div>Thanks you for your response. So I noticed I did have to do a fresh build from scratch. Unfortunately there was an issue with my path so it was not picking up through python installation. That has since been corrected and CMake picked up python this time
 so it is currently building.</div>
<div><br>
</div>
<div>Now you say it will be in "tools/scan-build-py/bin". Will this be in the build folder or the check out repository? In my previous build after updating I saw no usable scan-build file in those repositories in the build folder. </div>
<span class="">
<div><br>
</div>
<div>Regards, </div>
<div>Jon Lockhart </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div style="font-size:85%; color:#575757">Sent from my Verizon Wireless 4G LTE smartphone</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-------- Original message --------</div>
</span><span class="">
<div>From: Laszlo Nagy <<a href="mailto:rizsotto.mailinglist@gmail.com" target="_blank">rizsotto.mailinglist@gmail.com</a>>
</div>
<div>Date: 01/28/2016 6:26 PM (GMT-05:00) </div>
<div>To: "Lockhart, Jonathan (lockhaja)" <<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a>>
</div>
</span>
<div>
<div class="h5">
<div>Cc: Alexey Sidorin <<a href="mailto:alexey.v.sidorin@ya.ru" target="_blank">alexey.v.sidorin@ya.ru</a>>,
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>,
<a href="mailto:cfe-users@lists.llvm.org" target="_blank">cfe-users@lists.llvm.org</a>
</div>
<div>Subject: Re: [cfe-dev] Issues Running Scan-build </div>
<div><br>
</div>
<div>
<div dir="ltr">hey Jon,
<div><br>
</div>
<div>i can say things a few words about the `scan-build-py`, because was my commit in the repo. :) first of all, it is an initial commit. not yet a complete replacement of the `scan-build` (the one written in Perl). that's the reason why it is not installed
 by any build target... but if you try it out and report your experience that's helpful. (to "install" you need to put the `tools/scan-build-py/bin` dir into your `PATH` environment variable) it comes with a `README.md` file, which describes the usage.</div>
<div><br>
</div>
<div>regards,</div>
<div>Laszlo</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jan 29, 2016 at 5:39 AM, Lockhart, Jonathan (lockhaja) via cfe-dev
<span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Alexey or Others,</p>
<p><br>
</p>
<p>So I did a fresh full build with the latest checkout of clang, LLVM, Visual Studio, and CMake. The ALL-BUILD completed successfully but unfortunately no where in the build repository do I see a command of scan-build-py. There is also no repository of build\tools\scan-build-py
 or build\tools\clang\tools\scan-build-py. I tried running the new version of the batch file for scan-build, located in build\bin, but unfortunately that fails, as the first line of that batch file just says perl -S scan-build, and there is nothing else in
 the file.<br>
</p>
<span>
<p><br>
</p>
<div>
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px"><font size="3" face="Calibri,Arial,Helvetica,sans-serif">Regards,<br>
Jon Lockhart<br>
PhD Candidate - EE Systems<br>
University of Cincinnati<br>
<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a></font></div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
</span>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Alexey Sidorin <<a href="mailto:alexey.v.sidorin@ya.ru" target="_blank">alexey.v.sidorin@ya.ru</a>><br>
<b>Sent:</b> Friday, January 22, 2016 3:12 PM
<div>
<div><br>
<b>To:</b> Lockhart, Jonathan (lockhaja)<br>
<b>Cc:</b> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [cfe-dev] Issues Running Scan-build</div>
</div>
</font>
<div> </div>
</div>
<div>
<div>
<div>
<div>Jonathan,<br>
<br>
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?<br>
AFAIR, you can use new scan-build with your clang so it is not necessary to build clang from repository.<br>
<br>
<br>
22.01.2016 01:45, Lockhart, Jonathan (lockhaja) пишет:<br>
</div>
<blockquote type="cite">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Alexey,</p>
<p><br>
</p>
<p>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</p>
<br>
<p>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<br>
</p>
The syntax of the command is incorrect.<br>
scan-build: Using 'C:/Users/lockhaja/build/bin/Debug/clang.exe' for static analysis<br>
scan-build: Emitting reports for this run to 'C:/Users/lockhaja_local/Desktop/2016-01-21-1'.<br>
<p>'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.<br>
</p>
scan-build: No bugs found.<br>
<br>
<p>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.<br>
</p>
<br>
<div>
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px"><font size="3" face="Calibri,Arial,Helvetica,sans-serif">Regards,<br>
Jon Lockhart<br>
PhD Candidate - EE Systems<br>
University of Cincinnati<br>
<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a></font></div>
</div>
</div>
</div>
</div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block; width:98%">
<div dir="ltr"><font color="#000000" face="Calibri, sans-serif" style="font-size:11pt"><b>From:</b> Alexey Sidorin
<a href="mailto:alexey.v.sidorin@ya.ru" target="_blank"><alexey.v.sidorin@ya.ru></a><br>
<b>Sent:</b> Thursday, January 21, 2016 5:14 PM<br>
<b>To:</b> Lockhart, Jonathan (lockhaja)<br>
<b>Cc:</b> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [cfe-dev] Issues Running Scan-build</font>
<div> </div>
</div>
<div>
<div>Hello Jonathan,<br>
<br>
It seems like you are using an old version of scan-build. This issue should be fixed with commit
<span><span><span>4415a4b58bd (<a href="https://github.com/llvm-mirror/clang/commit/4415a4b58bd561d85a7dff84f62778b675a98a09" target="_blank"></a><a href="https://github.com/llvm-mirror/clang/commit/4415a4b58bd561d85a7dff84f62778b675a98a09" target="_blank">https://github.com/llvm-mirror/clang/commit/4415a4b58bd561d85a7dff84f62778b675a98a09</a>).
 I suggest you to update your scan-build to the newest version and check it again.<br>
<br>
You can also try the newest Python version of scan-build (which is located in tools/scan-build-py).<br>
<br>
And, BTW, '--user-analyzer' option in your cmdline should be corrected to '--use-analyzer'.<br>
<br>
<br>
</span></span></span><br>
22.01.2016 00:32, Lockhart, Jonathan (lockhaja) via cfe-dev пишет:<br>
</div>
<blockquote type="cite">
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Greetings,</p>
<p><br>
</p>
<p>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.
</p>
<p><br>
</p>
<p>Any assistance would be much appreciated and I do apologize if I am mailing the wrong list, it has been a while.<br>
</p>
<p><br>
</p>
<div>
<div style="font-size:12pt; color:#000000; background-color:#ffffff; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-size:13px"><font size="3" face="Calibri,Arial,Helvetica,sans-serif">Regards,<br>
Jon Lockhart<br>
PhD Candidate - EE Systems<br>
University of Cincinnati<br>
<a href="mailto:lockhaja@mail.uc.edu" target="_blank">lockhaja@mail.uc.edu</a></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset> <br>
<pre>_______________________________________________
cfe-dev mailing list
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
</div>
</div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>