Bug 193955 - lang/clang35: scan-view: ImportError: No module named ScanView
Summary: lang/clang35: scan-view: ImportError: No module named ScanView
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-26 16:32 UTC by Brooks Davis
Modified: 2014-09-27 01:29 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brooks Davis freebsd_committer freebsd_triage 2014-09-26 16:32:38 UTC
scan-build: 27 bugs found.                                                       
scan-build: Run 'scan-view /tmp/scan-build-2014-09-25-221113-96308-1' to         
examine bug reports.                                                             
$ scan-view35 /tmp/scan-build-2014-09-25-221113-96308-1                          
Traceback (most recent call last):                                               
  File "/usr/local/llvm35/bin/scan-view", line 131, in <module>                  
    main()                                                                       
  File "/usr/local/llvm35/bin/scan-view", line 128, in main                      
    run(port, options, root)                                                     
  File "/usr/local/llvm35/bin/scan-view", line 57, in run                        
    import ScanView                                                              
ImportError: No module named ScanView
Comment 1 Brooks Davis freebsd_committer freebsd_triage 2014-09-26 18:12:24 UTC
On a system with yesterday's upgrade to 3.5.0 installed:

$ scan-build35 make
scan-build: Using '/usr/local/llvm35/bin/clang' for static analysis
/usr/local/llvm35/bin/ccc-analyzer -o hello hello.c
hello.c:7:2: warning: Function call argument is an uninitialized value
        printf("hello world %d\n", foo);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
scan-build: 1 bug found.
scan-build: Run 'scan-view /tmp/scan-build-2014-09-26-175250-25741-1' to examine bug reports.
$ scan-view35 /tmp/scan-build-2014-09-26-175250-25741-1         
Starting scan-view at: http://127.0.0.1:8181
  Use Ctrl-C to exit.

What version do you have installed?
Comment 2 mjl 2014-09-26 18:21:03 UTC
clang35-3.5.0                  C, Objective-C, and C++ compiler
llvm35-3.5.0                   Low Level Virtual Machine
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2014-09-26 20:04:08 UTC
Ah, it worked for me because clang-devel incorrectly installs ScanView.py in the default path.  I'll need to fix that and fix the path setting in the scan-view or wrapper script.
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-09-26 20:06:09 UTC
A commit references this bug:

Author: brooks
Date: Fri Sep 26 20:05:55 UTC 2014
New revision: 369336
URL: http://svnweb.freebsd.org/changeset/ports/369336

Log:
  Install scan-view support files under LLVM_PREFIX and alter
  llvm-wrapper to support this.

  PR:		193955

Changes:
  head/lang/clang-devel/Makefile
  head/lang/clang-devel/files/llvm-wrapper.sh.in
  head/lang/clang-devel/pkg-plist
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-09-26 22:18:25 UTC
A commit references this bug:

Author: brooks
Date: Fri Sep 26 22:18:08 UTC 2014
New revision: 369350
URL: https://svnweb.freebsd.org/changeset/ports/369350

Log:
  Install the bits necessicary for scan-view to work.

  Make scan-build35 tell the user to run scan-view35.

  PR:		193955
  Sponsored by:	DARPA, AFRL

Changes:
  head/lang/clang35/Makefile
  head/lang/clang35/files/llvm-wrapper.sh.in
  head/lang/clang35/files/patch-tools_clang_tools_scan-build_scan-build
  head/lang/clang35/pkg-plist
Comment 6 commit-hook freebsd_committer freebsd_triage 2014-09-27 01:01:43 UTC
A commit references this bug:

Author: brooks
Date: Sat Sep 27 01:00:43 UTC 2014
New revision: 369351
URL: https://svnweb.freebsd.org/changeset/ports/369351

Log:
  Install scan-view dependencies.

  Tell the user the correct scan-view to run.

  PR:		193955
  Sponsored by:	DARPA, AFRL

Changes:
  head/lang/clang34/Makefile
  head/lang/clang34/files/llvm-wrapper.sh.in
  head/lang/clang34/files/patch-tools_clang_tools_scan-build_scan-build
  head/lang/clang34/pkg-plist
Comment 7 commit-hook freebsd_committer freebsd_triage 2014-09-27 01:26:46 UTC
A commit references this bug:

Author: brooks
Date: Sat Sep 27 01:25:59 UTC 2014
New revision: 369352
URL: https://svnweb.freebsd.org/changeset/ports/369352

Log:
  Install scan-view dependencies.

  Tell the user the correct scan-view to run.

  PR:		193955
  Sponsored by:	DARPA, AFRL

Changes:
  head/lang/clang33/Makefile
  head/lang/clang33/files/llvm-wrapper.sh.in
  head/lang/clang33/files/patch-tools_clang_tools_scan-build_scan-build
  head/lang/clang33/pkg-plist
Comment 8 Brooks Davis freebsd_committer freebsd_triage 2014-09-27 01:29:02 UTC
Fixed in Clang 3.3+.