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

Compile error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • 5.12.1
    • 5.12.0
    • Other
    • None
    • Linux 4.4.162-78-default #1 SMP Mon Nov 12 19:08:10 UTC 2018 (a013c8b) x86_64 x86_64 x86_64 GNU/Linux
      openSUSE Leap 42.3
      gcc (SUSE Linux) 4.8.5
    • Linux/X11

    Description

      I downloaded and extracted the file "qt-everywhere-src-5.12.0.tar.xz".

      I configured as follows:

       

      ./configure -v -prefix /usr/local/Qt-5.12.0-static -release -opensource -confirm-license -c+std c+11 -static -accessibility -fontconfig -skip qtdeclarative -skip qtconnectivity -skip qtmultimedia -no-qml-debug -qt-zlib -no-mtdev -no-journald -qt-libpng -qt-libjpeg -system-freetype -qt-harfbuzz -no-openssl -no-libproxy -no-glib -nomake examples -nomake tests -no-compile-examples -cups -no-evdev -no-dbus -no-eglfs -qreal double -no-opengl -skip qtlocation -skip qtsensors -skip qtwayland -skip qtgamepad -skip qtserialbus -skip coin -skip qt3d -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtspeech -skip qtwebengine

       

      I got the following error:

       

      g++ -c -o qutfcodec.o -std=c+11 -ffunction-sections -fdata-sections -g -g -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/qmake -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/qmake/library -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/qmake/generators -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/qmake/generators/unix -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/qmake/generators/win32 -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/qmake/generators/mac -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0 -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/5.12.0/QtCore -I../src/corelib/global -I/data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/mkspecs/linux-g+ -DQT_VERSION_STR=\"5.12.0\" -DQT_VERSION_MAJOR=5 -DQT_VERSION_MINOR=12 -DQT_VERSION_PATCH=0 -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DPROEVALUATOR_FULL -DQT_NO_FOREACH /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/src/corelib/codecs/qutfcodec.cpp
      In file included from /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/qendian.h:1:0,
      {{ from /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/src/corelib/codecs/qutfcodec.cpp:43:}}
      /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../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)}}
      {{ ^}}
      /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../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);}}
      {{ ^}}
      /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../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)}}
      {{ ^}}
      /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../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);}}
      {{ ^}}
      /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../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)}}
      {{ ^}}
      /data/trino/software/Qt5/qt-everywhere-src-5.12.0/qtbase/include/QtCore/../../src/corelib/global/qendian.h:96:42: error: from previous declaration 'constexpr T qbswap(T) [with T = double]'
      {{ template <typename T> Q_DECL_CONSTEXPR T qbswap(T source);}}
      {{ ^}}
      Makefile:379: recipe for target 'qutfcodec.o' failed
      gmake: *** [qutfcodec.o] Error 1
      guv@cetriolo:/data/trino/software/Qt5/qt-everywhere-src-5.12.0>

      Attachments

        Issue Links

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

          Activity

            People

              allan.jensen Allan Sandfeld Jensen
              theo Theo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes