Bug#698352: `scan-build: error: Cannot find an executable 'clang' relative to scan-build.`

Paul Menzel pm.debian at googlemail.com
Thu Jan 17 13:31:41 UTC 2013

Package: clang
Version: 3.2-1~exp1
Severity: normal
Control: found -1 3.2-1~exp5

Dear Debian folks,

`scan-build` [1] does not work out of the box.

        $ 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.

Passing the path to Clang as written in the explanation, it works.

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



PS: The option `--use-analyzer` is not mentioned in the help output
(`--help`) and neihter in the manual.

[1] http://clang-analyzer.llvm.org/scan-build.html

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clang depends on:
ii  clang-3.2  3.2-1~exp5

clang recommends no packages.

clang suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20130117/fbc7d868/attachment.pgp>

More information about the Pkg-llvm-team mailing list