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

benchmarks\qfile compile error on top of S60 SDK5.0 public version and RCVT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.6.1
    • 4.6.0
    • None
    • None
    • OS: WinXP sp3. G++
      compiler: mingw32-g++ (GCC) 3.4.5
      RCVT: ARM/Thumb C/C++ Compiler, RVCT2.2 [Build 686]
      OS: WinXP sp3.
      G++ compiler: mingw32-g++ (GCC) 3.4.5
      RCVT: ARM/Thumb C/C++ Compiler, RVCT2.2 [Build 686]
    • 8a09d0dfe1010a4b56afa448ff9ee7bb9bdd7427

    Description

      benchmarks\qfile compile error on top of S60 public SDK 5.0 and RCVT.
      configuration cmd line: configure -platform win32-g++ -xplatform symbian-abld -nokia-developer -nomake demos -nomake example
      make cmd line: make release-armv6

      compile error as below:
      ===
      make -s -r -f "\EPOC32\BUILD\Qt4.6_20091127103606\tests\benchmarks\qfile\QFILE_0XE23A8B54\ARMV6\QFI
      LE_0XE23A8B54.ARMV6" UREL
      main.cpp
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 136: Error: #282: the global scope ha
      s no "_exit"
      ::_exit(1);
      ^
      "\Qt4.6_20091127103606\include\QtCore/../../src/corelib/kernel/qmetatype.h", line 200: Error: #135:
      class "QMetaTypeId<tst_qfile::BenchmarkType>" has no member "qt_metatype_id"
      static inline int qt_metatype_id()

      { return QMetaTypeId<T>::qt_metatype_id(); }

      ^
      detected during:
      instantiation of "int QMetaTypeId2<T>::qt_metatype_id() [with T=tst_qfile::BenchmarkType
      ]" at line 210
      instantiation of "int qMetaTypeId(T *) [with T=tst_qfile::BenchmarkType]" at line 168 of
      "\Qt4.6_20091127103606\include\QtTest/../../src/testlib/qtestcase.h"
      instantiation of "void QTest::addColumn(const char *, T *) [with T=tst_qfile::BenchmarkT
      ype]" at line 205 of "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp"
      "\Qt4.6_20091127103606\include\QtCore/../../src/corelib/kernel/qmetatype.h", line 200: Error: #135:
      class "QMetaTypeId<QIODevice::OpenModeFlag>" has no member "qt_metatype_id"
      static inline int qt_metatype_id()

      { return QMetaTypeId<T>::qt_metatype_id(); }

      ^
      detected during:
      instantiation of "int QMetaTypeId2<T>::qt_metatype_id() [with T=QIODevice::OpenModeFlag]
      " at line 210
      instantiation of "int qMetaTypeId(T *) [with T=QIODevice::OpenModeFlag]" at line 168 of
      "\Qt4.6_20091127103606\include\QtTest/../../src/testlib/qtestcase.h"
      instantiation of "void QTest::addColumn(const char *, T *) [with T=QIODevice::OpenModeFl
      ag]" at line 207 of "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp"
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 298: Warning: #111-D: statement is un
      reachable
      break;
      ^
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 375: Warning: #111-D: statement is un
      reachable
      break;
      ^
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 456: Warning: #111-D: statement is un
      reachable
      break;
      ^
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 641: Warning: #111-D: statement is un
      reachable
      break;
      ^
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 645: Error: #793: explicit specializa
      tion of class "QMetaTypeId<tst_qfile::BenchmarkType>" must precede its first use
      Q_DECLARE_METATYPE(tst_qfile::BenchmarkType)
      ^
      "\Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp", line 647: Error: #793: explicit specializa
      tion of class "QMetaTypeId<QIODevice::OpenModeFlag>" must precede its first use
      Q_DECLARE_METATYPE(QIODevice::OpenModeFlag)
      ^
      \Qt4.6_20091127103606\tests\benchmarks\qfile\main.cpp: 4 warnings, 5 errors
      ======

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            liuuvjie liujie (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes