[dolphin] [Bug 482524] New: dolphin svn plugin: ODR violations when building with LTO

Erik Quaeghebeur bugzilla_noreply at kde.org
Wed Mar 6 08:46:45 GMT 2024


https://bugs.kde.org/show_bug.cgi?id=482524

            Bug ID: 482524
           Summary: dolphin svn plugin: ODR violations when building with
                    LTO
    Classification: Applications
           Product: dolphin
           Version: 23.08.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: plugins: svn
          Assignee: sebastian at sebastian-doerner.de
          Reporter: bugs.kde.org at e3q.eu
                CC: kfm-devel at kde.org
  Target Milestone: ---

SUMMARY
When compiling the dolphin svn plugin with LTO enabled (compiler flag:
-flto=auto) and treating some LTO-problematic warnings as errors (compiler
flags: -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing), the
build fails as follows:

```
/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.
```

SOFTWARE/OS VERSIONS
Linux: 6.6.13-gentoo-a #1 SMP
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
GCC: 13.2.1_p20240113

ADDITIONAL INFORMATION
Downstream bug: https://bugs.gentoo.org/926233

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list