Bug#831069: qtiplot: FTBFS with GCC 6: src/analysis/dialogs/FitDialog.cpp:1025:41: error: no matching function for call to 'QTableWidgetItem::setFlags(bool)'
Lucas Nussbaum
lucas at debian.org
Thu Jul 14 07:23:53 UTC 2016
Source: qtiplot
Version: 0.9.8.9-14
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20160713 qa-ftbfs
Justification: FTBFS with GCC 6 on amd64
Hi,
During a rebuild of all packages in sid using the gcc-defaults package
available in experimental to make GCC default to version 6, your package failed
to build on amd64. For more information about GCC 6 and Stretch, see:
- https://wiki.debian.org/GCC6
- https://lists.debian.org/debian-devel-announce/2016/06/msg00007.html
Relevant part (hopefully):
> g++ -c -m64 -pipe -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT -Wall -W -DSCRIPTING_CONSOLE -DSVN_REVISION="\"\"" -DQT_PLUGIN -DTRANSLATIONS_PATH=\"/usr/share/qtiplot/translations\" -DMANUAL_PATH=\"/usr/share/doc/qtiplot/manual\" -DSCRIPTING_MUPARSER -DSCRIPTING_PYTHON -DPYTHON_CONFIG_PATH=\"/usr/share/qtiplot\" -DGL2PS_HAVE_LIBPNG -DTEX_OUTPUT -DHAVE_ALGLIB -DHAVE_TAMUANOVA -DQT_NO_DEBUG -DQT_SVG_LIB -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtXml -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtSvg -I/usr/include/qt4 -I/usr/include/qt4/QtAssistantClient -I/usr/include/qt4/QtAssistant -I/usr/include/muParser -I../3rdparty/qwt/src -I../3rdparty/qwtplot3d/include -Iicons -Isrc/analysis -Isrc/analysis/dialogs -Isrc/core -Isrc/excel -Isrc/lib/include -Isrc/lib/3rdparty/qtcolorpicker/src -Isrc/plot2D -Isrc/plot2D/dialogs -Isrc/plot3D -Isrc/matrix -Isrc/table -Isrc/scripting -I/usr/include/python2.7 -I/usr/include/libalglib -I/usr/include/tamu_anova -I/usr/include -I/usr/X11R6/include -I/«PKGBUILDDIR»/tmp/qtiplot -o ../tmp/qtiplot/FitDialog.o src/analysis/dialogs/FitDialog.cpp
> src/analysis/dialogs/FitDialog.cpp: In member function 'void FitDialog::saveUserFunction()':
> src/analysis/dialogs/FitDialog.cpp:895:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
> if (d_current_fit->setFormula(formula))
> ^~
> src/analysis/dialogs/FitDialog.cpp:898:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
> if (funcBox->currentItem()->text() == name)
> ^~
> src/analysis/dialogs/FitDialog.cpp: In member function 'void FitDialog::removeUserFunction()':
> src/analysis/dialogs/FitDialog.cpp:946:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
> if (QMessageBox::Yes != QMessageBox::question (this, tr("QtiPlot") + " - " + tr("Remove Fit Model"), s, QMessageBox::Yes, QMessageBox::Cancel))
> ^~
> src/analysis/dialogs/FitDialog.cpp:949:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
> QString name = funcBox->currentItem()->text();
> ^~~~~~~
> src/analysis/dialogs/FitDialog.cpp: In member function 'void FitDialog::showFitPage()':
> src/analysis/dialogs/FitDialog.cpp:1025:41: error: no matching function for call to 'QTableWidgetItem::setFlags(bool)'
> it->setFlags(!Qt::ItemIsEditable);
> ^
> In file included from /usr/include/qt4/QtGui/QTableWidget:1:0,
> from src/analysis/dialogs/FitDialog.cpp:47:
> /usr/include/qt4/QtGui/qtablewidget.h:105:10: note: candidate: void QTableWidgetItem::setFlags(Qt::ItemFlags)
> void setFlags(Qt::ItemFlags flags);
> ^~~~~~~~
> /usr/include/qt4/QtGui/qtablewidget.h:105:10: note: no known conversion for argument 1 from 'bool' to 'Qt::ItemFlags {aka QFlags<Qt::ItemFlag>}'
> src/analysis/dialogs/FitDialog.cpp:1052:35: error: no matching function for call to 'QTableWidgetItem::setFlags(bool)'
> it->setFlags(!Qt::ItemIsEditable);
> ^
> In file included from /usr/include/qt4/QtGui/QTableWidget:1:0,
> from src/analysis/dialogs/FitDialog.cpp:47:
> /usr/include/qt4/QtGui/qtablewidget.h:105:10: note: candidate: void QTableWidgetItem::setFlags(Qt::ItemFlags)
> void setFlags(Qt::ItemFlags flags);
> ^~~~~~~~
> /usr/include/qt4/QtGui/qtablewidget.h:105:10: note: no known conversion for argument 1 from 'bool' to 'Qt::ItemFlags {aka QFlags<Qt::ItemFlag>}'
> src/analysis/dialogs/FitDialog.cpp:1057:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
> for (int i = 0; i<parameters; i++)
> ^~~
> src/analysis/dialogs/FitDialog.cpp:1060:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
> if (d_current_fit->type() == Fit::User){
> ^~
> src/analysis/dialogs/FitDialog.cpp:1067:45: error: no matching function for call to 'QTableWidgetItem::setFlags(bool)'
> it->setFlags(!Qt::ItemIsEditable);
> ^
> In file included from /usr/include/qt4/QtGui/QTableWidget:1:0,
> from src/analysis/dialogs/FitDialog.cpp:47:
> /usr/include/qt4/QtGui/qtablewidget.h:105:10: note: candidate: void QTableWidgetItem::setFlags(Qt::ItemFlags)
> void setFlags(Qt::ItemFlags flags);
> ^~~~~~~~
> /usr/include/qt4/QtGui/qtablewidget.h:105:10: note: no known conversion for argument 1 from 'bool' to 'Qt::ItemFlags {aka QFlags<Qt::ItemFlag>}'
> src/analysis/dialogs/FitDialog.cpp: In member function 'void FitDialog::showExpression(int)':
> src/analysis/dialogs/FitDialog.cpp:1280:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
> if (function < 0)
> ^~
> src/analysis/dialogs/FitDialog.cpp:1283:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
> setCurrentFit(function);
> ^~~~~~~~~~~~~
> src/analysis/dialogs/FitDialog.cpp: In member function 'void FitDialog::saveInitialGuesses()':
> src/analysis/dialogs/FitDialog.cpp:1724:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
> if (!d_current_fit)
> ^~
> src/analysis/dialogs/FitDialog.cpp:1727:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
> ApplicationWindow *app = (ApplicationWindow *)this->parent();
> ^~~~~~~~~~~~~~~~~
> make[3]: *** [../tmp/qtiplot/FitDialog.o] Error 1
The full build log is available from:
http://people.debian.org/~lucas/logs/2016/07/13/qtiplot_0.9.8.9-14_unstable_gcc6.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 debian-science-maintainers
mailing list