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