linuxdeepin / developer-center

Deepin developer center, provide developer wiki and community forum.
450 stars 73 forks source link

[DDE 23 Arch Linux port] dde-file-manager编译失败 #5158

Open Aleksanaa opened 1 year ago

Aleksanaa commented 1 year ago

SUMMARY | 问题概要

/usr/bin/c++ -DAPPSHAREDIR=\"/usr/share/dde-file-manager\" -DCOMPILE_ON_V23 -DDEEPIN_DDE -DDSG_DATA_DIR=\"/usr/share/dsg\" -DENABLE_TESTING -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MESSAGELOGCONTEXT -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -DQ_HOST_NAME=\"x86_64\" -DQ_HOST_X86_64 -DQ_OS_ARCH -DQ_OS_DEEPIN_COMMUNITY -DQ_OS_DEEPIN_VERSION=\"23\" -DQ_OS_VERSION=\"rolling\" -DTHUMBNAIL_TOOL_DIR=\"/usr/lib/dde-file-manager/tools\" -Ddfm_base_EXPORTS -I/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base -I/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/include -I/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/include -I/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/.. -I/usr/include/qt/QtWidgets/5.15.10 -I/usr/include/qt/QtWidgets/5.15.10/QtWidgets -I/usr/include/qt/QtGui/5.15.10 -I/usr/include/qt/QtGui/5.15.10/QtGui -I/usr/include/qt/QtCore/5.15.10 -I/usr/include/qt/QtCore/5.15.10/QtCore -isystem /usr/include/qt -isystem /usr/include/qt/QtCore -isystem /usr/lib/qt/mkspecs/linux-g++ -isystem /usr/include/qt/QtWidgets -isystem /usr/include/qt/QtGui -isystem /usr/include/qt/QtConcurrent -isystem /usr/include/qt/QtDBus -isystem /usr/include/qt/QtSql -isystem /usr/include/qt/QtX11Extras -isystem /usr/include/dfm-burn -isystem /usr/include/libisoburn -isystem /usr/include/dfm-mount -isystem /usr/include/udisks2 -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -isystem /usr/include/sysprof-4 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/libsecret-1 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/tss2 -isystem /usr/include/dfm-io -isystem /usr/include/qt/QGSettings -isystem /usr/include/KF5/KCodecs -isystem /usr/include/KF5 -isystem /usr/include/dtk5/DWidget -isystem /usr/include/qt/QtNetwork -isystem /usr/include/qt/QtPrintSupport -isystem /usr/include/dtk5/DGui -isystem /usr/include/dtk5/DCore -isystem /usr/include/qt/QtXml -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -Wall -Wl,--as-need -fPIE -fstack-protector-all -Werror=return-type -Ofast -O3 -DNDEBUG -std=gnu++17 -fPIC -fPIC -DQT_CORE_LIB -pthread -MD -MT src/dfm-base/CMakeFiles/dfm-base.dir/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp.o -MF src/dfm-base/CMakeFiles/dfm-base.dir/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp.o.d -o src/dfm-base/CMakeFiles/dfm-base.dir/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp.o -c /home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp
In file included from /usr/include/c++/13.2.1/bits/move.h:37,
                 from /usr/include/c++/13.2.1/bits/new_allocator.h:36,
                 from /usr/include/c++/13.2.1/x86_64-pc-linux-gnu/bits/c++allocator.h:33,
                 from /usr/include/c++/13.2.1/bits/allocator.h:46,
                 from /usr/include/c++/13.2.1/memory:65,
                 from /home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:9:
/usr/include/c++/13.2.1/type_traits: In instantiation of ‘struct std::is_trivial<QUrl>’:
/usr/include/qt/QtCore/qtypeinfo.h:66:32:   required from ‘constexpr bool qIsTrivial() [with T = QUrl]’
/usr/include/qt/QtCore/qtypeinfo.h:84:35:   required from ‘class QTypeInfo<QUrl>’
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/c++/13.2.1/type_traits:787:38: error: invalid use of incomplete type ‘class QUrl’ [-fpermissive]
  787 |     : public integral_constant<bool, __is_trivial(_Tp)>
      |                                      ^~~~~~~~~~~~~~~~~
In file included from /usr/include/qt/QtCore/qobject.h:54,
                 from /usr/include/qt/QtCore/QObject:1,
                 from /home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/../../../../include/dfm-base/interfaces/abstractjobhandler.h:10,
                 from /home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:10:
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.2.1/type_traits:789:52: error: static assertion failed: template argument must be a complete class or an unbounded array
  789 |       static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.2.1/type_traits:789:52: note: ‘std::__is_complete_or_unbounded<__type_identity<QUrl> >((std::__type_identity<QUrl>(), std::__type_identity<QUrl>()))’ evaluates to false
In file included from /usr/include/qt/QtCore/qglobal.h:1301,
                 from /usr/include/qt/QtCore/qnamespace.h:43,
                 from /usr/include/qt/QtCore/qobjectdefs.h:48,
                 from /usr/include/qt/QtCore/qobject.h:46:
/usr/include/qt/QtCore/qtypeinfo.h: In instantiation of ‘constexpr bool qIsTrivial() [with T = QUrl]’:
/usr/include/qt/QtCore/qtypeinfo.h:84:35:   required from ‘class QTypeInfo<QUrl>’
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qtypeinfo.h:66:32: error: ‘value’ is not a member of ‘std::is_trivial<QUrl>’
   66 |     return std::is_trivial<T>::value;
      |                                ^~~~~
/usr/include/qt/QtCore/qtypeinfo.h: In instantiation of ‘class QTypeInfo<QUrl>’:
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qtypeinfo.h:84:35:   in ‘constexpr’ expansion of ‘qIsTrivial<QUrl>()’
/usr/include/qt/QtCore/qtypeinfo.h:80:10: error: ‘constexpr’ call flows off the end of the function
   80 |     enum {
      |          ^
/usr/include/qt/QtCore/qtypeinfo.h:80:10: error: enumerator value for ‘isComplex’ is not an integer constant
/usr/include/c++/13.2.1/type_traits: In instantiation of ‘struct std::is_trivially_copyable<QUrl>’:
/usr/include/qt/QtCore/qtypeinfo.h:56:43:   required from ‘constexpr bool qIsRelocatable() [with T = QUrl]’
/usr/include/qt/QtCore/qtypeinfo.h:86:42:   required from ‘class QTypeInfo<QUrl>’
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/c++/13.2.1/type_traits:796:38: error: invalid use of incomplete type ‘class QUrl’ [-fpermissive]
  796 |     : public integral_constant<bool, __is_trivially_copyable(_Tp)>
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.2.1/type_traits:798:52: error: static assertion failed: template argument must be a complete class or an unbounded array
  798 |       static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.2.1/type_traits:798:52: note: ‘std::__is_complete_or_unbounded<__type_identity<QUrl> >((std::__type_identity<QUrl>(), std::__type_identity<QUrl>()))’ evaluates to false
/usr/include/qt/QtCore/qtypeinfo.h: In instantiation of ‘constexpr bool qIsRelocatable() [with T = QUrl]’:
/usr/include/qt/QtCore/qtypeinfo.h:86:42:   required from ‘class QTypeInfo<QUrl>’
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qtypeinfo.h:56:43: error: ‘value’ is not a member of ‘std::is_trivially_copyable<QUrl>’
   56 |     return std::is_trivially_copyable<T>::value && std::is_trivially_destructible<T>::value;
      |                                           ^~~~~
/usr/include/c++/13.2.1/type_traits: In instantiation of ‘struct std::is_trivially_destructible<QUrl>’:
/usr/include/qt/QtCore/qtypeinfo.h:56:87:   required from ‘constexpr bool qIsRelocatable() [with T = QUrl]’
/usr/include/qt/QtCore/qtypeinfo.h:86:42:   required from ‘class QTypeInfo<QUrl>’
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/c++/13.2.1/type_traits:1326:37: error: invalid use of incomplete type ‘class QUrl’ [-fpermissive]
 1326 |                     __bool_constant<__has_trivial_destructor(_Tp)>>::type
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.2.1/type_traits:1328:52: error: static assertion failed: template argument must be a complete class or an unbounded array
 1328 |       static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.2.1/type_traits:1328:52: note: ‘std::__is_complete_or_unbounded<__type_identity<QUrl> >((std::__type_identity<QUrl>(), std::__type_identity<QUrl>()))’ evaluates to false
/usr/include/qt/QtCore/qtypeinfo.h: In instantiation of ‘constexpr bool qIsRelocatable() [with T = QUrl]’:
/usr/include/qt/QtCore/qtypeinfo.h:86:42:   required from ‘class QTypeInfo<QUrl>’
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qtypeinfo.h:56:87: error: ‘value’ is not a member of ‘std::is_trivially_destructible<QUrl>’
   56 |     return std::is_trivially_copyable<T>::value && std::is_trivially_destructible<T>::value;
      |                                                                                       ^~~~~
/usr/include/qt/QtCore/qtypeinfo.h: In instantiation of ‘class QTypeInfo<QUrl>’:
/usr/include/qt/QtCore/qlist.h:489:23:   required from ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qtypeinfo.h:86:42:   in ‘constexpr’ expansion of ‘qIsRelocatable<QUrl>()’
/usr/include/qt/QtCore/qtypeinfo.h:80:10: error: ‘constexpr’ call flows off the end of the function
   80 |     enum {
      |          ^
/usr/include/qt/QtCore/qtypeinfo.h:80:10: error: enumerator value for ‘isRelocatable’ is not an integer constant
/usr/include/qt/QtCore/qtypeinfo.h:87:20: error: invalid application of ‘sizeof’ to incomplete type ‘QUrl’
   87 |         isLarge = (sizeof(T)>sizeof(void*)),
      |                    ^~~~~~~~~
/usr/include/qt/QtCore/qtypeinfo.h:89:18: error: invalid application of ‘sizeof’ to incomplete type ‘QUrl’
   89 |         sizeOf = sizeof(T)
      |                  ^~~~~~~~~
In file included from /usr/include/qt/QtCore/qobject.h:49:
/usr/include/qt/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(Node*, Node*, Node*) [with T = QUrl]’:
/usr/include/qt/QtCore/qlist.h:860:13:   required from ‘QList<T>::QList(const QList<T>&) [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qlist.h:492:30: error: invalid use of incomplete type ‘class QUrl’
  492 |                 current->v = new T(*reinterpret_cast<T*>(src->v));
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qlist.h:505:17: error: invalid use of incomplete type ‘class QUrl’
  505 |                 new (current) T(*reinterpret_cast<T*>(src));
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qlist.h:511:51: error: invalid use of incomplete type ‘class QUrl’
  511 |                 (reinterpret_cast<T*>(current))->~T();
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_destruct(Node*, Node*) [with T = QUrl]’:
/usr/include/qt/QtCore/qlist.h:921:18:   required from ‘void QList<T>::dealloc(QListData::Data*) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:874:9:   required from ‘QList<T>::~QList() [with T = QUrl]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:438:42:   required from here
/usr/include/qt/QtCore/qlist.h:526:61: error: invalid use of incomplete type ‘class QUrl’
  526 |         while (from != to) --to, reinterpret_cast<T*>(to)->~T();
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_construct(Node*, const T&) [with T = QUrl]’:
/usr/include/qt/QtCore/qlist.h:625:13:   required from ‘void QList<T>::append(const T&) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:377:47:   required from ‘void QList<T>::push_back(const T&) [with T = QUrl]’
/usr/include/qt/QtCore/qmetatype.h:1014:73:   required from ‘static void QtMetaTypePrivate::ContainerCapabilitiesImpl<Container, decltype (declval<Container>().push_back(declval<typename Container::value_type>()))>::appendImpl(const void*, const void*) [with Container = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1164:9:   required from ‘QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T*) [with T = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1237:16:   required from ‘QtMetaTypePrivate::QSequentialIterableImpl QtMetaTypePrivate::QSequentialIterableConvertFunctor<From>::operator()(const From&) const [with From = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:406:36:   [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/qt/QtCore/qmetatype.h:1874:76:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QList<QUrl>; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QList<QUrl>, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:2254:1:   required from ‘static int QMetaTypeId<QList<T> >::qt_metatype_id() [with T = QUrl]’
/usr/include/qt/QtCore/qmetatype.h:1776:96:   required from ‘static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1917:43:   required from ‘constexpr int qMetaTypeId() [with T = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1923:26:   required from ‘constexpr int qRegisterMetaType() [with T = QList<QUrl>]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:500:82:   required from here
/usr/include/qt/QtCore/qlist.h:465:65: error: invalid use of incomplete type ‘class QUrl’
  465 |     if (QTypeInfo<T>::isLarge || QTypeInfo<T>::isStatic) n->v = new T(t);
      |                                                                 ^~~~~~~~
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qlist.h:466:39: error: invalid use of incomplete type ‘class QUrl’
  466 |     else if (QTypeInfo<T>::isComplex) new (n) T(t);
      |                                       ^~~~~~~~~~~~
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/qt/QtCore/qlist.h:474:53: error: invalid application of ‘sizeof’ to incomplete type ‘QUrl’
  474 |     else ::memcpy(n, static_cast<const void *>(&t), sizeof(T));
      |                                                     ^~~~~~~~~
/usr/include/qt/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_destruct(Node*) [with T = QUrl]’:
/usr/include/qt/QtCore/qlist.h:645:30:   required from ‘void QList<T>::append(const T&) [with T = QUrl]’
/usr/include/qt/QtCore/qlist.h:377:47:   required from ‘void QList<T>::push_back(const T&) [with T = QUrl]’
/usr/include/qt/QtCore/qmetatype.h:1014:73:   required from ‘static void QtMetaTypePrivate::ContainerCapabilitiesImpl<Container, decltype (declval<Container>().push_back(declval<typename Container::value_type>()))>::appendImpl(const void*, const void*) [with Container = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1164:9:   required from ‘QtMetaTypePrivate::QSequentialIterableImpl::QSequentialIterableImpl(const T*) [with T = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1237:16:   required from ‘QtMetaTypePrivate::QSequentialIterableImpl QtMetaTypePrivate::QSequentialIterableConvertFunctor<From>::operator()(const From&) const [with From = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:406:36:   [ skipping 3 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/qt/QtCore/qmetatype.h:1874:76:   required from ‘int qRegisterNormalizedMetaType(const QByteArray&, T*, typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType) [with T = QList<QUrl>; typename QtPrivate::MetaTypeDefinedHelper<T, (QMetaTypeId2<T>::Defined && (! QMetaTypeId2<T>::IsBuiltIn))>::DefinedType = QtPrivate::MetaTypeDefinedHelper<QList<QUrl>, true>::DefinedType]’
/usr/include/qt/QtCore/qmetatype.h:2254:1:   required from ‘static int QMetaTypeId<QList<T> >::qt_metatype_id() [with T = QUrl]’
/usr/include/qt/QtCore/qmetatype.h:1776:96:   required from ‘static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1917:43:   required from ‘constexpr int qMetaTypeId() [with T = QList<QUrl>]’
/usr/include/qt/QtCore/qmetatype.h:1923:26:   required from ‘constexpr int qRegisterMetaType() [with T = QList<QUrl>]’
/home/aleksana/works/dde23/deepin-file-manager/src/dde-file-manager-6.0.27/src/dfm-base/dfm-base_autogen/FQYBQR3OD7/moc_abstractjobhandler.cpp:500:82:   required from here
/usr/include/qt/QtCore/qlist.h:482:65: error: invalid use of incomplete type ‘class QUrl’
  482 |     else if (QTypeInfo<T>::isComplex) reinterpret_cast<T*>(n)->~T();
      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~^
/usr/include/qt/QtCore/qmetatype.h:2089:1: note: forward declaration of ‘class QUrl’
 2089 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[31/502] Building CXX object src/dfm-base/CMakeFile...se_autogen/GIQLNY3SKZ/moc_filemanagerwindow_p.cpp.o
ninja: build stopped: subcommand failed.

SOFTWARE/OS VERSIONS | 软件/系统版本信息

deepin-file-manager: 6.0.27
qt5-base: 5.15.10+kde+r147-1 (可以确定不是qt6)
dtkcore,dtkgui,dtkwidget: 5.6.14-1

PRE-REQUIREMENT | 预置条件

No response

STEPS TO REPRODUCE | 复现步骤

使用测试构建源:

[home_Aleksana_deepin-build23_Base_Arch_ArchCommunity_x64]
SigLevel = Never
Server = https://os-repo-obs.ewe.moe/home:/Aleksana:/deepin-build23/Base_Arch_ArchCommunity_x64/x86_64/

(注意:目前会损坏deepin桌面。)

PKGBUILD

# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>

pkgname=deepin-file-manager
pkgver=6.0.27
pkgrel=1
epoch=1
pkgdesc='Deepin File Manager'
arch=('x86_64')
url="https://github.com/linuxdeepin/dde-file-manager"
license=('GPL3')
depends=('deepin-qt5integration' 'deepin-qt-dbus-factory' 'dtkcore' 'dtkgui' 'dtkwidget'
         'deepin-anything' 'deepin-util-dfm' 'disomaster' 'qt5-base' 'qt5-svg' 'qt5-x11extras'
         'gio-qt' 'docparser' 'file' 'libsecret' 'zlib' 'dconf' 'openssl' 'glib2'
         'udisks2-qt5' 'libxcb' 'libqtxdg' 'libx11' 'qt5-multimedia' 'cryptsetup'
         'libmediainfo' 'lucene++' 'avfs' 'polkit-qt5' 'poppler' 'ffmpegthumbnailer'
         'jemalloc' 'kcodecs' 'startdde' 'htmlcxx' 'libgsf' 'mimetic' 'boost-libs' 'taglib')
makedepends=('boost' 'cmake' 'ninja' 'qt5-tools' 'deepin-dock' 'deepin-movie' 'deepin-gettext-tools')
optdepends=('deepin-manual: for help menual'
            'deepin-shortcut-viewer: for shortcut display'
            'deepin-screensaver: for screensaver chooser'
            'deepin-movie: for video preview'
            'deepin-terminal: for opening in terminal'
            'deepin-compressor: for compress/decompress')
groups=('deepin')
provides=('deepin-desktop')
conflicts=('deepin-desktop')
replaces=('deepin-desktop')
source=("https://github.com/linuxdeepin/dde-file-manager/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('SKIP')

build() {
  cd dde-file-manager-$pkgver
  cmake . -GNinja -DCMAKE_INSTALL_PREFIX=/usr
  ninja
}

package() {
  cd dde-file-manager-$pkgver
  DESTDIR=$pkgdir ninja install
}

OBSERVED RESULT | 观察到的结果

No response

EXPECTED RESULT | 期望的结果

No response

ADDITIONAL INFORMATION | 额外补充

No response

Aleksanaa commented 1 year ago

应该是生成的头文件混淆了CMakeLists中的GLOB,导致ninja install阶段重复部分编译,出现预期以外的行为,请检查CMakeLists。 目前通过指定src以外的构建路径解决。