[cfe-dev] Unable to View Results Produced by scan-build

Malhar Thakkar via cfe-dev cfe-dev at lists.llvm.org
Tue May 30 03:59:48 PDT 2017


I have an additional query.
After scan-build completes, it says, *Run '**scan-view
/Users/malharthakkar/Desktop/scan-build-isl/2017-05-30-161222-546-1**' to
examine bug reports*.
When I run the above command, it somehow opens the results which I obtained
4 days ago (look at the dates in the browser window and the terminal in the
attached screenshot). Any idea why that is happening?
Also, when I ran scan-build along with -o, only a few files were compiled
and analyzed, not the entire codebase (How do I build the entire codebase?).

Actually, I am trying to build the ISL codebase with scan-build using the
following command.

*../../GSoC/build/bin/scan-build --use-analyzer
/Users/malharthakkar/GSoC/build/bin/clang --use-cc
/Users/malharthakkar/GSoC/build/bin/clang -o
/Users/malharthakkar/Desktop/scan-build-isl/ -enable-checker
osx.cocoa.RetainCount make CC="gcc" CFLAGS='-Wno-nullability-completeness
-I/usr/local/include -D__isl_give="__attribute__((cf_returns_retained))"
-D__isl_take="__attribute__((cf_consumed))"'*


Thank you.


Regards,
Malhar Thakkar
ᐧ

On Tue, May 30, 2017 at 1:17 PM, Malhar Thakkar <cs13b1031 at iith.ac.in>
wrote:

> Thank you so much for your help. I'm running scan-build again right now
> with -o and saving the results to my desktop rather than a temporary
> directory.
>
> Regards,
> Malhar
>>
> On Tue, May 30, 2017 at 1:15 PM, Alexander Droste <alexander.ra.droste@
> googlemail.com> wrote:
>
>> Hi Malhar,
>>
>> scan-build by default writes its output to a temporary folder
>> why you haven't been able to access the files at a later time.
>> In order to keep the files and save them to a another path,
>> you can specify the output location with '-o' (see scan-build
>> -h for more details).
>>
>> -Alex
>>
>> On 30.05.17 06:46, Malhar Thakkar via cfe-dev wrote:
>>
>>> Hello everyone,
>>>
>>> I am using scan-view command to view the results generated by
>>> scan-build. Yesterday, I was able to navigate through individual files to
>>> analyse the warnings raised in them but now it shows the following error.
>>>
>>>
>>>   Error response
>>>
>>> Error code 404.
>>>
>>> Message: File not found.
>>>
>>> Error code explanation: 404 = Nothing matches the given URI.
>>>
>>>
>>> Can anyone guide me on how to fix this?
>>>
>>>
>>> Thank you.
>>>
>>>
>>>
>>> Regards,
>>>
>>> Malhar Thakkar
>>>
>>>>>>
>>>
>>> _______________________________________________
>>> 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/20170530/e0e38b41/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2017-05-30 at 16.24.24.png
Type: image/png
Size: 505876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170530/e0e38b41/attachment.png>


More information about the cfe-dev mailing list