scan-build broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clang (Debian) |
Fix Released
|
Unknown
|
|||
clang (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: clang
when trying to do anything other than get the help output scan-build fails with the message
scan-build: Executable 'c++-analyzer' does not exist at '/usr/bin/
symlinking /usr/bin/
steps to reproduce:
1) get the source to some project that uses autoconf (so I can give only one set of instructions...)
2) cd into the directory and do scan-build ./configure
3) see the message
Also the scan-view tool is missing from the clang package and you need it to view the results of the scan-build run
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: clang 2.7-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Mon May 3 15:20:11 2010
ProcEnviron:
LANGUAGE=en_CA:en
PATH=(custom, user)
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: clang
[Impact]
scan-build is not usable
[Stable Fix]
Patch is in comment #3
[Test case]
run
scan-build gcc -c file.c
Related branches
Changed in clang (Ubuntu): | |
status: | New → Confirmed |
Changed in clang (Ubuntu): | |
assignee: | nobody → Evan Broder (broder) |
status: | Confirmed → In Progress |
Changed in clang (Ubuntu): | |
assignee: | Evan Broder (broder) → nobody |
Changed in clang (Debian): | |
status: | Unknown → Fix Released |
description: | updated |
I'm guess from #549680 that the static analysis tools were added fairly last-minute, and all of the support tools they require are missing. It's missing 3 files:
c++-analyzer (just needs to be symlinked from ccc-analyzer) scan-build, which isn't created at all)
sorttable.js and scanview.css (MISSING -- probably should be added to a /usr/share/
scan-build will run successfully without the missing files if there are no bugs in the code it's analyzing, but if it actually needs to generate a report, it will crap out and die when trying to actually generate the report.