https://bugs.kde.org/show_bug.cgi?id=442695
Bug ID: 442695 Summary: KWin fails to load necessary QT plugin when built with LTO Product: kwin Version: 5.22.4 Platform: Compiled Sources OS: Linux Status: REPORTED Severity: major Priority: NOR Component: general Assignee: kwin-bugs-n...@kde.org Reporter: satt...@pm.me Target Milestone: --- SUMMARY When KWin is compiled with Clang and Full LTO (I don't know if ThinLTO or GCC doesn't exhibit this issue, I didn't test it), kwin_wayland or any other attemps to start Plasma will fail with an error message something like this: "qt.qta.plugin: could not load the Qt platform plugin "wayland-org.kde.kwin.qpa" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. reinstalling the application may fix this problem" This doesn't happen on the exact same machine, with the exact same software versions, if KWin is built without LTO (other optimizations such as -O3 or -march doesn't seem to affect this issue at all), it works perfectly. STEPS TO REPRODUCE 1. Compile KWin with Clang and -flto=full 2. Attempt to start it 3. Watch as it fails to load the required QT Plugin OBSERVED RESULT Error message inserted above when starting KWin EXPECTED RESULT Kwin starting without errors SOFTWARE/OS VERSIONS Linux/KDE Plasma: Arch Linux / KDE 5.22.5 (available in About System) KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.86.0 Qt Version: 5.15.2 ADDITIONAL INFORMATION I selected 5.22.4 on the Component section because there is no option for 5.22.5 -- You are receiving this mail because: You are watching all bug changes.