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

compilation error on QNX 6.6

    XMLWordPrintable

Details

    • bdd29d20d7d21d82170ffe2cb74412987210dd0d

    Description

      qcc -Vgcc_ntoarmv7le -c -Wno-psabi -lang-c++ -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_CLIPBOARD -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_DISABLE_DEPRECATED_BEFORE=0 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QML_LIB -DQT_TESTLIB_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"/work/build/qt/qtdeclarative/tests/auto/qml/v4misc\" -I/work/build/qt/qtbase/mkspecs/qnx-armv7le-qcc -I. -I/work/build/qt/qtbase/include/QtQml/5.3.0 -I/work/build/qt/qtbase/include/QtQml/5.3.0/QtQml -I/work/build/qt/qtbase/include -I/work/build/qt/qtbase/include/QtQml -I/work/build/qt/qtbase/include/QtTest -I/work/build/qt/qtbase/include/QtNetwork -I/work/build/qt/qtbase/include/QtCore/5.3.0 -I/work/build/qt/qtbase/include/QtCore/5.3.0/QtCore -I/work/build/qt/qtbase/include/QtGui -I/work/build/qt/qtbase/include/QtCore -I.moc -I/opt/qnx660/target/qnx6/usr/include -I/opt/qnx660/target/qnx6/usr/include/freetype2 -o .obj/tst_v4misc.o tst_v4misc.cpp
      qcc -Vgcc_ntoarmv7le -c -Wno-psabi -lang-c++ -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_CLIPBOARD -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_QMLTEST_DATADIR=\"/work/build/qt/qtdeclarative/tests/auto/qml/qqmlinstantiator/data\" -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QML_LIB -DQT_TESTLIB_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"/work/build/qt/qtdeclarative/tests/auto/qml/qqmlinstantiator\" -I/work/build/qt/qtbase/mkspecs/qnx-armv7le-qcc -I. -I../../shared -I/work/build/qt/qtbase/include/QtQml/5.3.0 -I/work/build/qt/qtbase/include/QtQml/5.3.0/QtQml -I/work/build/qt/qtbase/include -I/work/build/qt/qtbase/include/QtQml -I/work/build/qt/qtbase/include/QtGui/5.3.0 -I/work/build/qt/qtbase/include/QtGui/5.3.0/QtGui -I/work/build/qt/qtbase/include/QtTest -I/work/build/qt/qtbase/include/QtNetwork -I/work/build/qt/qtbase/include/QtCore/5.3.0 -I/work/build/qt/qtbase/include/QtCore/5.3.0/QtCore -I/work/build/qt/qtbase/include/QtGui -I/work/build/qt/qtbase/include/QtCore -I.moc -I/opt/qnx660/target/qnx6/usr/include -I/opt/qnx660/target/qnx6/usr/include/freetype2 -o .obj/tst_qqmlinstantiator.o tst_qqmlinstantiator.cpp
      In file included from /work/build/qt/qtbase/include/QtCore/qmetatype.h:1:0,
                       from /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:56,
                       from /work/build/qt/qtbase/include/QtCore/qobject.h:1,
                       from /work/build/qt/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:45,
                       from /work/build/qt/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /work/build/qt/qtbase/include/QtCore/QtCore:4,
                       from /work/build/qt/qtbase/include/QtTest/QtTestDepends:2,
                       from /work/build/qt/qtbase/include/QtTest/QtTest:3,
                       from tst_qv4debugger.cpp:41:
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h: In instantiation of 'constexpr int qMetaTypeId() [with T = long long unsigned int (*)(QV4::CallContext*)]':
      tst_qv4debugger.cpp:72:39:   required from here
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1614:5: error: static assertion failed: Type is not registered, please use the Q_DECLARE_METATYPE macro to make it known to Qt's meta-object system
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h: In instantiation of 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = long long unsigned int (*)(QV4::CallContext*)]':
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1615:44:   required from 'constexpr int qMetaTypeId() [with T = long long unsigned int (*)(QV4::CallContext*)]'
      tst_qv4debugger.cpp:72:39:   required from here
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1475:97: error: 'qt_metatype_id' is not a member of 'QMetaTypeId<long long unsigned int (*)(QV4::CallContext*)>'
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1475:100: error: body of constexpr function 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = long long unsigned int (*)(QV4::CallContext*)]' not a return-statement
      tst_qv4debugger.cpp:99:1: error: specialization of 'QMetaTypeId<long long unsigned int (*)(QV4::CallContext*)>' after instantiation
      tst_qv4debugger.cpp:99:1: error: redefinition of 'struct QMetaTypeId<long long unsigned int (*)(QV4::CallContext*)>'
      In file included from /work/build/qt/qtbase/include/QtCore/qmetatype.h:1:0,
                       from /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qobject.h:56,
                       from /work/build/qt/qtbase/include/QtCore/qobject.h:1,
                       from /work/build/qt/qtbase/include/QtCore/../../src/corelib/animation/qabstractanimation.h:45,
                       from /work/build/qt/qtbase/include/QtCore/qabstractanimation.h:1,
                       from /work/build/qt/qtbase/include/QtCore/QtCore:4,
                       from /work/build/qt/qtbase/include/QtTest/QtTestDepends:2,
                       from /work/build/qt/qtbase/include/QtTest/QtTest:3,
                       from tst_qv4debugger.cpp:41:
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1467:8: error: previous definition of 'struct QMetaTypeId<long long unsigned int (*)(QV4::CallContext*)>'
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h: In static member function 'static constexpr int QMetaTypeId2<T>::qt_metatype_id() [with T = long long unsigned int (*)(QV4::CallContext*)]':
      /work/build/qt/qtbase/include/QtCore/../../src/corelib/kernel/qmetatype.h:1475:100: warning: control reaches end of non-void function [-Wreturn-type]
      cc: /opt/qnx660/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.6.0eabi/4.7.3/cc1plus error 1
      make[5]: *** [.obj/tst_qv4debugger.o] Error 1
      make[5]: Leaving directory `/work/build/qt/qtdeclarative/tests/auto/qml/qv4debugger'
      make[4]: *** [sub-qv4debugger-make_first] Error 2
      make[4]: *** Waiting for unfinished jobs....
      

      Attachments

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

        Activity

          People

            seahumad [BB] Sergio Ahumada (Inactive)
            seahumad [BB] Sergio Ahumada (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes