Bug#698352: `scan-build: error: Cannot find an executable 'clang' relative to scan-build.`
Sylvestre Ledru
sylvestre at debian.org
Thu Jan 17 15:09:09 UTC 2013
-----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-----
More information about the Pkg-llvm-team
mailing list