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

qt5.15.12 compile issues gcc13

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.15.12
    • None
    • This test was on Ubuntu 23.10
    • Linux/X11

    Description

      gcc13.2 compile fails

      make[5]: Entering directory '/qt-everywhere-src-5.15.12/qtlocation/src/3rdparty/mapbox-gl-native'
      g++ -c -m64 -pipe -DNDEBUG -DQT_IMAGE_DECODERS -DQT_BUILD_MAPBOXGL_LIB -DRAPIDJSON_HAS_STDSTRING=1 -DMBGL_USE_GLES2 -D__QT__ -O3 -ftemplate-depth=1024 -fvisibility-inlines-hidden -fvisibility=hidden -DMBGL_VERSION_REV=\"qt-v1.5.0\" -O2 -fPIC -std=c++1y -w -D_REENTRANT -fvisibility=hidden -fvisibility-inlines-hidden -DQT_NO_LINKED_LIST -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_LINKED_LIST -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHAREDMEMORY -DQT_SYSTEMSEMAPHORE -I. -Ideps/boost/1.65.1 -Ideps/boost/1.65.1/include -Ideps/earcut/0.12.4 -Ideps/earcut/0.12.4/include -Ideps/geojson/0.4.2 -Ideps/geojson/0.4.2/include -Ideps/geojsonvt/6.5.1 -Ideps/geojsonvt/6.5.1/include -Ideps/geometry/0.9.3 -Ideps/geometry/0.9.3/include -Ideps/kdbush/0.1.1-1 -Ideps/kdbush/0.1.1-1/include -Ideps/optional/f27e7908 -Ideps/optional/f27e7908/include -Ideps/polylabel/1.0.3 -Ideps/polylabel/1.0.3/include -Ideps/protozero/1.5.2 -Ideps/protozero/1.5.2/include -Ideps/rapidjson/1.1.0 -Ideps/rapidjson/1.1.0/include -Ideps/shelf-pack/2.1.1 -Ideps/shelf-pack/2.1.1/include -Ideps/supercluster/0.2.2 -Ideps/supercluster/0.2.2/include -Ideps/tao_tuple/28626e99 -Ideps/tao_tuple/28626e99/include -Ideps/unique_resource/cba309e -Ideps/unique_resource/cba309e/include -Ideps/variant/1.1.4 -Ideps/variant/1.1.4/include -Ideps/vector-tile/1.0.2 -Ideps/vector-tile/1.0.2/include -Ideps/wagyu/0.4.3 -Ideps/wagyu/0.4.3/include -Iinclude -Iplatform/default -Iplatform/qt -Iplatform/qt/include -Isrc -Ivendor/nunicode/include -I/qt-everywhere-src-5.15.12/qtbase/include/QtNetwork/5.15.12 -I/qt-everywhere-src-5.15.12/qtbase/include/QtNetwork/5.15.12/QtNetwork -I/qt-everywhere-src-5.15.12/qtbase/include/QtGui/5.15.12 -I/qt-everywhere-src-5.15.12/qtbase/include/QtGui/5.15.12/QtGui -I/qt-everywhere-src-5.15.12/qtbase/include/QtSql/5.15.12 -I/qt-everywhere-src-5.15.12/qtbase/include/QtSql/5.15.12/QtSql -I/qt-everywhere-src-5.15.12/qtbase/include/QtCore/5.15.12 -I/qt-everywhere-src-5.15.12/qtbase/include/QtCore/5.15.12/QtCore -I/qt-everywhere-src-5.15.12/qtbase/include -I/qt-everywhere-src-5.15.12/qtbase/include/QtNetwork -I/qt-everywhere-src-5.15.12/qtbase/include/QtGui -I/qt-everywhere-src-5.15.12/qtbase/include/QtSql -I/qt-everywhere-src-5.15.12/qtbase/include/QtCore -I.moc -I/qt-everywhere-src-5.15.12/qtbase/mkspecs/linux-g++-64 -o .obj/platform/qt/src/qt_image.o platform/qt/src/qt_image.cpp
      
      In file included from include/mbgl/util/image.hpp:4,              
      from platform/qt/src/qt_image.cpp:1:include/mbgl/util/geometry.hpp:9:24: error: found ':' in nested-name-specifier, expected '::' 9 | enum class FeatureType : uint8_t {
      

      Apparently gcc13 requires some #include <cstdint>
      My fix (perhaps the <cstdint>'s could be better placed):

      sed -i '6i #include <cstdint>' qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/geometry.hpp
      sed -i '7i #include <cstdint>' qtlocation/src/3rdparty/mapbox-gl-native/include/mbgl/util/string.hpp
      sed -i '4i #include <cstdint>' qtlocation/src/3rdparty/mapbox-gl-native/src/mbgl/gl/stencil_mode.hpp
      

       
       

      Attachments

        Issue Links

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

          Activity

            People

              paangele Paolo Angelelli
              emre@biochem.uthscsa.edu emre@biochem.uthscsa.edu
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes