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

qtdeclarative doesn't build with GCC 6.1.1 - self-comparison always evaluates to true

    XMLWordPrintable

    Details

    • Commits:
      18e77550f149722e0554f24ddfa326e03a9fef10 2bf765c5d9b568398a30c43d9b54cfd99ac0b828

      Description

      After upgrading to this compiler, a regular configure -developer-build / make (shadow build) does not try to build qtdeclarative - I have to do it manually. Then there is this error:

      g++ -c -O2 -pipe -march=corei7 -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_PLUGIN -DQT_SQL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/rutledge/dev/qt57/qtdeclarative/src/imports/localstorage -I. -I/home/rutledge/dev/qt57-dbg/qtbase/include -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtSql -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtQml/5.7.0 -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtQml/5.7.0/QtQml -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtCore/5.7.0 -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtCore/5.7.0/QtCore -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtQml -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtNetwork -I/home/rutledge/dev/qt57-dbg/qtbase/include/QtCore -I.moc -I/home/rutledge/dev/qt57/qtbase/mkspecs/linux-g++ -o .obj/plugin.o /home/rutledge/dev/qt57/qtdeclarative/src/imports/localstorage/plugin.cpp
      /home/rutledge/dev/qt57/qtdeclarative/src/imports/localstorage/plugin.cpp:152:126: error: self-comparison always evaluates to true [-Werror=tautological-compare]
       DEFINE_OBJECT_VTABLE(QV4::QQmlSqlDatabaseWrapper);
       

      So I comment that out in localstorage/plugin.cpp:

      //DEFINE_OBJECT_VTABLE(QV4::QQmlSqlDatabaseWrapper);
      

      Then I can build (and avoid using SQL from QML).

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-53373
          # Subject Branch Project Status CR V

            Activity

              People

              • Assignee:
                mmutz Marc Mutz
                Reporter:
                srutledg Shawn Rutledge
              • Votes:
                2 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: