Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714764 - dev-util/ccls-9999 fails to compile with clang 10
Summary: dev-util/ccls-9999 fails to compile with clang 10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-03-25 21:30 UTC by Michael Cook
Modified: 2020-04-25 03:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch that compiles with clang 10 at least (ccls-clang-10.diff,321 bytes, patch)
2020-03-25 21:31 UTC, Michael Cook
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cook 2020-03-25 21:30:07 UTC
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
Comment 1 Michael Cook 2020-03-25 21:31:20 UTC
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 ...)
Comment 2 Larry the Git Cow gentoo-dev 2020-04-24 22:19:46 UTC
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(+)
Comment 3 Matt Turner gentoo-dev 2020-04-24 22:21:06 UTC
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.
Comment 4 Michael Cook 2020-04-25 01:41:36 UTC
Still need to pass -DCLANG_LINK_CLANG_DYLIB=1 in mycmakeargs for clang 10 to compile (tested 0.20190823.5 as well)
Comment 5 Larry the Git Cow gentoo-dev 2020-04-25 03:53:41 UTC
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(+)