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

qtbase: sub-tests suite compile is failing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Build tools: moc
    • Labels:
      None

      Description

       

      I'm not sure how can I report issue against qtbase-everywhere

      $ make sub-tests
      [..]
      make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/qtbase-everywhere-src-5.15.2/tests/auto/tools/moc'
      g++ -c -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none -fdata-sections -ffunction-sections -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_DBUS_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/tkloczko/rpmbuild/BUILD/qtbase-everywhere-src-5.15.2/tests/auto/tools/moc"' -I. -Itestproject/include -Itestproject -I../../../../include -I../../../../include/QtTest -I../../../../include/QtDBus -I../../../../include/QtConcurrent -I../../../../include/QtNetwork -I../../../../include/QtSql -I../../../../include/QtCore -I.moc -I../../../../mkspecs/linux-g++ -o .obj/tst_moc.o tst_moc.cpp
      In file included from tst_moc.cpp:42:
      backslash-newlines.h:56:87: warning: backslash-newline at end of file
       56 | // ends with \\\r should not make moc crash (QTBUG-53441) (no new lines on purpose!!) \
       |
      backslash-newlines.h:56:1: warning: multi-line comment [-Wcomment]
       56 | // ends with \\\r should not make moc crash (QTBUG-53441) (no new lines on purpose!!) \
       | ^
      In file included from tst_moc.cpp:75:
      cxx-attributes.h:42:66: warning: ‘tst_moc::maybe_unused’ scoped attribute directive ignored [-Wattributes]
       42 | [[deprecated]] [[tst_moc::maybe_unused]] int deprecatedSlot2() { return 42; }
       | ^
      cxx-attributes.h:48:54: warning: ‘tst_moc::maybe_unused’ scoped attribute directive ignored [-Wattributes]
       48 | void slotWithArguments([[tst_moc::maybe_unused]] int) {}
       | ^~~
      cxx-attributes.h:52:57: warning: ‘tst_moc::noreturn’ scoped attribute directive ignored [-Wattributes]
       52 | Q_INVOKABLE [[tst_moc::noreturn]] void noreturnSlot() { throw "unused"; }
       | ^
      cxx-attributes.h:53:59: warning: ‘tst_moc::noreturn’ scoped attribute directive ignored [-Wattributes]
       53 | [[tst_moc::noreturn]] Q_SCRIPTABLE void noreturnSlot2() { throw "unused"; }
       | ^
      cxx-attributes.h:55:77: warning: ‘tst_moc::noreturn’ scoped attribute directive ignored [-Wattributes]
       55 | Q_SLOT [[tst_moc::noreturn]] [[deprecated]] void noreturnDeprecatedSlot() { throw "unused"; }
       | ^
      cxx-attributes.h:56:58: warning: ‘tst_moc::noreturn’ scoped attribute directive ignored [-Wattributes]
       56 | Q_INVOKABLE void noreturnSlot3() [[tst_moc::noreturn]] { throw "unused"; }
       | ^
      cxx-attributes.h:98:23: warning: ‘Flag2’ is deprecated [-Wdeprecated-declarations]
       98 | Any = Flag1 | Flag2 | Flag3
       | ^~~~~
      cxx-attributes.h:96:9: note: declared here
       96 | Flag2 TEST_COMPILER_DEPRECATION = 2,
       | ^~~~~
      cxx-attributes.h:98:31: warning: ‘Flag3’ is deprecated: reason [-Wdeprecated-declarations]
       98 | Any = Flag1 | Flag2 | Flag3
       | ^~~~~
      cxx-attributes.h:97:9: note: declared here
       97 | Flag3 TEST_COMPILER_DEPRECATION_X("reason") = 3,
       | ^~~~~
      tst_moc.cpp: In member function ‘void StructQObject::foo(ForwardDeclaredStruct*)’:
      tst_moc.cpp:324:18: warning: unused variable ‘unusedVariable’ [-Wunused-variable]
       324 | struct Inner unusedVariable;
       | ^~~~~~~~~~~~~~
      tst_moc.cpp: At global scope:
      tst_moc.cpp:521:5: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       521 | void const slotWithSillyConst() {}
       | ^~~~
      tst_moc.cpp:524:17: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       524 | Q_INVOKABLE void const slotWithSillyConst2() {}
       | ^~~~
      tst_moc.cpp:633:30: error: ISO C++17 does not allow dynamic exception specifications
       633 | void slotWithException() throw(MyStruct);
       | ^~~~~
      tst_moc.cpp:785:35: error: ISO C++17 does not allow dynamic exception specifications
       785 | void tst_Moc::slotWithException() throw(MyStruct)
       | ^~~~~
      In file included from tst_moc.cpp:1594:
      task189996.h:43:14: error: ISO C++17 does not allow dynamic exception specifications
       43 | void d() throw(int) { }
       | ^~~~~
      task189996.h:44:20: error: ISO C++17 does not allow dynamic exception specifications
       44 | void e() const throw(int,double) { }
       | ^~~~~
      tst_moc.cpp:1779:9: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
       1779 | const int returnConstInt() { return 0; }
       | ^~~~~
      In file included from ../../../../include/QtTest/qtestcase.h:1,
       from ../../../../include/QtTest/../../src/testlib/qtest.h:45,
       from ../../../../include/QtTest/qtest.h:1,
       from ../../../../include/QtTest/QtTest:11,
       from tst_moc.cpp:32:
      ../../../../include/QtTest/../../src/testlib/qtestcase.h: In instantiation of ‘bool QTest::qCompare(const T1&, const T2&, const char*, const char*, const char*, int) [with T1 = QVariant::Type; T2 = QMetaType::Type]’:
      tst_moc.cpp:3920:5: required from here
      ../../../../include/QtTest/../../src/testlib/qtestcase.h:449:34: warning: comparison between ‘const enum QVariant::Type’ and ‘const enum QMetaType::Type’ [-Wenum-compare]
       449 | return compare_helper(t1 == t2, "Compared values are not the same",
       | ~~~^~~~~
      ../../../../include/QtTest/../../src/testlib/qtestcase.h:449:34: warning: comparison between types ‘const QVariant::Type’ and ‘const QMetaType::Type’ [-Wsign-compare]
      In file included from tst_moc.cpp:41:
      single_function_keyword.h:50:26: warning: inline function ‘void SingleFunctionKeywordBeforeInline::mySignal()’ used but never defined
       50 | Q_SIGNAL inline void mySignal();
       | ^~~~~~~~
      single_function_keyword.h:61:26: warning: inline function ‘void SingleFunctionKeywordAfterInline::mySignal()’ used but never defined
       61 | inline Q_SIGNAL void mySignal();
       | ^~~~~~~~
      make[4]: *** [Makefile:12252: .obj/tst_moc.o] Error 1
      make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/qtbase-everywhere-src-5.15.2/tests/auto/tools/moc'
      make[3]: *** [Makefile:128: sub-moc-make_first] Error 2
      make[3]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/qtbase-everywhere-src-5.15.2/tests/auto/tools'
      make[2]: *** [Makefile:236: sub-tools-make_first] Error 2
      make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/qtbase-everywhere-src-5.15.2/tests/auto'
      make[1]: *** [Makefile:48: sub-auto-make_first] Error 2
      make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/qtbase-everywhere-src-5.15.2/tests'
      make: *** [Makefile:98: sub-tests] Error 2
       
      

       

        Attachments

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

          Activity

            People

            Assignee:
            fabiankosmale Fabian Kosmale
            Reporter:
            kloczek Tomasz Kloczko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes