Bug 494281 - Fails with Qt 6.8.0 src/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml.cpp:477:103: error: calling a private constructor of class 'QString'
Summary: Fails with Qt 6.8.0 src/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml...
Status: RESOLVED FIXED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 24.08.1
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-08 08:56 UTC by Mike Lothian
Modified: 2024-11-04 12:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Full build log (462.27 KB, text/plain)
2024-10-08 08:57 UTC, Mike Lothian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lothian 2024-10-08 08:56:15 UTC
When recompiling KDE with Qt 6.8.0 I'm seeing the following error:

FAILED: src/CMakeFiles/spectacle.dir/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml.cpp.o
/usr/lib/llvm/19/bin/clang++ -DKCOREADDONS_LIB -DKF_DEPRECATED_WARNINGS_SINCE=0x60000 -DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x5f000 -DKGUIADDONS_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x70000 -DQT_DI
RECATED_BEFORE=0x60500 -DQT_GUI_LIB -DQT_MULTIMEDIA_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_KEYWORDS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_
FROM_STRING -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLINTEGRATION_LIB -DQT_QMLMETA_LIB -DQT_QMLMODELS_LIB -DQT_QMLWORKERSCRIPT_LIB -DQT_QML_LIB -DQT_QUICKCONTROLS2_LIB -DQT_QUICKTEMPLATES2_LIB -DQT_QUICK_LIB -DQT_STRICT_ITERATORS -DQT_USE_
ILDER -DQT_WAYLANDCLIENT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1_build/src -I/var/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1/
r/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1_build/src/spectacle_autogen/include -I/var/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1/src/src -isystem /usr/include/opencv4 -isystem /usr/include/qt6/QtQml/6.8.
m /usr/include/qt6/QtQml/6.8.0/QtQml -isystem /usr/include/qt6/QtCore/6.8.0 -isystem /usr/include/qt6/QtCore/6.8.0/QtCore -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-clang -isystem /usr/incl
tQml -isystem /usr/include/qt6/QtQmlIntegration -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtGui/6.8.0 -isystem /usr/include/qt6/QtGui/6.8.0/QtGui -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtConcurrent -isyst
nclude/qt6/QtDBus -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtQuick -isystem /usr/include/qt6/QtQmlMeta -isystem /usr/include/qt6/QtQmlModels -isystem /usr/include/qt6/QtQmlWorkerScr
tem /usr/include/qt6/QtOpenGL -isystem /usr/include/qt6/QtQuickControls2 -isystem /usr/include/qt6/QtQuickTemplates2 -isystem /usr/include/qt6/QtWaylandClient -isystem /usr/include/KF6/KCoreAddons -isystem /usr/include/KF6/KDBusAddons -isystem
lude/KF6/KWidgetsAddons -isystem /usr/include/KF6/KNotifications -isystem /usr/include/KF6/KConfig -isystem /usr/include/KF6/KConfigCore -isystem /usr/include/KF6/KI18n -isystem /usr/include/KF6/KIOWidgets -isystem /usr/include/KF6/KIOGui -isy
/include/KF6/KIOCore -isystem /usr/include/KF6/KIO -isystem /usr/include/KF6/KService -isystem /usr/include/KF6/KJobWidgets -isystem /usr/include/KF6/Solid -isystem /usr/include/KF6/KCompletion -isystem /usr/include/KF6/KWindowSystem -isystem
ude/KF6/KGlobalAccel -isystem /usr/include/KF6/KXmlGui -isystem /usr/include/qt6/QtXml -isystem /usr/include/KF6/KConfigWidgets -isystem /usr/include/KF6/KConfigGui -isystem /usr/include/KF6/KColorScheme -isystem /usr/include/KF6/KGuiAddons -i
sr/include/KF6 -isystem /usr/include/KF6/Kirigami/Platform -isystem /usr/include/KF6/KStatusNotifierItem -isystem /usr/include/KF6/PrisonScanner -isystem /usr/include/KF6/Prison -isystem /usr/include/qt6/QtMultimedia -isystem /usr/include/pipe
-isystem /usr/include/spa-0.2 -isystem /usr/include/KPipeWire  -DQT_NO_DEBUG -O3 -pipe -flto=thin -march=native -fno-operator-names -fno-exceptions -Wno-gnu-zero-variadic-macro-arguments -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-se
no-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Werror=undef -Wvla -Wdate-time -pedantic -Wzero-as-null-pointer-constant -fdiagnostics-color=always -std=c++20 -fvisibility=hid
ibility-inlines-hidden -fexceptions -fPIC -Wno-gnu-statement-expression-from-macro-expansion -Wno-zero-as-null-pointer-constant -Wno-c99-extensions -Wno-cast-align -MD -MT src/CMakeFiles/spectacle.dir/.rcc/qmlcache/spectacle_Gui/LocationCopied
ml.cpp.o -MF src/CMakeFiles/spectacle.dir/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml.cpp.o.d -o src/CMakeFiles/spectacle.dir/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml.cpp.o -c /var/tmp/portage/kde-apps/spectacle-24.08.1/
tacle-24.08.1_build/src/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml.cpp
/var/tmp/portage/kde-apps/spectacle-24.08.1/work/spectacle-24.08.1_build/src/.rcc/qmlcache/spectacle_Gui/LocationCopiedMessage_qml.cpp:477:103: error: calling a private constructor of class 'QString'
  477 | aotContext->initGetObjectLookup(10, r2_0, QQmlPrivate::compositeMetaType(aotContext->compilationUnit, "AnimatedLoader"));
      |                                                                                                       ^
/usr/include/qt6/QtCore/qstring.h:1014:5: note: declared private here
 1014 |     QString(const char *ch);
      |     ^
1 error generated.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Gentoo
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
Comment 1 Mike Lothian 2024-10-08 08:57:25 UTC
Created attachment 174527 [details]
Full build log
Comment 2 Nicolas Fella 2024-10-08 13:56:02 UTC
This is a Qt bug, see https://bugreports.qt.io/browse/QTBUG-129797
Comment 4 Harald Sitter 2024-11-04 12:18:56 UTC
Git commit 4912338e39d0c835e7a4f2d129c20b9ca37c0f5f by Harald Sitter.
Committed on 04/11/2024 at 11:38.
Pushed by sitter into branch 'release/24.08'.

work around bugged qmlcachegen


(cherry picked from commit 7f0a1cc0e8afb1589fb6f37e17a80c824f17a52f)

Co-authored-by: Harald Sitter <sitter@kde.org>

M  +6    -0    CMakeLists.txt

https://invent.kde.org/graphics/spectacle/-/commit/4912338e39d0c835e7a4f2d129c20b9ca37c0f5f