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

Bug#638813: marked as done (qtcreator: FTBFS: error: no matching function for call to 'qMin(double&, qreal)')



Your message dated Sat, 14 Jan 2012 23:18:13 +0000
with message-id <E1RmCrV-00023f-4j@franck.debian.org>
and subject line Bug#638813: fixed in qtcreator 2.2.1-2
has caused the Debian Bug report #638813,
regarding qtcreator: FTBFS: error: no matching function for call to 'qMin(double&, qreal)'
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
638813: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=638813
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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());

--- End Message ---
--- Begin Message ---
Source: qtcreator
Source-Version: 2.2.1-2

We believe that the bug you reported is fixed in the latest version of
qtcreator, which is due to be installed in the Debian FTP archive:

qtcreator-dbg_2.2.1-2_amd64.deb
  to main/q/qtcreator/qtcreator-dbg_2.2.1-2_amd64.deb
qtcreator-doc_2.2.1-2_all.deb
  to main/q/qtcreator/qtcreator-doc_2.2.1-2_all.deb
qtcreator_2.2.1-2.debian.tar.gz
  to main/q/qtcreator/qtcreator_2.2.1-2.debian.tar.gz
qtcreator_2.2.1-2.dsc
  to main/q/qtcreator/qtcreator_2.2.1-2.dsc
qtcreator_2.2.1-2_amd64.deb
  to main/q/qtcreator/qtcreator_2.2.1-2_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 638813@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Adam Majer <adamm@zombino.com> (supplier of updated qtcreator package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 14 Jan 2012 12:45:08 -0600
Source: qtcreator
Binary: qtcreator qtcreator-dbg qtcreator-doc
Architecture: source amd64 all
Version: 2.2.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Changed-By: Adam Majer <adamm@zombino.com>
Description: 
 qtcreator  - lightweight integrated development environment (IDE) for Qt
 qtcreator-dbg - debugging symbols for Qt Creator IDE
 qtcreator-doc - documentation for Qt Creator IDE
Closes: 638813
Changes: 
 qtcreator (2.2.1-2) unstable; urgency=low
 .
   * Apply upstream patch to fix FTBFS on machines where
     qreal<>double. (closes: #638813)
Checksums-Sha1: 
 a2d8cfbd8fc54f8268a45842fbdd668c63014c96 1587 qtcreator_2.2.1-2.dsc
 5a89a2bc15fa57df2b6deef26a8c5c67bbcb166e 16312 qtcreator_2.2.1-2.debian.tar.gz
 6ab1a6e3e92a19b643c5a2e30ab4ad6507d40f22 13986266 qtcreator_2.2.1-2_amd64.deb
 6a21802598b129b8c8acf01d38160624cce04170 2149414 qtcreator-dbg_2.2.1-2_amd64.deb
 8ff20712e9f410c3f628c988c3cf4170f8afcb71 8392342 qtcreator-doc_2.2.1-2_all.deb
Checksums-Sha256: 
 5df90164911564556fcb636a8b36cbc7a4997a461eb2b84a02f9ffa51b23fb16 1587 qtcreator_2.2.1-2.dsc
 92f83f8f8cf0d7dee3a197b8b4e65b2fb1ca698cc1f8f0b919ad58e2d4daf1ea 16312 qtcreator_2.2.1-2.debian.tar.gz
 9da545c59de91d0591fe86fa65ab2bbdb7a64ab7d786f10497fd57ba9ccca4a1 13986266 qtcreator_2.2.1-2_amd64.deb
 eb782476eedcf5859896f6769e8309a21a9254a3f3d85b58126b621fba3be5d0 2149414 qtcreator-dbg_2.2.1-2_amd64.deb
 90d0ef94909a8c4f2e6b72a56b05ce91a89c9039defe6f8f9d2045cb7f2a2fbe 8392342 qtcreator-doc_2.2.1-2_all.deb
Files: 
 a215791b8a063c87d789c9081d6e2245 1587 devel optional qtcreator_2.2.1-2.dsc
 acb9842abb5704267f7f12456a088bc2 16312 devel optional qtcreator_2.2.1-2.debian.tar.gz
 c0d7c06b7efd11f299ecfe914a16aced 13986266 devel optional qtcreator_2.2.1-2_amd64.deb
 7eb989a0ed372ef02960d2d118562d6a 2149414 debug extra qtcreator-dbg_2.2.1-2_amd64.deb
 80227699471f01e0fcce7685e307b9a8 8392342 doc optional qtcreator-doc_2.2.1-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk8SA2cACgkQ73/bNdaAYUVN4gCeJwSuKokPlfctl9RLFOYEeRyy
UDYAnA/5HKAx/P4TO8HqT90I2xUW3S1q
=53mD
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: