Public bug reported: I installed trusty and then updated my clang to 3.5. Since the various clang packages conflict, this removes the default 3.3 clang. I then installed the iwyu package, which could not find the built-in clang includes.
While the iwyu package claims to depend on any of clang 3.3, 3.4, or 3.5 packages, it appears to be built against clang 3.3 (as the version number of 3.3-4 would lead one to beleive) and appears to have the relative path to the 3.3 include directory compiled in. This means that it requires the libclang-common-3.3-dev package be installed in order to work. Therefore, it appears that the iwyu3.3-4 package should require the libclang-common-3.3-dev package. I installed this manually (using apt- get). However, this was not enough, as it appears that the package does not create all of the needed links. (see http://anonscm.debian.org/viewvc/pkg-llvm/llvm- toolchain/branches/3.3/debian/libclang-common-3.3-dev.links?view=markup vs http://anonscm.debian.org/viewvc/pkg-llvm/llvm- toolchain/branches/3.4/debian/libclang- common-X.Y-dev.links.in?revision=1273&view=markup ). Specifically, I had to manually create the "/usr/include/clang/3.3/include -> ../../../lib/llvm-3.3/lib/clang/3.3/include" link. It appears this sort of link is created by the 3.4/3.5 package, and iwyu requires the 3.3 version. After creating it, iwyu works well. An alternative, since iwyu is a clang tool, is to build versions of it for each supported clang release, like most other clang tools. For example, there could be an iwyu3.3, iwyu3.4, and iwyu3.5, each build along with each build of clang. ** Affects: iwyu (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1363322 Title: iwyu needs dependency on libclang-common-3.3-dev To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/iwyu/+bug/1363322/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
