Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 735752 - dev-util/perf needs porting to LLVM 10
Summary: dev-util/perf needs porting to LLVM 10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: llvm-10
  Show dependency tree
 
Reported: 2020-08-03 11:24 UTC by Michał Górny
Modified: 2021-11-11 08:56 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-08-03 11:24:52 UTC
Currently declaring support for at most LLVM 9.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-12-10 08:56:47 UTC
Maintainer ping.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-06 12:21:48 UTC
I'll be masking dev-util/perf[clang].
Comment 3 Guilherme Amadio gentoo-dev 2021-04-30 08:27:21 UTC
For the record, I did try to fix the build system to work with LLVM 10 and above, but unfortunately that is not enough. There were also API changes introduced in Clang 10 that will need to be addressed upstream by perf developers. Although I would have hoped that we could keep LLVM 9 for a bit longer to wait until upstreams  themselves add support for LLVM 10 to their projects, I think that for perf the solution of just masking the use flag is fine.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-04-30 08:29:08 UTC
To be fair, nobody replied in nearly a year ;)

Is there nothing upstream re even 10 support right now?
Comment 5 Guilherme Amadio gentoo-dev 2021-11-10 13:18:44 UTC
Just to give another update. Upstream seems to support newer LLVM now, but it looks like it still needs the split LLVM libraries. I will try to patch the build system again and try with LLVM 11.

See links below for further info:
https://lore.kernel.org/all/20211012021321.291635-1-irogers@google.com/
https://lore.kernel.org/all/20211012021321.291635-2-irogers@google.com/
Comment 6 Larry the Git Cow gentoo-dev 2021-11-11 08:56:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=322b4e15ef689afbf118da25f4788070d25d4a75

commit 322b4e15ef689afbf118da25f4788070d25d4a75
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2021-11-11 08:49:02 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2021-11-11 08:51:41 +0000

    dev-util/perf: support LLVM >= 10, bug #735752
    
    Closes: https://bugs.gentoo.org/735752
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 dev-util/perf/files/perf-5.15-clang.patch          | 231 +++++++++++++++++++++
 .../perf/{perf-5.15.ebuild => perf-5.15-r1.ebuild} |  16 +-
 2 files changed, 241 insertions(+), 6 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ef8aa57a12924e455b8c9026f5fd9736f1f0914

commit 3ef8aa57a12924e455b8c9026f5fd9736f1f0914
Author:     Guilherme Amadio <amadio@gentoo.org>
AuthorDate: 2021-11-11 08:54:21 +0000
Commit:     Guilherme Amadio <amadio@gentoo.org>
CommitDate: 2021-11-11 08:55:58 +0000

    profiles/base: unmask USE=clang for >=dev-util/perf-5.15
    
    Bug: https://bugs.gentoo.org/735752
    Signed-off-by: Guilherme Amadio <amadio@gentoo.org>

 profiles/base/package.use.mask | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)