The message “scan-build: 'clang' executable not found in
'/usr/share/clang/scan-build/bin'” is just a warning. As you can see on
the next line, it successfully found clang in the path.
The reason you didn’t get any output is because scan-build didn’t find
any bugs to report. You can see that scan-build works by deliberately
feeding it a program with a bug:
$ echo 'int main() {return *(int *)0;}' > foo.c
$ scan-build make foo
scan-build: 'clang' executable not found in '/usr/share/clang/scan-build/bin'.
scan-build: Using 'clang' from path: /usr/bin/clang
/usr/share/clang/scan-build/ccc-analyzer foo.c -o foo
ANALYZE: foo.c main
foo.c:1:20: warning: Dereference of null pointer
int main() {return *(int *)0;}
^
1 warning generated.
scan-build: 1 bugs found.
scan-build: Run 'scan-view /tmp/scan-build-2011-06-02-2' to examine bug reports.
** Changed in: clang (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/683594
Title:
scan-build: 'clang' executable not found in '/usr/share/clang/scan-
build/bin'
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs