Public bug reported: When building project with llvm-libs using cmake, cmake is complaining about incorrect library path. It looks like installation path is incorrectly setup. Also, 3.7 doesn't have any problem. DISCLAIMER: I'm using ubuntu docker, don't know if that changes anything.
Error: -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:178 (include): include could not find load file: /usr/share/llvm/cmake/LLVMExports.cmake Call Stack (most recent call first): CMakeLists.txt:4 (find_package) CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:181 (include): include could not find load file: /usr/share/llvm/cmake/LLVM-Config.cmake Call Stack (most recent call first): CMakeLists.txt:4 (find_package) -- CMake Error at CMakeLists.txt:13 (llvm_map_components_to_libnames): Unknown CMake command "llvm_map_components_to_libnames". -- Configuring incomplete, errors occurred! See also "XXXXXXXXXX/dummy/build/CMakeFiles/CMakeOutput.log". Expected output(something like below), also I can confirm that it can work once all the path and symlink in the files are fixed: -- The C compiler identification is GNU 6.2.1 -- The CXX compiler identification is GNU 6.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- -- Configuring done -- Generating done -- Build files have been written to: XXXXXXXXXXXXX/dummy/build Attachment is a dummy project file that uses llvm and clang, need package: llvm llvm-dev clang libclang-dev To reproduce the error 1. unarchive 2. cd 3. mkdir build 4. cd build 5. cmake .. ** Affects: llvm-toolchain-3.8 (Ubuntu) Importance: Undecided Status: New ** Attachment added: "A dummy project using llvm-libs and clang-libs using CMake" https://bugs.launchpad.net/bugs/1630855/+attachment/4755653/+files/dummy.tar.gz -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to llvm-toolchain-3.8 in Ubuntu. https://bugs.launchpad.net/bugs/1630855 Title: cmake can't find llvm-libs Status in llvm-toolchain-3.8 package in Ubuntu: New Bug description: When building project with llvm-libs using cmake, cmake is complaining about incorrect library path. It looks like installation path is incorrectly setup. Also, 3.7 doesn't have any problem. DISCLAIMER: I'm using ubuntu docker, don't know if that changes anything. Error: -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:178 (include): include could not find load file: /usr/share/llvm/cmake/LLVMExports.cmake Call Stack (most recent call first): CMakeLists.txt:4 (find_package) CMake Error at /usr/share/llvm-3.8/cmake/LLVMConfig.cmake:181 (include): include could not find load file: /usr/share/llvm/cmake/LLVM-Config.cmake Call Stack (most recent call first): CMakeLists.txt:4 (find_package) -- CMake Error at CMakeLists.txt:13 (llvm_map_components_to_libnames): Unknown CMake command "llvm_map_components_to_libnames". -- Configuring incomplete, errors occurred! See also "XXXXXXXXXX/dummy/build/CMakeFiles/CMakeOutput.log". Expected output(something like below), also I can confirm that it can work once all the path and symlink in the files are fixed: -- The C compiler identification is GNU 6.2.1 -- The CXX compiler identification is GNU 6.2.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- -- Configuring done -- Generating done -- Build files have been written to: XXXXXXXXXXXXX/dummy/build Attachment is a dummy project file that uses llvm and clang, need package: llvm llvm-dev clang libclang-dev To reproduce the error 1. unarchive 2. cd 3. mkdir build 4. cd build 5. cmake .. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-3.8/+bug/1630855/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp