Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77218

Build fails with gcc 4.8.5

    XMLWordPrintable

Details

    • Linux/X11
    • 4f116f00fcd93decbf6fc01b61b0be7c293d3c39 (qt/qtbase/5.13.1)

    Description

      In Qt Gui:

      In file included from ../../include/QtGui/qtextlayout.h:1:0,
                       from /home/joni/qt5/qtbase/src/gui/text/qabstracttextdocumentlayout.h:45:
      ../../include/QtGui/../../../../qt5/qtbase/src/gui/text/qtextlayout.h: In constructor ‘QTextLayout::QTextLayout(const QString&, const QFont&, const QPaintDevice*)’:
      ../../include/QtGui/../../../../qt5/qtbase/src/gui/text/qtextlayout.h:118:9: error: declaration of ‘font’ shadows a member of 'this' [-Werror=shadow]
               : QTextLayout(text, font, const_cast<QPaintDevice*>(paintdevice))
               ^
      ../../include/QtGui/../../../../qt5/qtbase/src/gui/text/qtextlayout.h:118:9: error: declaration of ‘text’ shadows a member of 'this' [-Werror=shadow]
      cc1plus: all warnings being treated as errors
      make[3]: *** [.obj/header_qabstracttextdocumentlayout.o] Error 1
      

      In Data Visualization:

      engine/abstract3drenderer.cpp: In member function ‘virtual void QtDataVisualization::Abstract3DRenderer::initializeOpenGL()’:
      engine/abstract3drenderer.cpp:238:63: error: no matching function for call to ‘QtDataVisualization::Abstract3DRenderer::connect(QPointer<QOpenGLContext>&, void (QOpenGLContext::*)(), QtDataVisualization::Abstract3DRenderer* const, void (QtDataVisualization::Abstract3DRenderer::*)())’
                            this, &Abstract3DRenderer::contextCleanup);
                                                                     ^
      engine/abstract3drenderer.cpp:238:63: note: candidates are:
      In file included from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qobject.h:1:0,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/QtCore:6,
                       from ../../include/QtDataVisualization/QtDataVisualizationDepends:3:
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:211:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
           static QMetaObject::Connection connect(const QObject *sender, const char *signal,
                                          ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:211:36: note:   no known conversion for argument 2 from ‘void (QOpenGLContext::*)()’ to ‘const char*’
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:214:36: note: static QMetaObject::Connection QObject::connect(const QObject*, const QMetaMethod&, const QObject*, const QMetaMethod&, Qt::ConnectionType)
           static QMetaObject::Connection connect(const QObject *sender, const QMetaMethod &signal,
                                          ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:214:36: note:   no known conversion for argument 2 from ‘void (QOpenGLContext::*)()’ to ‘const QMetaMethod&’
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:466:32: note: QMetaObject::Connection QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
       inline QMetaObject::Connection QObject::connect(const QObject *asender, const char *asignal,
                                      ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:466:32: note:   no known conversion for argument 2 from ‘void (QOpenGLContext::*)()’ to ‘const char*’
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:231:43: note: template<class Func1, class Func2> static QMetaObject::Connection QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const typename QtPrivate::FunctionPointer<Func2>::Object*, Func2, Qt::ConnectionType)
           static inline QMetaObject::Connection connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal,
                                                 ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:231:43: note:   template argument deduction/substitution failed:
      engine/abstract3drenderer.cpp:238:63: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QOpenGLContext>’
                            this, &Abstract3DRenderer::contextCleanup);
                                                                     ^
      In file included from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qobject.h:1:0,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/QtCore:6,
                       from ../../include/QtDataVisualization/QtDataVisualizationDepends:3:
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:263:13: note: template<class Func1, class Func2> static typename std::enable_if<((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
                   connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
                   ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:263:13: note:   template argument deduction/substitution failed:
      engine/abstract3drenderer.cpp:238:63: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QOpenGLContext>’
                            this, &Abstract3DRenderer::contextCleanup);
                                                                     ^
      In file included from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qobject.h:1:0,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/QtCore:6,
                       from ../../include/QtDataVisualization/QtDataVisualizationDepends:3:
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:272:13: note: template<class Func1, class Func2> static typename std::enable_if<(((int)(QtPrivate::FunctionPointer<Func2>::ArgumentCount) >= 0) && (! QtPrivate::FunctionPointer<Func2>::IsPointerToMemberFunction)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
                   connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
                   ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:272:13: note:   template argument deduction/substitution failed:
      engine/abstract3drenderer.cpp:238:63: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QOpenGLContext>’
                            this, &Abstract3DRenderer::contextCleanup);
                                                                     ^
      In file included from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qobject.h:1:0,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/QtCore:6,
                       from ../../include/QtDataVisualization/QtDataVisualizationDepends:3:
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:303:13: note: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, Func2)
                   connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, Func2 slot)
                   ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:303:13: note:   template argument deduction/substitution failed:
      engine/abstract3drenderer.cpp:238:63: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QOpenGLContext>’
                            this, &Abstract3DRenderer::contextCleanup);
                                                                     ^
      In file included from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qobject.h:1:0,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:43,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/QtCore:6,
                       from ../../include/QtDataVisualization/QtDataVisualizationDepends:3:
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:311:13: note: template<class Func1, class Func2> static typename std::enable_if<(QtPrivate::FunctionPointer<Func2>::ArgumentCount == (-1)), QMetaObject::Connection>::type QObject::connect(const typename QtPrivate::FunctionPointer<Func>::Object*, Func1, const QObject*, Func2, Qt::ConnectionType)
                   connect(const typename QtPrivate::FunctionPointer<Func1>::Object *sender, Func1 signal, const QObject *context, Func2 slot,
                   ^
      /opt/build/qt/qt-everywhere-src-5.13.0/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:311:13: note:   template argument deduction/substitution failed:
      engine/abstract3drenderer.cpp:238:63: note:   mismatched types ‘const typename QtPrivate::FunctionPointer<Func>::Object*’ and ‘QPointer<QOpenGLContext>’
                            this, &Abstract3DRenderer::contextCleanup);
                                                                     ^
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            villevoutilainen_qt Ville Voutilainen
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes