Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.1, 5.7.0 RC
-
None
-
Arch Linux
gcc (GCC) 6.1.1 20160501
-
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
- duplicates
-
QTBUG-52057 Undefined behavior in QV4::ExecutionEngine::newArrayObject lead to crashes
- Closed
- is duplicated by
-
QTBUG-56266 qtdeclarative doesn't build with gcc 6 as developer-build
- Closed
For Gerrit Dashboard: QTBUG-53373 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
162828,1 | WIP get localstorage compiling again | wip/pointerhandler | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
162937,1 | localstorage: disable -Wtautological-compare on gcc | 5.7 | qt/qtdeclarative | Status: ABANDONED | 0 | 0 |
164108,5 | localstorage: disable warning about tautological comparison | 5.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
164358,4 | WIP localstorage: disable warning about tautological comparison | wip/pointerhandler | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
164726,29 | WIP blanket disable warning about tautological comparison | wip/pointerhandler | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
164866,2 | WIP blanket disable tautological comparison warning | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
168214,2 | disable tautological comparison warning with gcc 6 | 5.6 | qt/qtdeclarative | Status: ABANDONED | -1 | 0 |
168229,3 | QV4Object: fix GCC 6.1 tautologial compare warning | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
168282,2 | Revert "localstorage: disable warning about tautological comparison" | 5.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
168415,2 | WIP QV4Object: fix GCC 6.1 tautologial compare warning | wip/pointerhandler | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |