Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebuild against qt 6.6.0 #6

Closed
wants to merge 1 commit into from

Conversation

UTsweetyfish
Copy link
Member

No description provided.

@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: UTsweetyfish

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@UTsweetyfish
Copy link
Member Author

ftbfs for qt 6.6

https://build.deepin.com/package/show/deepin:CI:topics:qt6/dtk6gui

[ 46%] Building CXX object src/CMakeFiles/dtk6gui.dir/util/dicontheme.cpp.o
cd /usr/src/packages/BUILD/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DDSG_DATA_DIR=\"/usr/share/dsg\" -DDSYSINFO_PREFIX=\"\" -DDTK_DISABLE_LIBXDG -DPREFIX=\"/usr\" -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_MESSAGELOGCONTEXT -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_XML_LIB -Ddtk6gui_EXPORTS -I/usr/src/packages/BUILD/obj-x86_64-linux-gnu/src -I/usr/src/packages/BUILD/src -I/usr/src/packages/BUILD/obj-x86_64-linux-gnu/src/dtk6gui_autogen/include -I/usr/src/packages/BUILD/include/util -I/usr/src/packages/BUILD/include/global -I/usr/src/packages/BUILD/include/kernel -I/usr/src/packages/BUILD/include/filedrag -I/usr/src/packages/BUILD/src/dbus -I/usr/src/packages/BUILD/src/private -I/usr/src/packages/BUILD/src/util/private -I/usr/src/packages/BUILD/include/DtkGui -I/usr/include/libraw -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/QtNetwork -isystem /usr/include/dtk6/DCore -isystem /usr/include/x86_64-linux-gnu/qt6/QtDBus -isystem /usr/include/x86_64-linux-gnu/qt6/QtXml -isystem /usr/include/x86_64-linux-gnu/qt6/QtGui/6.6.0 -isystem /usr/include/x86_64-linux-gnu/qt6/QtGui/6.6.0/QtGui -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore/6.6.0 -isystem /usr/include/x86_64-linux-gnu/qt6/QtCore/6.6.0/QtCore -isystem /usr/include/librsvg-2.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/libpng16 -isystem /usr/include/webp -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/freetype2 -isystem /usr/include/uuid -g -O2 -ffile-prefix-map=/usr/src/packages/BUILD=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wextra -fopenmp -Ofast -fPIC -fPIC -pthread -std=gnu++17 -MD -MT src/CMakeFiles/dtk6gui.dir/util/dicontheme.cpp.o -MF CMakeFiles/dtk6gui.dir/util/dicontheme.cpp.o.d -o CMakeFiles/dtk6gui.dir/util/dicontheme.cpp.o -c /usr/src/packages/BUILD/src/util/dicontheme.cpp
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp: In static member function 'static void Dtk::Gui::DWindowManagerHelper::setWmWindowTypes(QWindow*, WmWindowTypes)':
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:480:40: error: 'QXcbWindow' in namespace 'QNativeInterface::Private' does not name a type
  480 |     typedef QNativeInterface::Private::QXcbWindow  QXcbWindow_P;
      |                                        ^~~~~~~~~~
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:481:31: error: 'QXcbWindow_P' does not name a type
  481 |     if (auto w = dynamic_cast<QXcbWindow_P *>(window->handle())) {
      |                               ^~~~~~~~~~~~
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:481:44: error: expected '>' before '*' token
  481 |     if (auto w = dynamic_cast<QXcbWindow_P *>(window->handle())) {
      |                                            ^
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:481:44: error: expected '(' before '*' token
  481 |     if (auto w = dynamic_cast<QXcbWindow_P *>(window->handle())) {
      |                                            ^
      |                                            (
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:481:45: error: expected primary-expression before '>' token
  481 |     if (auto w = dynamic_cast<QXcbWindow_P *>(window->handle())) {
      |                                             ^
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:481:65: error: expected ')' before '{' token
  481 |     if (auto w = dynamic_cast<QXcbWindow_P *>(window->handle())) {
      |        ~                                                        ^~
      |                                                                 )
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:489:1: error: expected primary-expression before '}' token
  489 | }
      | ^
/usr/src/packages/BUILD/src/kernel/dwindowmanagerhelper.cpp:477:15: warning: unused variable '_types' [-Wunused-variable]
  477 |     const int _types = static_cast<int>(types);
      |               ^~~~~~
make[3]: *** [src/CMakeFiles/dtk6gui.dir/build.make:337: src/CMakeFiles/dtk6gui.dir/kernel/dwindowmanagerhelper.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp: In member function 'void Dtk::Gui::DGuiApplicationHelperPrivate::initApplication(QGuiApplication*)':
/usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp:237:39: warning: 'void QGuiApplication::paletteChanged(const QPalette&)' is deprecated: Handle QEvent::ApplicationPaletteChange instead [-Wdeprecated-declarations]
  237 |     q->connect(app, &QGuiApplication::paletteChanged, q, [q, this, app] {
      |                                       ^~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtGui/QGuiApplication:1,
                 from /usr/src/packages/BUILD/include/kernel/dguiapplicationhelper.h:12,
                 from /usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp:5:
/usr/include/x86_64-linux-gnu/qt6/QtGui/qguiapplication.h:161:89: note: declared here
  161 |     QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationPaletteChange instead") void paletteChanged(const QPalette &pal);
      |                                                                                         ^~~~~~~~~~~~~~
/usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp:248:39: warning: 'void QGuiApplication::fontChanged(const QFont&)' is deprecated: Handle QEvent::ApplicationFontChange instead [-Wdeprecated-declarations]
  248 |     q->connect(app, &QGuiApplication::fontChanged, q, &DGuiApplicationHelper::fontChanged);
      |                                       ^~~~~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtGui/qguiapplication.h:162:87: note: declared here
  162 |     QT_DEPRECATED_VERSION_X_6_0("Handle QEvent::ApplicationFontChange instead")  void fontChanged(const QFont &font);
      |                                                                                       ^~~~~~~~~~~
/usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp: In static member function 'static bool Dtk::Gui::DGuiApplicationHelper::loadTranslator(const QString&, const QList<QString>&, const QList<QLocale>&)':
/usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp:1599:37: warning: ignoring return value of 'bool QTranslator::load(const QString&, const QString&, const QString&, const QString&)', declared with attribute 'nodiscard' [-Wunused-result]
 1599 |                     translator->load(translatePath);
      |                     ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/6.6.0/QtCore/private/qcoreapplication_p.h:23,
                 from /usr/include/x86_64-linux-gnu/qt6/QtGui/6.6.0/QtGui/private/qguiapplication_p.h:24,
                 from /usr/src/packages/BUILD/src/kernel/dguiapplicationhelper.cpp:54:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qtranslator.h:33:24: note: declared here
   33 |     [[nodiscard]] bool load(const QString & filename,
      |                        ^~~~
/usr/src/packages/BUILD/src/util/ddciiconplayer.cpp: In member function 'bool Dtk::Gui::DDciIconImagePlayer::setPalette(const Dtk::Gui::DDciIconPalette&)':
/usr/src/packages/BUILD/src/util/ddciiconplayer.cpp:210:34: warning: 'constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = QList<Dtk::Gui::DDciIconImage>; typename std::add_const<_Tp>::type = const QList<Dtk::Gui::DDciIconImage>]' is deprecated: Use std::as_const() instead. [-Wdeprecated-declarations]
  210 |     for (const auto &i : qAsConst(d->images))
      |                          ~~~~~~~~^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qforeach.h:11,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:57,
                 from /usr/include/dtk6/DCore/dtkcore_global.h:7,
                 from /usr/src/packages/BUILD/include/global/dtkgui_global.h:10,
                 from /usr/src/packages/BUILD/include/util/ddciiconplayer.h:6,
                 from /usr/src/packages/BUILD/src/util/ddciiconplayer.cpp:5:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qttypetraits.h:33:45: note: declared here
   33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
      |                                             ^~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/QLoggingCategory:1,
                 from /usr/src/packages/BUILD/src/util/ddciiconplayer.cpp:11:
/usr/src/packages/BUILD/src/util/ddciiconplayer.cpp: In lambda function:
/usr/src/packages/BUILD/src/util/ddciiconplayer.cpp:652:31: warning: format '%i' expects argument of type 'int', but argument 3 has type 'qsizetype' {aka 'long long int'} [-Wformat=]
  652 |             qCDebug(diPlayer, "Number of animations remaining is %i", animationJobs.size());
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~
      |                                                                                         |
      |                                                                                         qsizetype {aka long long int}
/usr/src/packages/BUILD/src/util/ddciiconplayer.cpp:652:67: note: format string is defined here
  652 |             qCDebug(diPlayer, "Number of animations remaining is %i", animationJobs.size());
      |                                                                  ~^
      |                                                                   |
      |                                                                   int
      |                                                                  %lli
/usr/src/packages/BUILD/src/util/ddciicon.cpp: In function 'const Dtk::Gui::DDciIconEntry::ScalableLayer& Dtk::Gui::findScalableLayer(const DDciIconEntry*, qreal)':
/usr/src/packages/BUILD/src/util/ddciicon.cpp:659:34: warning: 'constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<Dtk::Gui::DDciIconEntry::ScalableLayer>; typename std::add_const<_Tp>::type = const QList<Dtk::Gui::DDciIconEntry::ScalableLayer>]' is deprecated: Use std::as_const() instead. [-Wdeprecated-declarations]
  659 |     for (const auto &i : qAsConst(entry->scalableLayers)) {
      |                          ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/qt6/QtCore/qforeach.h:11,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qglobal.h:57,
                 from /usr/include/dtk6/DCore/dtkcore_global.h:7,
                 from /usr/src/packages/BUILD/include/global/dtkgui_global.h:10,
                 from /usr/src/packages/BUILD/include/util/ddciiconpalette.h:8,
                 from /usr/src/packages/BUILD/include/util/ddciicon.h:6,
                 from /usr/src/packages/BUILD/src/util/ddciicon.cpp:5:
/usr/include/x86_64-linux-gnu/qt6/QtCore/qttypetraits.h:33:45: note: declared here
   33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
      |                                             ^~~~~~~~
/usr/src/packages/BUILD/src/util/ddciicon.cpp: In member function 'void Dtk::Gui::DDciIconImagePrivate::init()':
/usr/src/packages/BUILD/src/util/ddciicon.cpp:1138:38: warning: 'constexpr typename std::add_const<_Tp>::type& qAsConst(T&) [with T = const QList<Dtk::Gui::DDciIconEntry::ScalableLayer::Layer>; typename std::add_const<_Tp>::type = const QList<Dtk::Gui::DDciIconEntry::ScalableLayer::Layer>]' is deprecated: Use std::as_const() instead. [-Wdeprecated-declarations]
 1138 |     for (const auto &layer : qAsConst(layers)) {
      |                              ~~~~~~~~^~~~~~~~
/usr/include/x86_64-linux-gnu/qt6/QtCore/qttypetraits.h:33:45: note: declared here
   33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
      |                                             ^~~~~~~~
/usr/src/packages/BUILD/src/util/dicontheme.cpp: In function 'bool Dtk::Gui::DIconTheme::isXdgIcon(const QIcon&)':
/usr/src/packages/BUILD/src/util/dicontheme.cpp:123:41: warning: unused parameter 'icon' [-Wunused-parameter]
  123 | bool DIconTheme::isXdgIcon(const QIcon &icon)
      |                            ~~~~~~~~~~~~~^~~~
make[3]: Leaving directory '/usr/src/packages/BUILD/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:287: src/CMakeFiles/dtk6gui.dir/all] Error 2
make[2]: Leaving directory '/usr/src/packages/BUILD/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/usr/src/packages/BUILD/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j16 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:17: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

@asterwyx can you have a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants