Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921649 - kde-apps/gwenview-23.08.4: error: type ‘Gwenview::Sorting::Enum’ violates the C++ One Definition Rule [-Werror=odr]
Summary: kde-apps/gwenview-23.08.4: error: type ‘Gwenview::Sorting::Enum’ violates the...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
: 921687 (view as bug list)
Depends on:
Blocks: lto
  Show dependency tree
Reported: 2024-01-09 10:28 UTC by Viorel Munteanu
Modified: 2024-03-11 10:50 UTC (History)
2 users (show)

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

build.log (build.log.bz2,10.96 KB, application/x-bzip)
2024-01-09 10:28 UTC, Viorel Munteanu
emerge --info (emerge-info.txt,25.52 KB, text/plain)
2024-01-09 10:29 UTC, Viorel Munteanu

Note You need to log in before you can comment on or make changes to this bug.
Description Viorel Munteanu gentoo-dev 2024-01-09 10:28:30 UTC
Created attachment 881741 [details]

/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