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

LTS 5.15 fails to build with GCC 11 (C++17)

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P1: Critical
    • Resolution: Fixed
    • 5.15
    • 5.15.10
    • Build tools: moc
    • None
    • Linux/Other display system
    • 2022wk14FOAndroid&Automotive

    Description

      Error encountered:

      g++ -c -pipe -g -Wall -Wextra -D_REENTRANT -fPIC -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_TESTLIB_LIB -DQT_DBUS_LIB -DQT_CONCURRENT_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/tiaarnip/src/tqtc-qt5/build/qtbase/tests/auto/tools/moc"' -I/home/tiaarnip/src/tqtc-qt5/qtbase/tests/auto/tools/moc -I. -I/home/tiaarnip/src/tqtc-qt5/qtbase/tests/auto/tools/moc/testproject/include -I/home/tiaarnip/src/tqtc-qt5/qtbase/tests/auto/tools/moc/testproject -I../../../../include -I../../../../include/QtTest -I../../../../include/QtDBus -I../../../../include/QtConcurrent -I../../../../include/QtNetwork -I../../../../include/QtSql -I../../../../include/QtCore -I.moc -I/home/tiaarnip/src/tqtc-qt5/qtbase/mkspecs/linux-g++ -o .obj/moc_cxx11-enums.o .moc/moc_cxx11-enums.cppIn file included from .moc/moc_task189996.cpp:10:.moc/../../../../../../../qtbase/tests/auto/tools/moc/task189996.h:43:14: error: ISO C++17 does not allow dynamic exception specifications43 | void d() throw(int) { }| ^~~~~.moc/../../../../../../../qtbase/tests/auto/tools/moc/task189996.h:44:20: error: ISO C++17 does not allow dynamic exception specifications44 | void e() const throw(int,double) { }| ^~~~~make[5]: *** [Makefile:12282: .obj/moc_task189996.o] Error 1
      

       

      Setup used to build:

      Heading 1 Heading 2
      OS Fedora 35
      GCC 11.2.1
      commit ID 78c9de58c0eaa559220484a1f8822bc1c53b0a99
      configure command line developer-build -skip qtwebengine -skip qt3d -prefix /mnt/linux/Qt/5.15.8/gcc_64-developer_build

       

      As a side note, adding

      -c++std c++14

      to the configure command line did not help. Seems like it doesn't get passed down to this Makefile.

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-102129
          # Subject Branch Project Status CR V

          Activity

            People

              villevoutilainen_qt Ville Voutilainen
              tomifon Tomi Fontanilles (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