[LLVMbugs] [Bug 14963] New: scan-build report errors on stdout and fails to set exit code
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 16 04:47:14 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14963
Bug #: 14963
Summary: scan-build report errors on stdout and fails to set
exit code
Product: clang
Version: 3.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: aduret at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
In the following command, scan-build reports an error on stdout (instead of
stderr) and fails to adjust $? to signal the problem.
% scan-build ./configure --prefix ~/usr && scan-build make -j2
scan-build: error: Cannot find an executable 'clang' relative to scan-build.
Consider using --use-analyzer to pick a version of 'clang' to use for static
analysis.
scan-build: error: Cannot find an executable 'clang' relative to scan-build.
Consider using --use-analyzer to pick a version of 'clang' to use for static
analysis.
% echo $?
0
I would expect (1) that the error is output on stderr, and (2) that $? is set
to a non-zero value so that the "scan-build make" is not even started.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list