Public bug reported:

In debian/rules, it tries to determine the clang version by parsing
/usr/bin/clang.

CLANG_VER := $(shell realpath /usr/bin/clang | sed -e
's/.*llvm-\([0-9]\+\).*/\1/')

However the Ubuntu patch uses a specific clang version, which missing
/usr/bin/clang symlink, causing the script failed to work.

As seen from the build log,

dh_auto_configure -- -DCCLS_VERSION=0.20190823-3ubuntu3
-DCLANG_RESOURCE_DIR=/usr/include/clang//usr/bin/clang

The clang resource dir is wrong.

I don't how to write the debian/rules better. If you have ideas, please
tell me, and I will include it in Debian.

For this specific case for Ubuntu, you can set CLANG_VER = 8 in
debian/rules.

If you want to build ccls with default clang, which is clang-9, just add
lldb to build-depends. Then ccls can build without problem. The reason
is https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941082 which is a
bug in llvm.

** Affects: ccls (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1845233

Title:
  configured with wrong clang resource directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ccls/+bug/1845233/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to