Bug 982645
Summary: | scan-build does not works | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Clément DAVID <c.david86> |
Component: | llvm | Assignee: | Jan Včelák <jv+fedora> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 19 | CC: | ajax, bos, dmalcolm, jv+fedora, kgadek+bugzillaredhat, kzak, michel, olivier.crete, petersen, scottt.tw |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | llvm-3.3-3.fc19 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-12-14 03:21:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Clément DAVID
2013-07-09 13:26:30 UTC
*** Bug 923834 has been marked as a duplicate of this bug. *** llvm-3.3-3.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/llvm-3.3-3.fc19 llvm-3.3-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/llvm-3.3-3.fc20 Package llvm-3.3-3.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing llvm-3.3-3.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-22509/llvm-3.3-3.fc19 then log in and leave karma (feedback). On F20, even after this update, scan-build still does not work. Doing scan-build --help-checkers does now list the checkers. But it seem to never run them. Works for me. How do you invoke the compilation? $ cat main.c #include <stdio.h> int main(void) { int var; printf("test %d\n", var); return 0; } $ scan-build gcc ./main.c scan-build: Using '/usr/bin/clang' for static analysis ./main.c:6:2: warning: Function call argument is an uninitialized value printf("test %d\n", var); ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. scan-build: 1 bugs found. scan-build: Run 'scan-view /tmp/scan-build-2013-12-05-3' to examine bug reports. I did "scan-build make" in a autoconf/automake project (the core GStreamer repository). If it is an automake project, you should run even ./configure through scan-build. Have you done it? [1] http://clang-analyzer.llvm.org/scan-build.html#recommended_autoconf I'm an idiot, sorry Btw, the man page isn't installed in the right place. No problem. :-) I will fix the man page in next update. llvm-3.3-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. llvm-3.3-3.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. |