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

Qt 5.12 build breaks with gcc 4.8 compiler

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11

      Description

      Building Qt 5.12 breaks with the following message:

      /home/ghguest/src/qtbase/src/corelib/global/qendian.cpp:41:0:
      /home/ghguest/src/qtbase/src/corelib/global/qendian.h:165:61: error:
      redeclaration 'constexpr T qbswap(T) [with T = qfloat16]' differs in
      'constexpr'
      template <> inline qfloat16 qbswap<qfloat16>(qfloat16 source)
      ^
      /home/ghguest/src/qtbase/src/corelib/global/qendian.h:96:42: error: from
      previous declaration 'constexpr T qbswap(T) [with T = qfloat16]'
      template <typename T> Q_DECL_CONSTEXPR T qbswap(T source);
      ^
      /home/ghguest/src/qtbase/src/corelib/global/qendian.h:170:52: error:
      redeclaration 'constexpr T qbswap(T) [with T = float]' differs in 'constexpr'
      template <> inline float qbswap<float>(float source)
      ^
      /home/ghguest/src/qtbase/src/corelib/global/qendian.h:96:42: error: from
      previous declaration 'constexpr T qbswap(T) [with T = float]'
      template <typename T> Q_DECL_CONSTEXPR T qbswap(T source);
      ^
      /home/ghguest/src/qtbase/src/corelib/global/qendian.h:175:55: error:
      redeclaration 'constexpr T qbswap(T) [with T = double]' differs in 'constexpr'
      template <> inline double qbswap<double>(double source)
      

      The break may come from this change:
      https://code.qt.io/cgit/qt/qtbase.git/commit/src/corelib/global/qendian.h?h=5.12.0&id=95476bfcf64aa9cb43775ebfe3410ce9565de4d5

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                villevoutilainen_qt Ville Voutilainen
                Reporter:
                karimpinter Karim Pinter
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes