Bug#975148: freeciv: FTBFS: canvas.cpp:265:16: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
Lucas Nussbaum
lucas at debian.org
Thu Nov 19 09:34:56 GMT 2020
Source: freeciv
Version: 2.6.2-1
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):
> /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../gen_headers -I. -I./.. -I./../include -I../../utility -I../../common -I./../agents -I../../common/aicore -I../../common/scriptcore -I./../luascript -DQT_DISABLE_DEPRECATED_BEFORE=0x050200 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -D_REENTRANT -I/usr/include/SDL2 -Wdate-time -D_FORTIFY_SOURCE=2 -DLOCALEDIR="\"/usr/share/locale\"" -DBINDIR="\"/usr/games\"" -DFC_CONF_PATH="\"/etc/freeciv\"" -DDEFAULT_DATA_PATH="\".:data:~/.freeciv/2.6:/usr/share/games/freeciv\"" -DDEFAULT_SAVE_PATH="\".:~/.freeciv/saves\"" -DDEFAULT_SCENARIO_PATH="\".:data/scenarios:~/.freeciv/2.6/scenarios:~/.freeciv/scenarios:/usr/share/games/freeciv/scenarios\"" -fPIC -Wno-tautological-compare -Wno-nonnull-compare -O3 -fomit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o cityrep.lo cityrep.cpp
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gen_headers -I. -I./.. -I./../include -I../../utility -I../../common -I./../agents -I../../common/aicore -I../../common/scriptcore -I./../luascript -DQT_DISABLE_DEPRECATED_BEFORE=0x050200 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -D_REENTRANT -I/usr/include/SDL2 -Wdate-time -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/usr/share/locale\" -DBINDIR=\"/usr/games\" -DFC_CONF_PATH=\"/etc/freeciv\" "-DDEFAULT_DATA_PATH=\".:data:~/.freeciv/2.6:/usr/share/games/freeciv\"" "-DDEFAULT_SAVE_PATH=\".:~/.freeciv/saves\"" "-DDEFAULT_SCENARIO_PATH=\".:data/scenarios:~/.freeciv/2.6/scenarios:~/.freeciv/scenarios:/usr/share/games/freeciv/scenarios\"" -fPIC -Wno-tautological-compare -Wno-nonnull-compare -O3 -fomit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c chatline.cpp -o chatline.o
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gen_headers -I. -I./.. -I./../include -I../../utility -I../../common -I./../agents -I../../common/aicore -I../../common/scriptcore -I./../luascript -DQT_DISABLE_DEPRECATED_BEFORE=0x050200 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -D_REENTRANT -I/usr/include/SDL2 -Wdate-time -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/usr/share/locale\" -DBINDIR=\"/usr/games\" -DFC_CONF_PATH=\"/etc/freeciv\" "-DDEFAULT_DATA_PATH=\".:data:~/.freeciv/2.6:/usr/share/games/freeciv\"" "-DDEFAULT_SAVE_PATH=\".:~/.freeciv/saves\"" "-DDEFAULT_SCENARIO_PATH=\".:data/scenarios:~/.freeciv/2.6/scenarios:~/.freeciv/scenarios:/usr/share/games/freeciv/scenarios\"" -fPIC -Wno-tautological-compare -Wno-nonnull-compare -O3 -fomit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c citydlg.cpp -o citydlg.o
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gen_headers -I. -I./.. -I./../include -I../../utility -I../../common -I./../agents -I../../common/aicore -I../../common/scriptcore -I./../luascript -DQT_DISABLE_DEPRECATED_BEFORE=0x050200 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -D_REENTRANT -I/usr/include/SDL2 -Wdate-time -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/usr/share/locale\" -DBINDIR=\"/usr/games\" -DFC_CONF_PATH=\"/etc/freeciv\" "-DDEFAULT_DATA_PATH=\".:data:~/.freeciv/2.6:/usr/share/games/freeciv\"" "-DDEFAULT_SAVE_PATH=\".:~/.freeciv/saves\"" "-DDEFAULT_SCENARIO_PATH=\".:data/scenarios:~/.freeciv/2.6/scenarios:~/.freeciv/scenarios:/usr/share/games/freeciv/scenarios\"" -fPIC -Wno-tautological-compare -Wno-nonnull-compare -O3 -fomit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c cityrep.cpp -o cityrep.o
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../gen_headers -I. -I./.. -I./../include -I../../utility -I../../common -I./../agents -I../../common/aicore -I../../common/scriptcore -I./../luascript -DQT_DISABLE_DEPRECATED_BEFORE=0x050200 -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtCore -I/usr/include/x86_64-linux-gnu/qt5/QtGui -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets -D_REENTRANT -I/usr/include/SDL2 -Wdate-time -D_FORTIFY_SOURCE=2 -DLOCALEDIR=\"/usr/share/locale\" -DBINDIR=\"/usr/games\" -DFC_CONF_PATH=\"/etc/freeciv\" "-DDEFAULT_DATA_PATH=\".:data:~/.freeciv/2.6:/usr/share/games/freeciv\"" "-DDEFAULT_SAVE_PATH=\".:~/.freeciv/saves\"" "-DDEFAULT_SCENARIO_PATH=\".:data/scenarios:~/.freeciv/2.6/scenarios:~/.freeciv/scenarios:/usr/share/games/freeciv/scenarios\"" -fPIC -Wno-tautological-compare -Wno-nonnull-compare -O3 -fomit-frame-pointer -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c canvas.cpp -o canvas.o
> In file included from fc_client.h:52,
> from canvas.cpp:25:
> ratesdlg.h:102:76: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
> 102 | explicit multipler_rates_dialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
> from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtGui/QFontMetrics:1,
> from canvas.cpp:19:
> /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) {}
> | ^~~~~~
> canvas.cpp: In function ‘void qtg_canvas_put_curved_line(canvas*, color*, line_type, int, int, int, int)’:
> canvas.cpp:265:16: error: aggregate ‘QPainterPath path’ has incomplete type and cannot be defined
> 265 | QPainterPath path;
> | ^~~~
> canvas.cpp: In function ‘void qtg_get_text_size(int*, int*, client_font, const char*)’:
> canvas.cpp:312:47: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 312 | *width = fm->width(QString::fromUtf8(text));
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtGui/QFontMetrics:1,
> from canvas.cpp:19:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> In file included from fc_client.h:52,
> from cityrep.cpp:28:
> ratesdlg.h:102:76: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
> 102 | explicit multipler_rates_dialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
> from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,
> from cityrep.cpp:19:
> /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) {}
> | ^~~~~~
> cityrep.cpp: In member function ‘void city_widget::update_model()’:
> cityrep.cpp:1093:39: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 1093 | width = qMax(width, fm.width(s));
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qframe.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractscrollarea.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractitemview.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qheaderview.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QHeaderView:1,
> from cityrep.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> In file included from fc_client.h:52,
> from chatline.cpp:45:
> ratesdlg.h:102:76: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
> 102 | explicit multipler_rates_dialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
> from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,
> from chatline.cpp:19:
> /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) {}
> | ^~~~~~
> In file included from fc_client.h:52,
> from citydlg.cpp:65:
> ratesdlg.h:102:76: warning: ‘constexpr QFlags<T>::QFlags(QFlags<T>::Zero) [with Enum = Qt::WindowType; QFlags<T>::Zero = int QFlags<Qt::WindowType>::Private::*]’ is deprecated: Use default constructor instead [-Wdeprecated-declarations]
> 102 | explicit multipler_rates_dialog(QWidget* parent = 0, Qt::WindowFlags f = 0);
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1304,
> from /usr/include/x86_64-linux-gnu/qt5/QtGui/qtguiglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qtwidgetsglobal.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qapplication.h:43,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QApplication:1,
> from citydlg.cpp:19:
> /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) {}
> | ^~~~~~
> citydlg.cpp: In member function ‘virtual void progress_bar::paintEvent(QPaintEvent*)’:
> citydlg.cpp:278:20: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 278 | if (fm.width(s1) > rx.width()) {
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcheckbox.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCheckBox:1,
> from citydlg.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> citydlg.cpp:282:33: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 282 | i = rx.width() - fm.width(s1) + pix_width;
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcheckbox.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCheckBox:1,
> from citydlg.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> citydlg.cpp:286:20: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 286 | if (fm.width(s2) > rx.width()) {
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcheckbox.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCheckBox:1,
> from citydlg.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> citydlg.cpp:290:33: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 290 | i = rx.width() - fm.width(s2) + pix_width;
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcheckbox.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCheckBox:1,
> from citydlg.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> citydlg.cpp:302:19: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 302 | if (fm.width(s) > rx.width()) {
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcheckbox.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCheckBox:1,
> from citydlg.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> citydlg.cpp:306:32: warning: ‘int QFontMetrics::width(const QString&, int) const’ is deprecated: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
> 306 | i = rx.width() - fm.width(s) + pix_width;
> | ^
> In file included from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qwidget.h:50,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qabstractbutton.h:46,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/qcheckbox.h:44,
> from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QCheckBox:1,
> from citydlg.cpp:20:
> /usr/include/x86_64-linux-gnu/qt5/QtGui/qfontmetrics.h:106:9: note: declared here
> 106 | int width(const QString &, int len = -1) const;
> | ^~~~~
> make[3]: *** [Makefile:881: canvas.lo] Error 1
The full build log is available from:
http://qa-logs.debian.net/2020/11/19/freeciv_2.6.2-1_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.
More information about the Pkg-games-devel
mailing list