** Changed in: llvm-toolchain-3.8 (Debian)
       Status: Unknown => Fix Released

-- 
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:
  Fix Released
Status in llvm-toolchain-3.8 source package in Xenial:
  New
Status in llvm-toolchain-3.8 package in Debian:
  Fix Released

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

Reply via email to