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

Qt 5.12 build breaks with gcc 4.8 compiler

XMLWordPrintable

    • Linux/X11

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes