Source: qtcreator Version: 2.2.1-1 Severity: important Tags: patch Hi,
qtcreator FTBFS on armel and sh4. https://buildd.debian.org/status/fetch.php?pkg=qtcreator&arch=armel&ver=2.2.1-1&stamp=1309124335 http://buildd.debian-ports.org/status/fetch.php?pkg=qtcreator&arch=sh4&ver=2.2.1-1&stamp=1309530726 ----- g++ -c -pipe -g -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_WEBKIT -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_CREATOR -DQT_CREATOR -DQT_CREATOR -DQT_CREATOR -DQT_CREATOR -DQT_NO_STYLE_S60 -DVIEWLOGGER -DENABLE_TEXT_VIEW -DQWEAKPOINTER_ENABLE_ARROW -DQDEBUG_IN_TESTS -DWARNINGS_IN_TESTS -DTEST_EXPORTS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_DECLARATIVE_LIB -DQT_WEBKIT_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtWebKit -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4 -I../../libs -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/tools -I../../plugins -I../../libs/3rdparty/botan/build -I../../shared -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs/parser -I../../libs/qmleditorwidgets -I../../libs/qmleditorwidgets/easingpane -I../../shared -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs/parser -I../coreplugin -I../../shared/cplusplus -I../../libs/cplusplus -I../../shared -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs/parser -I../../plugins -I../../libs/qmleditorwidgets -I../../libs/qmleditorwidgets/easingpane -I../../shared -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs -I/build/buildd-qtcreator_2.2.1-1-armel-lhlzQr/qtcreator-2.2.1/src/libs/qmljs/../../shared/qmljs/parser -Idesignercore -Idesignercore/include -Icomponents/integration -Icomponents/propertyeditor -Icomponents/formeditor -Icomponents/navigator -Icomponents/itemlibrary -Icomponents/navigator -Icomponents/pluginmanager -Icomponents/stateseditor -Icomponents/resources -I.moc/release-shared -I.uic -o .obj/release-shared/snapper.o components/formeditor/snapper.cpp components/formeditor/snapper.cpp: In member function 'QLineF QmlDesigner::Snapper::createSnapLine(Qt::Orientation, double, double, double, const QRectF&) const': components/formeditor/snapper.cpp:295:55: error: no matching function for call to 'qMin(double&, qreal)' components/formeditor/snapper.cpp:295:55: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1114:17: note: template<class T> const T& qMin(const T&, const T&) components/formeditor/snapper.cpp:296:56: error: no matching function for call to 'qMax(double&, qreal)' components/formeditor/snapper.cpp:296:56: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&) components/formeditor/snapper.cpp:299:54: error: no matching function for call to 'qMin(double&, qreal)' components/formeditor/snapper.cpp:299:54: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1114:17: note: template<class T> const T& qMin(const T&, const T&) components/formeditor/snapper.cpp:300:57: error: no matching function for call to 'qMax(double&, qreal)' components/formeditor/snapper.cpp:300:57: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&) components/formeditor/snapper.cpp: In function 'QLineF QmlDesigner::mergedHorizontalLine(const QList<QLineF>&)': components/formeditor/snapper.cpp:480:44: error: no matching function for call to 'qMin(double&, qreal)' components/formeditor/snapper.cpp:480:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1114:17: note: template<class T> const T& qMin(const T&, const T&) components/formeditor/snapper.cpp:481:44: error: no matching function for call to 'qMin(double&, qreal)' components/formeditor/snapper.cpp:481:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1114:17: note: template<class T> const T& qMin(const T&, const T&) components/formeditor/snapper.cpp:482:44: error: no matching function for call to 'qMax(double&, qreal)' components/formeditor/snapper.cpp:482:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&) components/formeditor/snapper.cpp:483:44: error: no matching function for call to 'qMax(double&, qreal)' components/formeditor/snapper.cpp:483:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&) components/formeditor/snapper.cpp: In function 'QLineF QmlDesigner::mergedVerticalLine(const QList<QLineF>&)': components/formeditor/snapper.cpp:498:44: error: no matching function for call to 'qMin(double&, qreal)' components/formeditor/snapper.cpp:498:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1114:17: note: template<class T> const T& qMin(const T&, const T&) components/formeditor/snapper.cpp:499:44: error: no matching function for call to 'qMin(double&, qreal)' components/formeditor/snapper.cpp:499:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1114:17: note: template<class T> const T& qMin(const T&, const T&) components/formeditor/snapper.cpp:500:44: error: no matching function for call to 'qMax(double&, qreal)' components/formeditor/snapper.cpp:500:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&) components/formeditor/snapper.cpp:501:44: error: no matching function for call to 'qMax(double&, qreal)' components/formeditor/snapper.cpp:501:44: note: candidate is: /usr/include/qt4/QtCore/qglobal.h:1116:17: note: template<class T> const T& qMax(const T&, const T&) make[6]: *** [.obj/release-shared/snapper.o] Error 1 ----- I created a patch which revised this. Could you apply this patch? Best regards, Nobuhiro -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
--- a/src/plugins/qmldesigner/components/formeditor/snapper.cpp 2011-07-07 11:14:10.000000000 +0900 +++ b/src/plugins/qmldesigner/components/formeditor/snapper.cpp 2011-07-07 11:14:50.000000000 +0900 @@ -495,10 +495,10 @@ double minimumY = std::numeric_limits<double>::max(); double maximumY = std::numeric_limits<double>::min(); foreach(const QLineF &line, lineList) { - minimumY = qMin(minimumY, line.y1()); - minimumY = qMin(minimumY, line.y2()); - maximumY = qMax(maximumY, line.y1()); - maximumY = qMax(maximumY, line.y2()); + minimumY = qMin(minimumY, static_cast<qreal>(line.y1())); + minimumY = qMin(minimumY, static_cast<qreal>(line.y2())); + maximumY = qMax(maximumY, static_cast<qreal>(line.y1())); + maximumY = qMax(maximumY, static_cast<qreal>(line.y2())); } double x(lineList.first().x1());