When compiling kde-apps/dolphin-plugins-subversion-25.08.5 with lto enabled and lto-problematic errors turned into warnings, I get the following: ``` /var/tmp/portage/kde-apps/dolphin-plugins-subversion-23.08.5/work/dolphin-plugins-23.08.5/svn/svncommitdialog.cpp:70:6: error: type ‘columns_t’ violates the C++ One Definition Rule [-Werror=odr] 70 | enum columns_t { | ^ /var/tmp/portage/kde-apps/dolphin-plugins-subversion-23.08.5/work/dolphin-plugins-23.08.5/svn/svnlogdialog.cpp:67:6: note: an enum with different value name is defined in another translation unit 67 | enum columns_t { | ^ /var/tmp/portage/kde-apps/dolphin-plugins-subversion-23.08.5/work/dolphin-plugins-23.08.5/svn/svncommitdialog.cpp:71:5: note: name ‘columnPath’ differs from name ‘columnRevision’ defined in another translation unit 71 | columnPath, | ^ /var/tmp/portage/kde-apps/dolphin-plugins-subversion-23.08.5/work/dolphin-plugins-23.08.5/svn/svnlogdialog.cpp:68:5: note: mismatching definition 68 | columnRevision, | ^ 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. ``` My lto-related make.conf lines are ``` WARNING_FLAGS="-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing" COMMON_FLAGS="-march=native -O2 -pipe -flto=auto ${WARNING_FLAGS}" ``` Disabling lto and the errors is a workaround, i.e., kde-apps/dolphin-plugins-subversion-23.08.5 compiles after that.
Full build.log and emerge --info please. This also looks like an easy fix if you want to try send one upstream.
Created attachment 886786 [details] build log
Created attachment 886787 [details] output of emerge --info
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f69bcbfb3473aa317a114334847b617f30caee84 commit f69bcbfb3473aa317a114334847b617f30caee84 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-05-08 00:52:26 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-05-08 19:19:28 +0000 kde-apps/dolphin-plugins-subversion: backport patch to fix ODR violation Closes: https://bugs.gentoo.org/926233 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../dolphin-plugins-subversion-23.08.5-r1.ebuild | 68 +++++++++++++++++++ ...> dolphin-plugins-subversion-24.02.2-r1.ebuild} | 5 ++ .../772a4d712abcf1c6c86f25bd306785815132d886.patch | 78 ++++++++++++++++++++++ 3 files changed, 151 insertions(+)