Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921430 - kde-plasma/kwayland-integration-5.91.0 fails to compile (lto): src/windowsystem/qwayland-wayland.h:174:14: error: type ‘QtWayland::wl_shm::format’ violates the C++ One Definition Rule [-Werror=odr]
Summary: kde-plasma/kwayland-integration-5.91.0 fails to compile (lto): src/windowsyst...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-01-06 01:38 UTC by Kostadin Shishmanov
Modified: 2024-02-06 19:36 UTC (History)
1 user (show)

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


Attachments
build log (kwayland-integration.log,84.94 KB, text/x-log)
2024-01-06 01:38 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2024-01-06 01:38:50 UTC
Created attachment 881524 [details]
build log

FAILED: bin/KF5WindowSystemKWaylandPlugin.so
: && /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=raptorlake -O2 -flto=auto -pipe -mtls-dialect=gnu2 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always  -Wl,--no-undefined -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Werror=strict-aliasing   -pthread -shared  -o bin/KF5WindowSystemKWaylandPlugin.so src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/KF5WindowSystemKWaylandPlugin_autogen/mocs_compilation.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/plugin.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/shm.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/waylandintegration.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/windoweffects.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/windowinfo.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/windowshadow.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/windowsystem.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/waylandxdgactivationv1.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-xdg-activation-v1-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-xdg-activation-v1.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-blur-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-blur.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-contrast-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-contrast.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-slide-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-slide.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-plasma-window-management-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-plasma-window-management.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-shadow-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-shadow.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/wayland-wayland-protocol.c.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/qwayland-wayland.cpp.o src/windowsystem/CMakeFiles/KF5WindowSystemKWaylandPlugin.dir/logging.cpp.o  /usr/lib64/libKF5WindowSystem.so.5.113.0  /usr/lib64/libwayland-client.so  /usr/lib64/libKF5WaylandClient.so.5.113.0  /usr/lib64/libX11.so  /usr/lib64/libQt5Widgets.so.5.15.12  /usr/lib64/libQt5WaylandClient.so.5.15.12  /usr/lib64/libQt5XkbCommonSupport.a  /usr/lib64//libQt5Gui.so  /usr/lib64//libQt5Core.so  /usr/lib64/libxkbcommon.so  /usr/lib64/libGL.so  /usr/lib64/libQt5Gui.so.5.15.12  /usr/lib64/libQt5Core.so.5.15.12 && :
/var/tmp/portage/kde-plasma/kwayland-integration-5.91.0/work/kwayland-integration-5.91.0_build/src/windowsystem/qwayland-wayland.h:174:14: error: type ‘QtWayland::wl_shm::format’ violates the C++ One Definition Rule [-Werror=odr]
  174 |         enum format {
      |              ^
/usr/include/qt5/QtWaylandClient/5.15.12/QtWaylandClient/private/qwayland-wayland.h:182:14: note: an enum with different number of values is defined in another translation unit
  182 |         enum format {
      |              ^
/var/tmp/portage/kde-plasma/kwayland-integration-5.91.0/work/kwayland-integration-5.91.0_build/src/windowsystem/wayland-wayland-client-protocol.h:1469:6: error: type ‘wl_shm_format’ violates the C++ One Definition Rule [-Werror=odr]
 1469 | enum wl_shm_format {
      |      ^
/usr/include/qt5/QtWaylandClient/5.15.12/QtWaylandClient/private/wayland-wayland-client-protocol.h:1430:6: note: an enum with different number of values is defined in another translation unit
 1430 | enum wl_shm_format {
      |      ^
Comment 1 Larry the Git Cow gentoo-dev 2024-02-06 19:21:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/kde.git/commit/?id=39158eeb4a3da280f458d9c14895295cca436c1f

commit 39158eeb4a3da280f458d9c14895295cca436c1f
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-02-06 19:17:01 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-02-06 19:19:37 +0000

    kde-plasma/kwayland-integration: filter-lto (Qt5-compat plugin)
    
    Also effectively no more development.
    
    Bug: https://bugs.gentoo.org/921430
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../kwayland-integration/kwayland-integration-6.0.49.9999.ebuild   | 7 ++++++-
 kde-plasma/kwayland-integration/kwayland-integration-9999.ebuild   | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)
Comment 2 Larry the Git Cow gentoo-dev 2024-02-06 19:36:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=394c9829f7e85bfe2d48157c88ee64d2bfeb874d

commit 394c9829f7e85bfe2d48157c88ee64d2bfeb874d
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-02-06 19:17:01 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-02-06 19:36:23 +0000

    kde-plasma/kwayland-integration: filter-lto (Qt5-compat plugin)
    
    Also effectively no more development.
    
    Closes: https://bugs.gentoo.org/921430
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../kwayland-integration/kwayland-integration-5.27.10.ebuild       | 3 ++-
 kde-plasma/kwayland-integration/kwayland-integration-5.93.0.ebuild | 7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)