Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749876 - dev-util/clazy-1.7 w/ LLVM-11: src/checks/manuallevel/qt-keywords.cpp:62:35: error: conversion from ‘llvm::StringRef’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
Summary: dev-util/clazy-1.7 w/ LLVM-11: src/checks/manuallevel/qt-keywords.cpp:62:35: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-10-18 11:50 UTC by Agostino Sarubbo
Modified: 2020-11-20 20:40 UTC (History)
0 users

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


Attachments
build.log (build.log,46.54 KB, text/plain)
2020-10-18 11:50 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-10-18 11:50:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/clazy-1.7 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a gold linker (ld.gold).
If you think that this issue is strictly related to ld.gold please block bug 269315.
Comment 1 Agostino Sarubbo gentoo-dev 2020-10-18 11:50:42 UTC
Created attachment 666482 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-10-18 11:50:43 UTC
Possible context of error(s):

/var/tmp/portage/dev-util/clazy-1.7/work/clazy-1.7/src/checks/manuallevel/qt-keywords.cpp:62:35: error: conversion from ‘llvm::StringRef’ to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
Comment 3 Atlant 2020-10-22 15:21:47 UTC
after apply upstream patch https://github.com/KDE/clazy/pull/38.patch - compiled successful!
Patch found on https://github.com/KDE/clazy/pull/35
May be need additional patch(for llvm 11.0.0) - https://github.com/KDE/clazy/pull/38.patch (via on pull request https://github.com/KDE/clazy/pull/38)
Comment 4 Andreas Sturmlechner gentoo-dev 2020-10-22 18:25:54 UTC
Looking forward to meaningful summaries.
Comment 5 Larry the Git Cow gentoo-dev 2020-10-26 13:56:16 UTC
The bug has been closed via the following commit(s):

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

commit 3cf0b312d76f313c80a28d1c7d112e03e303d3a2
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-10-26 10:21:23 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-10-26 13:55:45 +0000

    dev-util/clazy: Fix build with LLVM-11
    
    Fix HOMEPAGE
    
    Closes: https://bugs.gentoo.org/749876
    Package-Manager: Portage-3.0.8, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-util/clazy/clazy-1.7-r1.ebuild            |  43 ++++
 dev-util/clazy/clazy-1.7.ebuild               |   2 +-
 dev-util/clazy/files/clazy-1.7-llvm11-1.patch | 343 ++++++++++++++++++++++++++
 dev-util/clazy/files/clazy-1.7-llvm11-2.patch |  28 +++
 4 files changed, 415 insertions(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2020-11-20 20:40:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a5d03765f47a1eb23760e3b564616faa7e92990

commit 1a5d03765f47a1eb23760e3b564616faa7e92990
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2020-11-20 19:03:41 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-11-20 20:39:46 +0000

    dev-util/clazy: 1.7-r1 amd64 stable
    
    Since llvm-11 was stabilised we need to stabilise this independently.
    
    Bug: https://bugs.gentoo.org/749876
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 dev-util/clazy/clazy-1.7-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)