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

Bug 921649

Summary: kde-apps/gwenview-23.08.4: error: type ‘Gwenview::Sorting::Enum’ violates the C++ One Definition Rule [-Werror=odr]
Product: Gentoo Linux Reporter: Viorel Munteanu <ceamac>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: CONFIRMED ---    
Severity: normal CC: paolo.pedroni, rkitover
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: build.log
emerge --info

Description Viorel Munteanu gentoo-dev 2024-01-09 10:28:30 UTC
Created attachment 881741 [details]
build.log

/mnt/tmp/portage/kde-apps/gwenview-23.08.4/work/gwenview-23.08.4/lib/../lib/sorting.h:37:6: error: type ‘Gwenview::Sorting::Enum’ violates the C++ One Definition Rule [-Werror=odr]
   37 | enum Enum {
      |      ^
/mnt/tmp/portage/kde-apps/gwenview-23.08.4/work/gwenview-23.08.4/lib/../lib/sorting.h:37:6: note: an enum with different number of values is defined in another translation unit
   37 | enum Enum {
      |      ^
lto1: some warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/x86_64-pc-linux-gnu-g++ returned 1 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Comment 1 Viorel Munteanu gentoo-dev 2024-01-09 10:29:01 UTC
Created attachment 881742 [details]
emerge --info
Comment 2 Leonardo Hernández Hernández 2024-01-10 05:23:06 UTC
*** Bug 921687 has been marked as a duplicate of this bug. ***
Comment 3 Paolo Pedroni 2024-03-11 10:50:05 UTC
Same for kde-apps/gwenview-24.02.0:6