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

Error building qtshadertools with Clang/MinGW

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • 6.5.3, 6.6
    • 6.5.2
    • Qt Shader Tools
    • None
    • Windows
    • fcc470ea9268f3ceb2bd2a830ba836f23541d185

    Description

      Compiler Clang 16.0.6 - MinGW 13.2.0.
      Platform Windows.
      Building qtshadertools causes errors like the following:


      [2484/6401] Building CXX object qtshadertools/src/glslang/CMakeFiles/BundledGlslang_Glslang.dir/__/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp.obj
      FAILED: qtshadertools/src/glslang/CMakeFiles/BundledGlslang_Glslang.dir/__/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp.obj
      C:\qt\clang-mingw-ucrt\bin\clang+.exe -DGLSLANG_OSINCLUDE_WIN32 -DNOMINMAX -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DUNICODE -DWIN32 -DWIN64 -DWINVER=0x0A00 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN32_WINNT=0x0A00 -D_WIN64 -IC:/qt/qt-build/qtshadertools/src/glslang/BundledGlslang_Glslang_autogen/include -IC:/qt/qt-src-6.5.2/qtshadertools/src/glslang/../3rdparty/glslang -IC:/qt/qt-src-6.5.2/qtbase/mkspecs/win32-clang-g+ -IC:/qt/qt-build/qtbase/include -DNDEBUG -O2 -fvisibility=hidden -fvisibility-inlines-hidden -w -fno-exceptions -Wno-ignored-attributes -Wa,-mbig-obj -std=c++17 -MD -MT qtshadertools/src/glslang/CMakeFiles/BundledGlslang_Glslang.dir/_/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp.obj -MF qtshadertools\src\glslang\CMakeFiles\BundledGlslang_Glslang.dir_\3rdparty\glslang\glslang\MachineIndependent\Initialize.cpp.obj.d -o qtshadertools/src/glslang/CMakeFiles/BundledGlslang_Glslang.dir/__/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp.obj -c C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp
      In file included from C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/Initialize.cpp:55:
      In file included from C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/Initialize.h:43:
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:648:18: error: unknown type name 'uint32_t'
      static const uint32_t LevelFlagBitOffset = 56;
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:661:22: error: unknown type name 'uint64_t'
      static constexpr uint64_t uniqueIdMask = (1LL << LevelFlagBitOffset) - 1;
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:662:18: error: unknown type name 'uint32_t'
      static const uint32_t MaxLevelInUniqueID = 127;
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:734:9: error: unknown type name 'uint64_t'
      uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:734:27: error: use of undeclared identifier 'uint32_t'
      uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:735:9: error: unknown type name 'uint64_t'
      uint64_t symbolId = symbol.getUniqueId();
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:931:9: error: unknown type name 'uint64_t'
      uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();
      ^
      C:/qt/qt-src-6.5.2/qtshadertools/src/3rdparty/glslang/glslang/MachineIndependent/SymbolTable.h:931:27: error: use of undeclared identifier 'uint32_t'
      uint64_t level = (uint32_t)currentLevel() > MaxLevelInUniqueID ? MaxLevelInUniqueID : currentLevel();

      ^

      8 errors generated.


      Suggested fix to overcome these errors:

      In the header
      qt-src-6.5.2\qtshadertools\src\3rdparty\glslang\glslang\Include\Common.h

      add at line 56
      #include <cstdint>

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            lgdev Mario Rossi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes