Bug 923834 - scan-build: error: Cannot find an executable 'clang' relative to scan-build.
Summary: scan-build: error: Cannot find an executable 'clang' relative to scan-build.
Keywords:
Status: CLOSED DUPLICATE of bug 982645
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Včelák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-20 14:50 UTC by Karel Zak
Modified: 2013-11-29 23:46 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-11-29 23:46:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karel Zak 2013-03-20 14:50:49 UTC
Description of problem:

$ scan-build  makescan-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.

It seems that Fedora 18 is also affected by:
 
  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698352

Workaround is to use

  scan-build --use-analyzer=/usr/bin/clang make

Version-Release number of selected component (if applicable):
clang-analyzer-3.2-2.fc18.x86_64

Comment 1 Yury V. Zaytsev 2013-03-24 10:32:25 UTC
Same here on the i686 hosts. Karel, thanks for the workaround!

Comment 2 Adam Jackson 2013-06-26 17:56:26 UTC
Fixed in 3.3.

Comment 3 craigbarnes85 2013-09-01 21:18:40 UTC
It doesn't seem to be fixed in Fedora 19.

$ rpm -q clang-analyzer
clang-analyzer-3.3-0.6.rc3.fc19.i686

$ scan-build make
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.

Comment 4 Konrad Gądek 2013-11-22 00:52:31 UTC
Seems to still be present in F20 beta.

$ rpm -q clang-analyzer
clang-analyzer-3.3-0.10.rc3.fc20.x86_64

Comment 5 Jan Včelák 2013-11-29 23:46:20 UTC

*** This bug has been marked as a duplicate of bug 982645 ***


Note You need to log in before you can comment on or make changes to this bug.