https://bugs.kde.org/show_bug.cgi?id=477285
Bug ID: 477285 Summary: Discover fails to build with kdesrc-build in KDE neon 5.27 Classification: Applications Product: Discover Version: master Platform: Neon OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: discover Assignee: plasma-b...@kde.org Reporter: j...@gmx.es CC: aleix...@kde.org Target Milestone: --- SUMMARY *** I'm trying to follow the steps mentioned in https://community.kde.org/Get_Involved/development/Build_software_with_kdesrc-build#Plasma_Desktop and getting the following error: ``` # kdesrc-build running: 'ninja' '-j' '4' # from directory: /home/d3fj/kde/build/discover [0/2] Re-checking globbed directories... [1/82] Generating ts... [2/82] Generating mo... [3/82] Automatic RCC for pkui.qrc [4/82] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/packagekit-backend.dir/packagekit-backend_autogen/EWIEGA46WW/qrc_pkui.cpp.o [5/82] Automatic MOC for target FlatpakNotifier [6/82] Linking CXX shared module bin/packagekit-backend.so [7/82] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/DiscoverPackageKitNotifier.dir/libdiscover_backend_debug.cpp.o [8/82] Building CXX object libdiscover/backends/FlatpakBackend/CMakeFiles/FlatpakNotifier.dir/FlatpakNotifier_autogen/mocs_compilation.cpp.o [9/82] Building CXX object libdiscover/backends/FlatpakBackend/CMakeFiles/FlatpakNotifier.dir/FlatpakNotifier.cpp.o [10/82] Building CXX object libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/snap-backend_autogen/mocs_compilation.cpp.o FAILED: libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/snap-backend_autogen/mocs_compilation.cpp.o /usr/bin/c++ -DKCOREADDONS_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_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_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DSNAP_CHANNELS -DSNAP_COMMON_IDS -DSNAP_FIND_COMMON_ID -DSNAP_MARKDOWN -DSNAP_MEDIA -DSNAP_PUBLISHER -DTRANSLATION_DOMAIN=\"libdiscover\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dsnap_backend_EXPORTS -I/home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend -I/home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend -I/home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend/snap-backend_autogen/include -I/home/d3fj/kde/build/discover/libdiscover -I/home/d3fj/kde/src/discover/libdiscover -isystem /usr/include/x86_64-linux-gnu/qt6/QtGui -isystem /usr/include/x86_64-linux-gnu/qt6 -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt6/QtConcurrent -isystem /home/d3fj/kde/usr/include/KF6/KCoreAddons -isystem /home/d3fj/kde/usr/include/KF6/KConfig -isystem /home/d3fj/kde/usr/include/KF6/KConfigCore -isystem /usr/include/x86_64-linux-gnu/qt6/QtQml -isystem /usr/include/x86_64-linux-gnu/qt6/QtQmlIntegration -isystem /usr/include/x86_64-linux-gnu/qt6/QtNetwork -isystem /home/d3fj/kde/usr/include/KF6/KI18n -isystem /usr/include/snapd-qt -pipe -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 -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -O2 -g -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/snap-backend_autogen/mocs_compilation.cpp.o -MF libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/snap-backend_autogen/mocs_compilation.cpp.o.d -o libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/snap-backend_autogen/mocs_compilation.cpp.o -c /home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend/snap-backend_autogen/mocs_compilation.cpp In file included from /home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend/snap-backend_autogen/mocs_compilation.cpp:3: /home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend/snap-backend_autogen/EWIEGA46WW/moc_SnapResource.cpp: In static member function ‘static void SnapResource::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)’: /home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend/snap-backend_autogen/EWIEGA46WW/moc_SnapResource.cpp:199:60: error: ‘class SnapResource’ has no member named ‘m_objects’; did you mean ‘m_topObjects’? 199 | case 0: *reinterpret_cast< QStringList*>(_v) = _t->m_objects; break; | ^~~~~~~~~ | m_topObjects [11/82] Linking CXX shared module bin/FlatpakNotifier.so [12/82] Building CXX object libdiscover/backends/PackageKitBackend/CMakeFiles/DiscoverPackageKitNotifier.dir/PackageKitNotifier.cpp.o /home/d3fj/kde/src/discover/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp: In member function ‘void PackageKitNotifier::checkOfflineUpdates()’: /home/d3fj/kde/src/discover/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp:107:55: warning: ‘KConfigGroup::KConfigGroup(KConfigBase*, const char*)’ is deprecated: Since 5.240. Use QString overload [-Wdeprecated-declarations] 107 | KConfigGroup group(&file, PK_OFFLINE_RESULTS_GROUP); | ^ In file included from /home/d3fj/kde/usr/include/KF6/KConfigCore/KConfigGroup:1, from /home/d3fj/kde/src/discover/libdiscover/backends/PackageKitBackend/PackageKitNotifier.cpp:10: /home/d3fj/kde/usr/include/KF6/KConfigCore/kconfiggroup.h:65:5: note: declared here 65 | KConfigGroup(KConfigBase *master, const char *group); | ^~~~~~~~~~~~ [13/82] Building CXX object libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/SnapResource.cpp.o FAILED: libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/SnapResource.cpp.o /usr/bin/c++ -DKCOREADDONS_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_GUI_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_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_STRICT_ITERATORS -DQT_USE_QSTRINGBUILDER -DSNAP_CHANNELS -DSNAP_COMMON_IDS -DSNAP_FIND_COMMON_ID -DSNAP_MARKDOWN -DSNAP_MEDIA -DSNAP_PUBLISHER -DTRANSLATION_DOMAIN=\"libdiscover\" -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -Dsnap_backend_EXPORTS -I/home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend -I/home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend -I/home/d3fj/kde/build/discover/libdiscover/backends/SnapBackend/snap-backend_autogen/include -I/home/d3fj/kde/build/discover/libdiscover -I/home/d3fj/kde/src/discover/libdiscover -isystem /usr/include/x86_64-linux-gnu/qt6/QtGui -isystem /usr/include/x86_64-linux-gnu/qt6 -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore -isystem /usr/lib/x86_64-linux-gnu/qt6/mkspecs/linux-g++ -isystem /usr/include/x86_64-linux-gnu/qt6/QtConcurrent -isystem /home/d3fj/kde/usr/include/KF6/KCoreAddons -isystem /home/d3fj/kde/usr/include/KF6/KConfig -isystem /home/d3fj/kde/usr/include/KF6/KConfigCore -isystem /usr/include/x86_64-linux-gnu/qt6/QtQml -isystem /usr/include/x86_64-linux-gnu/qt6/QtQmlIntegration -isystem /usr/include/x86_64-linux-gnu/qt6/QtNetwork -isystem /home/d3fj/kde/usr/include/KF6/KI18n -isystem /usr/include/snapd-qt -pipe -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 -pedantic -Wzero-as-null-pointer-constant -Wmissing-include-dirs -fdiagnostics-color=always -O2 -g -DNDEBUG -std=c++17 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -MD -MT libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/SnapResource.cpp.o -MF libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/SnapResource.cpp.o.d -o libdiscover/backends/SnapBackend/CMakeFiles/snap-backend.dir/SnapResource.cpp.o -c /home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend/SnapResource.cpp In file included from /home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend/SnapResource.cpp:20: /home/d3fj/kde/src/discover/libdiscover/appstream/AppStreamUtils.h:43:34: error: ‘ComponentBox’ in namespace ‘AppStream’ does not name a type; did you mean ‘Component’? 43 | DISCOVERCOMMON_EXPORT AppStream::ComponentBox componentsByCategories(AppStream::Pool *pool, Category *cat, AppStream::Bundle::Kind kind); | ^~~~~~~~~~~~ | Component /home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend/SnapResource.cpp: In constructor ‘PlugsModel::PlugsModel(SnapResource*, SnapBackend*, QObject*)’: /home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend/SnapResource.cpp:361:62: warning: ‘int QSnapdPlug::connectionCount() const’ is deprecated: Use connectedSlotCount() [-Wdeprecated-declarations] 361 | item->setCheckState(plug->connectionCount() > 0 ? Qt::Checked : Qt::Unchecked); | ~~~~~~~~~~~~~~~~~~~~~^~ In file included from /usr/include/snapd-qt/Snapd/Plug:1, from /usr/include/snapd-qt/Snapd/interface.h:15, from /usr/include/snapd-qt/Snapd/Interface:1, from /usr/include/snapd-qt/Snapd/client.h:21, from /usr/include/snapd-qt/Snapd/Client:1, from /home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend/SnapBackend.h:12, from /home/d3fj/kde/src/discover/libdiscover/backends/SnapBackend/SnapResource.cpp:8: /usr/include/snapd-qt/Snapd/plug.h:39:57: note: declared here 39 | Q_DECL_DEPRECATED_X("Use connectedSlotCount()") int connectionCount () const; | ^~~~~~~~~~~~~~~ ninja: build stopped: subcommand failed. ``` *** STEPS TO REPRODUCE 1. Open Konsole in KDE neon 5.27 2. Follow the steps to create "develpment environment" mentioned here https://community.kde.org/Get_Involved/development/Set_up_a_development_environment 3. Follow the steps to "build software with kdesrc-build" mentioned here https://community.kde.org/Get_Involved/development/Build_software_with_kdesrc-build 4. After building kcalc succesfully and fixing various dependencies with 'kdesrc-build workspace', the process stops in the 'Discover' application OBSERVED RESULT ```Building discover from kf6-workspace-modules (109/142) Fetching remote changes to discover Merging discover changes from branch master No changes to discover source code, but proceeding to build anyway. Compiling... failed (after 4 seconds) Note: - 1 - compile warnings discover didn't build, stopping here.``` EXPECTED RESULT Building discover from kf6-workspace-modules (109/142) Fetching remote changes to discover Merging discover changes from branch master No changes to discover source code, but proceeding to build anyway. Compiling... succeeded (after 0 seconds) Installing.. succeeded (after 0 seconds) SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: Kde Neon 5.27 (available in About System) KDE Plasma Version: 5.27.9 KDE Frameworks Version: 5.111.0 Qt Version: 5.15.11 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.