Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924866 - 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]
Summary: dev-libs/keystone-0.9.2-r3 fails to compile: AArch64GenAsmMatcher.inc:98:6: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: mario.haustein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-02-18 07:42 UTC by Agostino Sarubbo
Modified: 2024-03-01 03:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,599.71 KB, text/plain)
2024-02-18 07:42 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 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(-)