Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 924866

Summary: dev-libs/keystone-0.9.2-r3 fails to compile: AArch64GenAsmMatcher.inc:98:6: error: type SubtargetFeatureFlag violates the C++ One Definition Rule [-Werror=odr]
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: mario.haustein
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2024-02-18 07:42:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-libs/keystone-0.9.2-r3 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-18 07:42:29 UTC
Created attachment 885285 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-18 07:42:30 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: llvm/lib64/libkeystone.so.0 
/var/tmp/portage/dev-libs/keystone-0.9.2-r3/work/keystone-0.9.2/llvm/keystone/../lib/Target/AArch64/AArch64GenAsmMatcher.inc:98:6: error: type ‘SubtargetFeatureFlag’ violates the C++ One Definition Rule [-Werror=odr]
Comment 3 Larry the Git Cow gentoo-dev 2024-03-01 03:54:45 UTC
The bug has been closed via the following commit(s):

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

commit aed53bca3e473c593159ee31f1b98ce68a45b85a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-01 03:54:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-01 03:54:17 +0000

    dev-libs/keystone: filter LTO (ODR violations)
    
    The ODR violations are in a bundled copy of LLVM and upstream seems to have
    low activity, and no release in 4 years.
    
    Closes: https://bugs.gentoo.org/924866
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/keystone/keystone-0.9.2-r3.ebuild | 5 ++++-
 dev-libs/keystone/keystone-9999.ebuild     | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)