Pretty sure I noticed this failing with clang 10rcs, but I haven't gotten around to investigating it. It errors out with some linking errors like: /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lclangIndex Reproducible: Always
Created attachment 625872 [details, diff] patch that compiles with clang 10 at least I'm not sure if there is a better way to do this (like for older clang version checks or something or if those even still work ...)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a90dff776eb9b4f723fd47f44154626df8d100 commit 97a90dff776eb9b4f723fd47f44154626df8d100 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2020-04-24 22:16:03 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2020-04-24 22:16:07 +0000 dev-util/ccls: Version bump to 0.20190823.6 Closes: https://bugs.gentoo.org/712314 Closes: https://bugs.gentoo.org/714764 Closes: https://bugs.gentoo.org/719034 Signed-off-by: Matt Turner <mattst88@gentoo.org> dev-util/ccls/Manifest | 1 + dev-util/ccls/ccls-0.20190823.6.ebuild | 40 ++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+)
I speculatively marked a version bump as closing this because I see that the release notes say it supports clang-10. I don't have clang-10 built to test. If you can confirm whether its now working or not I would be very appreciative. If not, and your patch still fixes it, I'll gladly commit it.
Still need to pass -DCLANG_LINK_CLANG_DYLIB=1 in mycmakeargs for clang 10 to compile (tested 0.20190823.5 as well)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0e2bf63bbc24866d54da292b9201f4ad6d2eb06 commit b0e2bf63bbc24866d54da292b9201f4ad6d2eb06 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2020-04-25 03:52:17 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2020-04-25 03:53:27 +0000 dev-util/ccls: Pass -DCLANG_LINK_CLANG_DYLIB=1 Fixes the build with clang-10, while evidently not harming the build against earlier versions. Thanks to Michael Cook for the patch. Closes: https://bugs.gentoo.org/714764 Signed-off-by: Matt Turner <mattst88@gentoo.org> dev-util/ccls/ccls-0.20190823.6.ebuild | 1 + dev-util/ccls/ccls-9999.ebuild | 1 + 2 files changed, 2 insertions(+)