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

Compile errors using g++ 6.2.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: 5.7.0, 5.7.1
    • Fix Version/s: 5.7.2
    • Labels:
      None
    • Environment:
      Ubuntu 16.04 LTS 64 bit
      g++ 6.2.0

      Description

      1. Configure Qt.
        I did it outside the source directory using:
        -developer-build -opensource -nomake examples -nomake tests -confirm-license
        
      2. Try building it.
        You run into compile errors:
        g++ -c -include .pch/Qt5Qml -pipe -fno-delete-null-pointer-checks -fno-lifetime-dse -Wno-c++0x-compat -g -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wno-c++0x-compat -Wvla -Wdate-time -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_TSLIB -DQT_NO_URL_CAST_FROM_STRING -DQT_NO_INTEGER_EVENT_COORDINATES -DWTF_EXPORT_PRIVATE= -DJS_EXPORT_PRIVATE= -DENABLE_ASSEMBLER_WX_EXCLUSIVE=1 -DWTFReportAssertionFailure=qmlWTFReportAssertionFailure -DWTFReportBacktrace=qmlWTFReportBacktrace -DWTFInvokeCrashHook=qmlWTFInvokeCrashHook -DENABLE_LLINT=0 -DENABLE_DFG_JIT=0 -DENABLE_DFG_JIT_UTILITY_METHODS=1 -DENABLE_JIT_CONSTANT_BLINDING=0 -DBUILDING_QT__ -DWTF_USE_UDIS86=0 -DQT_BUILD_QML_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NETWORK_LIB -DQT_CORE_LIB -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml -I. -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/memory -I. -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/compiler -I. -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/jit -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/assembler -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/runtime -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/wtf -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/stubs -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/stubs/wtf -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/disassembler -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/3rdparty/masm/disassembler/udis86 -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jit -I. -I.generated -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime -I. -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/debugger -I/home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/animations -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtQml -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtQml/5.7.1 -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtQml/5.7.1/QtQml -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtCore/5.7.1 -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtCore/5.7.1/QtCore -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtNetwork -I/home/qtrob/dev/g++-6.2.0/qt-5.7.1-pre/qtbase/include/QtCore -I.moc -I/home/qtrob/dev/src/qt-5.7.1-pre/qtbase/mkspecs/linux-g++ -o .obj/qv4sequenceobject.o /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:586:9: error: '#pragma' is not allowed here
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:586:26: error: specializing member 'QV4::QQmlSequence<QVector<int> >::static_vtbl' requires 'template<>' syntax
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:586:27: error: expected '}' before end of line
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:586:27: error: expected declaration before end of line
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:160:16: error: 'QString convertElementToString(bool)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:153:16: error: 'QString convertElementToString(qreal)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:148:16: error: 'QString convertElementToString(const QItemSelectionRange&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:143:16: error: 'QString convertElementToString(const QModelIndex&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:138:16: error: 'QString convertElementToString(const QUrl&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:133:16: error: 'QString convertElementToString(int)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:128:16: error: 'QString convertElementToString(const QString&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:123:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, bool)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:118:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, qreal)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:111:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, const QItemSelectionRange&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:105:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, const QModelIndex&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:100:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, const QUrl&)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:95:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, int)' defined but not used [-Werror=unused-function]
        /home/qtrob/dev/src/qt-5.7.1-pre/qtdeclarative/src/qml/jsruntime/qv4sequenceobject.cpp:90:27: error: 'QV4::ReturnedValue convertElementToValue(QV4::ExecutionEngine*, const QString&)' defined but not used [-Werror=unused-function]
        cc1plus: all warnings being treated as errors
        

        (full log)

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes