[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#975133: tupi: FTBFS: tslider.cpp:292:29: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined



Hi,
The easiest way to fix this bug is by adding this line at the beginning of the file tslider.cpp with the other include instructions:
#include <QPainterPath>

I would like to send you a patch, but currently, my repository is a mess and I don't want to send you unstable code. Anyway, the issue is not complex to fix. In case you have further questions, please let me know.



El jue, 19 de nov. de 2020 a la(s) 04:42, Lucas Nussbaum (lucas@debian.org) escribió:
Source: tupi
Version: 0.2+git08-3
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201119 ftbfs-bullseye

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

Relevant part (hopefully):
> g++ -c -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -pipe -O2 -Wall -Wextra -D_REENTRANT -fPIC -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../tcore -I.. -I../../libbase -I../tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I. -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o tslider.o tslider.cpp
> In file included from tapplication.h:41,
>                  from txyspinbox.h:41,
>                  from txyspinbox.cpp:36:
> thememanager.h:64:56: warning: ‘QXmlParseException’ is deprecated [-Wdeprecated-declarations]
>    64 |         bool error(const QXmlParseException & exception);
>       |                                                        ^
> thememanager.h:65:61: warning: ‘QXmlParseException’ is deprecated [-Wdeprecated-declarations]
>    65 |         bool fatalError(const QXmlParseException & exception);
>       |                                                             ^
> In file included from tapplication.h:42,
>                  from txyspinbox.h:41,
>                  from txyspinbox.cpp:36:
> tvhbox.h:67:66: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::AlignmentFlag; QFlags<T>::Zero = int QFlags<Qt::AlignmentFlag>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
>    67 |         void addWidget(QWidget *child, Qt::Alignment alignment = 0);
>       |                                                                  ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:49,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtCore/QString:1,
>                  from ../tcore/tapplicationproperties.h:41,
>                  from txyspinbox.h:40,
>                  from txyspinbox.cpp:36:
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:123:80: note: declared here
>   123 |     QT_DEPRECATED_X("Use default constructor instead") Q_DECL_CONSTEXPR inline QFlags(Zero) noexcept : i(0) {}
>       |                                                                                ^~~~~~
> /usr/lib/qt5/bin/rcc -name tgui_images tgui_images.qrc -o qrc_tgui_images.cpp
> /usr/lib/qt5/bin/moc -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /<<PKGBUILDDIR>>/src/framework/tgui/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/<<PKGBUILDDIR>>/src/framework/tgui -I/<<PKGBUILDDIR>>/src/framework/tcore -I/<<PKGBUILDDIR>>/src/framework -I/<<PKGBUILDDIR>>/src/libbase -I/<<PKGBUILDDIR>>/src/framework/tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include taction.h -o moc_taction.cpp
> /usr/lib/qt5/bin/moc -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /<<PKGBUILDDIR>>/src/framework/tgui/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/<<PKGBUILDDIR>>/src/framework/tgui -I/<<PKGBUILDDIR>>/src/framework/tcore -I/<<PKGBUILDDIR>>/src/framework -I/<<PKGBUILDDIR>>/src/libbase -I/<<PKGBUILDDIR>>/src/framework/tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include tactionmanager.h -o moc_tactionmanager.cpp
> /usr/lib/qt5/bin/moc -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /<<PKGBUILDDIR>>/src/framework/tgui/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/<<PKGBUILDDIR>>/src/framework/tgui -I/<<PKGBUILDDIR>>/src/framework/tcore -I/<<PKGBUILDDIR>>/src/framework -I/<<PKGBUILDDIR>>/src/libbase -I/<<PKGBUILDDIR>>/src/framework/tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include tapplication.h -o moc_tapplication.cpp
> tslider.cpp: In member function ‘void TSlider::paintScales()’:
> tslider.cpp:292:29: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
>   292 |                QPainterPath path;
>       |                             ^~~~
> tslider.cpp:295:53: error: invalid use of incomplete type ‘class QPainterPath’
>   295 |                    path = QPainterPath(QPointF(0, 0));
>       |                                                     ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
>                  from tslider.h:42,
>                  from tslider.cpp:37:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
>    54 | class QPainterPath;
>       |       ^~~~~~~~~~~~
> tslider.cpp:300:58: error: invalid use of incomplete type ‘class QPainterPath’
>   300 |                    path = QPainterPath(QPointF(0, height));
>       |                                                          ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtransform.h:43,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qimage.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpixmap.h:49,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtGui/qpainter.h:48,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qgraphicsview.h:45,
>                  from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QGraphicsView:1,
>                  from tslider.h:42,
>                  from tslider.cpp:37:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qmatrix.h:54:7: note: forward declaration of ‘class QPainterPath’
>    54 | class QPainterPath;
>       |       ^~~~~~~~~~~~
> /usr/lib/qt5/bin/moc -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /<<PKGBUILDDIR>>/src/framework/tgui/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/<<PKGBUILDDIR>>/src/framework/tgui -I/<<PKGBUILDDIR>>/src/framework/tcore -I/<<PKGBUILDDIR>>/src/framework -I/<<PKGBUILDDIR>>/src/libbase -I/<<PKGBUILDDIR>>/src/framework/tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include tbuttonbar.h -o moc_tbuttonbar.cpp
> /usr/lib/qt5/bin/moc -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /<<PKGBUILDDIR>>/src/framework/tgui/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/<<PKGBUILDDIR>>/src/framework/tgui -I/<<PKGBUILDDIR>>/src/framework/tcore -I/<<PKGBUILDDIR>>/src/framework -I/<<PKGBUILDDIR>>/src/libbase -I/<<PKGBUILDDIR>>/src/framework/tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include tcellview.h -o moc_tcellview.cpp
> /usr/lib/qt5/bin/moc -DHAVE_THEORA -DHAVE_LIBAV -DHAVE_QUAZIP -DHAVE_MULTIMEDIA -DHAVE_ZLIB -DK_NODEBUG -DVERSION=\"0.2\" -DCODE_NAME=\"Beraba\" -DREVISION=\"git08\" -DCONFIG_VERSION=\"2\" -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB --include /<<PKGBUILDDIR>>/src/framework/tgui/moc_predefs.h -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -I/<<PKGBUILDDIR>>/src/framework/tgui -I/<<PKGBUILDDIR>>/src/framework/tcore -I/<<PKGBUILDDIR>>/src/framework -I/<<PKGBUILDDIR>>/src/libbase -I/<<PKGBUILDDIR>>/src/framework/tcore -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL -I/usr/include/x86_64-linux-gnu/qt5/QtSvg -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtXml -I/usr/include/x86_64-linux-gnu/qt5/QtNetwork -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include tcirclebutton.h -o moc_tcirclebutton.cpp
> make[5]: *** [Makefile:1560: tslider.o] Error 1

The full build log is available from:
   http://qa-logs.debian.net/2020/11/19/tupi_0.2+git08-3_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



--

Reply to: