About Clang headers on Debian

julien2412 serval2412 at yahoo.fr
Tue Oct 1 14:38:44 PDT 2013


Hello,

On pc Debian x86-64 testing updated today, I tried to build with clang.
But I got this warning after autogen.sh
Cannot find Clang headers to build compiler plugins, plugins disabled

Checking in configure.ac, I found this:
   5625         CPPFLAGS="$CPPFLAGS -I$CLANGDIR/include
-I$CLANGDIR/tools/clang/include -I$CLANGBUILD/include
-I$CLANGBUILD/tools/clang/include -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS"
   5626         AC_CHECK_HEADER(clang/AST/RecursiveASTVisitor.h,
   5627             [COMPILER_PLUGINS=TRUE],
   5628             [
   5629             if test "$compiler_plugins" = "yes"; then
   5630                 AC_MSG_ERROR([Cannot find Clang headers to build
compiler plugins.])

So I checked which package provided "RecursiveASTVisitor.h"
root at julienPC:/home/julien# apt-file search RecursiveASTVisitor.h
libclang-3.4-dev: /usr/lib/llvm-3.4/include/clang/AST/RecursiveASTVisitor.h
libclang-dev: /usr/lib/llvm-3.2/include/clang/AST/RecursiveASTVisitor.h

But this package is already installed:
root at julienPC:/home/julien# apt-get install libclang-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libclang-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Should I create a symlink or should I override CLANGBUILD or CLANGBUILD so
autogen.sh can find:
/usr/lib/llvm-3.2/include/clang/AST/RecursiveASTVisitor.h
?
Is/are Debian package(s) for clang/llvm buggy? 

Julien



--
View this message in context: http://nabble.documentfoundation.org/About-Clang-headers-on-Debian-tp4075924.html
Sent from the Dev mailing list archive at Nabble.com.


More information about the LibreOffice mailing list