Created attachment 801055 [details] buildlog kde-frameworks/kwayland-5.97.0 fails to compile with FLAGS=-flto=auto -Werror=lto-type-mismatch -Werror=odr -Werror=strict-aliasing
Created attachment 801058 [details] emerge --info
reproducible with 5.113.0
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=d7dd69cbfb6c6e49fcabe3feb4ad675601377d9c commit d7dd69cbfb6c6e49fcabe3feb4ad675601377d9c Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-02-06 19:14:45 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-02-06 19:19:37 +0000 kde-plasma/kwayland: filter-lto in SLOT 5 Bug: https://bugs.gentoo.org/866575 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-plasma/kwayland/kwayland-5.115.0.ebuild | 7 ++++++- kde-plasma/kwayland/kwayland-5.239.9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d82932bb4e5843a20789deded535f65b9cc1eb4 commit 9d82932bb4e5843a20789deded535f65b9cc1eb4 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2024-02-06 19:14:45 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2024-02-06 19:36:23 +0000 kde-plasma/kwayland: filter-lto in SLOT 5 Bug: https://bugs.gentoo.org/866575 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> kde-plasma/kwayland/kwayland-5.113.0.ebuild | 7 ++++++- kde-plasma/kwayland/kwayland-5.114.0.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-)
Please try and reproduce this with kde-plasma/kwayland:6 (that is currently 5.93.0 in ::gentoo) and update the upstream report.
I can confirm kde-plasma/kwayland-5.113.0 compiled fine with "-Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing".
(In reply to Pietro from comment #6) > I can confirm kde-plasma/kwayland-5.113.0 compiled fine with "-Werror=odr > -Werror=lto-type-mismatch -Werror=strict-aliasing". That one still has the filter. :6 had it dropped for testing. Unfortunately, it persists, so I'll add the filter to :6 too.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcb8ac495537ea0175c72594aad868576bdf926b commit bcb8ac495537ea0175c72594aad868576bdf926b Author: Sam James <sam@gentoo.org> AuthorDate: 2024-02-29 02:23:57 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-29 02:24:11 +0000 kde-plasma/kwayland: filter-LTO in SLOT 6 Still an issue upstream. Bug: https://bugs.gentoo.org/866575 Signed-off-by: Sam James <sam@gentoo.org> kde-plasma/kwayland/kwayland-6.0.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=9d29d0bf466b10fc8e2d539ff8edc8ea4aabaa3e commit 9d29d0bf466b10fc8e2d539ff8edc8ea4aabaa3e Author: Sam James <sam@gentoo.org> AuthorDate: 2024-02-29 02:26:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-29 02:26:42 +0000 kde-plasma/kwayland: filter-LTO in SLOT 6 Still an issue upstream. Bug: https://bugs.gentoo.org/866575 Signed-off-by: Sam James <sam@gentoo.org> kde-plasma/kwayland/kwayland-6.0.49.9999.ebuild | 7 ++++++- kde-plasma/kwayland/kwayland-9999.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-)
My vote would be to just close this unless/until there's action on the upstream bug.
+1 It's fixed in gentoo, and gentoo cannot really do anything about making it compatible with LTO. If/when upstream fixes the issues in the source code, the filter-lto can be removed from the ebuild. The best way to find that out is to be subscribed to the KDE bug report. Nothing left to do here.