Bug#735592: llvm-3.5-dev: LLVM/Clang CMake package files missing

Jeremy Salwen jeremysalwen at gmail.com
Tue Jun 3 17:49:35 UTC 2014


I think there are still problems with the CMake files installed by the
Debian packages at http://llvm.org/apt/.  While it does install the files
listed

$ dpkg -c llvm-3.5-dev_1%3a3.5~svn210093-1~exp1_amd64.deb |grep cmake
> drwxr-xr-x root/root         0 2014-06-03 06:57 ./usr/share/llvm-3.5/cmake/
> -rw-r--r-- root/root      1223 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/HandleLLVMStdlib.cmake
> -rw-r--r-- root/root      5550 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/TableGen.cmake
> -rw-r--r-- root/root     17272 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/HandleLLVMOptions.cmake
> -rw-r--r-- root/root      3162 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/LLVMParseArguments.cmake
> -rw-r--r-- root/root       492 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/AddLLVMDefinitions.cmake
> -rw-r--r-- root/root      1064 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/GetSVN.cmake
> -rw-r--r-- root/root     13863 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/LLVMExports.cmake
> -rw-r--r-- root/root     13290 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/LLVMConfig.cmake
> -rw-r--r-- root/root       846 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/FindSphinx.cmake
> -rw-r--r-- root/root      2224 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/LLVMProcessSources.cmake
> -rw-r--r-- root/root      3900 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/ChooseMSVCCRT.cmake
> -rw-r--r-- root/root     23319 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/AddLLVM.cmake
> -rw-r--r-- root/root      6645 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/LLVM-Config.cmake
> -rw-r--r-- root/root      2268 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/AddSphinxTarget.cmake
> -rw-r--r-- root/root       445 2014-06-03 06:56
> ./usr/share/llvm-3.5/cmake/LLVMConfigVersion.cmake
>


The files contain bad internal filenames.  For example, if you try to build
an LLVM pass according to the LLVM instructions
http://llvm.org/docs/CMake.html#cmake-out-of-source-pass
it will give the error

CMake Error at /usr/share/llvm-3.5/cmake/LLVMConfig.cmake:43 (include):
>   include could not find load file:
>
>     /usr/lib/llvm-3.5/share/llvm/cmake/LLVMExports.cmake
>

where we can see it is looking in the folder
/usr/lib/llvm-3.5/share/llvm/cmake/, instead of /usr/share/llvm-3.5/cmake/
where the file LLVMExports.cmake is actually located.

Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20140603/c4ffec3a/attachment-0001.html>


More information about the Pkg-llvm-team mailing list