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

Reply via email to