Bug#698352: `scan-build: error: Cannot find an executable 'clang' relative to scan-build.`
Am Donnerstag, den 17.01.2013, 16:09 +0100 schrieb Sylvestre Ledru: > On 17/01/2013 14:31, Paul Menzel wrote: > > `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 > Applying this change on /usr/bin/scan-build fixes the issue: > > @@ -1459,7 +1459,7 @@ > > # Find 'clang' > if (!defined $AnalyzerDiscoveryMethod) { > - $Clang = Cwd::realpath("$RealBin/bin/clang"); > + $Clang = Cwd::realpath("/usr/bin/clang"); >if (!defined $Clang || ! -x $Clang) { > $Clang = Cwd::realpath("$RealBin/clang"); >} Thanks, worked for me. Though, upstream should figure out, what went wrong with setting $RealBin correctly, as not all systems use `/usr`. Thanks, Paul signature.asc Description: This is a digitally signed message part
Bug#698352: `scan-build: error: Cannot find an executable 'clang' relative to scan-build.`
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/01/2013 14:31, Paul Menzel wrote: > `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 Applying this change on /usr/bin/scan-build fixes the issue: @@ -1459,7 +1459,7 @@ # Find 'clang' if (!defined $AnalyzerDiscoveryMethod) { - - $Clang = Cwd::realpath("$RealBin/bin/clang"); + $Clang = Cwd::realpath("/usr/bin/clang"); if (!defined $Clang || ! -x $Clang) { $Clang = Cwd::realpath("$RealBin/clang"); } Sylvestre -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlD4FBUACgkQiOXXM92JlhC0PQCguogbztIzq4sZ5M9WXpRGv6O/ Ie8AoN+Zv5RlkN8Y74Uoqk7Aul30Rcy+ =JZwg -END PGP SIGNATURE- -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#698352: `scan-build: error: Cannot find an executable 'clang' relative to scan-build.`
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 Thanks, Paul 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, 'experimental') 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 signature.asc Description: This is a digitally signed message part