[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help with CMake linking Debian's LLVM libs



Hi Gianfranco,

thanks for the quick reply.

>> $ ./debian/rules build
> 
> which llvm version did upstream bundle?

Good question. They didn't include a complete checkout but only a subset
of files, now of which contains a version number. I can try to match
md5sums of their bundled files against the various releases to try and
find a mapping that uniquely identifies a version...

> LLVM folks are known for breaking API between releases, so maybe just you need a
> specific llvm version rather than the default one.

Yes, I suspected that as well and tried LLVM toolchain versions 3.6 and
3.7, both came up with the same error as mentioned in the original mail.
3.8 and 3.9 seem to lack the necessary CMake plugins in the first place
so I can't even try:

[...]
CMake Error at /usr/share/llvm-3.9/cmake/LLVMConfig.cmake:181 (include):
  include could not find load file:

    /usr/lib/cmake/llvm/LLVMExports.cmake
Call Stack (most recent call first):
  modules/pipeline/CMakeLists.txt:10 (find_package)


CMake Error at /usr/share/llvm-3.9/cmake/LLVMConfig.cmake:184 (include):
  include could not find load file:

    /usr/lib/cmake/llvm/LLVM-Config.cmake
Call Stack (most recent call first):
  modules/pipeline/CMakeLists.txt:10 (find_package)


-- Found LLVM 3.9.0
-- Using LLVMConfig.cmake in: /usr/share/llvm-3.9/cmake
CMake Error at modules/pipeline/CMakeLists.txt:18
(llvm_map_components_to_libnames):
  Unknown CMake command "llvm_map_components_to_libnames".

-- Configuring incomplete, errors occurred!
[...]

This is apparently a known problem, see also:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=819072 :(

Cheers
Sascha


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 


Reply to: