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
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?
clang35-3.5.0 C, Objective-C, and C++ compiler llvm35-3.5.0 Low Level Virtual Machine
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.
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
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
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
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
Fixed in Clang 3.3+.