Bug#758998: scan-build does not default to the compiler it ships with

Aurelien Jacobs aurel at gnuage.org
Sat Sep 27 21:05:35 UTC 2014


Package: clang-3.5
Version: 1:3.5-3
Followup-For: Bug #758998

I can confirm this issue with clang-3.5, as well as with clang-3.6.
scan-build search for a clang executable in the same directory as the
actual scan-build executable (/usr/share/clang/scan-build-3.5/) and
does not find any.

There is an easy fix for this. The clang package should contain a
symlink to the clang executable in the scan-build directory.

As a temporary fix, creating this symlink manually is enough:
ln -s /usr/bin/clang-3.5 /usr/share/clang/scan-build-3.5/clang

Just for the record, there is a similar bug repport for archlinux:
https://bugs.archlinux.org/task/33358

Aurel



More information about the Pkg-llvm-team mailing list