[vlc-commits] [Git][videolan/vlc][master] contrib: glslang: fix missing stdint for gcc 15
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sun Oct 26 04:31:16 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
553a7b65 by Khalid Masum at 2025-10-25T13:59:01+00:00
contrib: glslang: fix missing stdint for gcc 15
GCC 15 change:
https://gcc.gnu.org/gcc-15/porting_to.html#header-dep-changes
stdint is missing due to this change.
The issue is fixed glslang upstream. Backport the patch here to
compile glslang properly.
Fixes: #29413
- - - - -
2 changed files:
- contrib/src/glslang/rules.mak
- + contrib/src/glslang/spirv-add-missing-cstdint-include.patch
Changes:
=====================================
contrib/src/glslang/rules.mak
=====================================
@@ -25,6 +25,7 @@ $(TARBALLS)/glslang-$(GLSLANG_VERSION).tar.gz:
glslang: glslang-$(GLSLANG_VERSION).tar.gz .sum-glslang
$(UNPACK)
$(APPLY) $(SRC)/glslang/glslang-win32.patch
+ $(APPLY) $(SRC)/glslang/spirv-add-missing-cstdint-include.patch
$(MOVE)
GLSLANG_CONF := -DENABLE_GLSLANG_BINARIES=OFF -DENABLE_CTEST=OFF
=====================================
contrib/src/glslang/spirv-add-missing-cstdint-include.patch
=====================================
@@ -0,0 +1,27 @@
+From 3a79afb1f561acfc4b2986945efa20a394f6090e Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyich at gmail.com>
+Date: Fri, 2 Aug 2024 22:44:21 +0100
+Subject: [PATCH] SPIRV/SpvBuilder.h: add missing <cstdint> include
+
+Without the change `glslang` build fails on upcoming `gcc-15` as:
+
+ In file included from /build/source/SPIRV/GlslangToSpv.cpp:45:
+ SPIRV/SpvBuilder.h:248:30: error: 'uint32_t' has not been declared
+ 248 | Id makeDebugLexicalBlock(uint32_t line);
+ | ^~~~~~~~
+---
+ SPIRV/SpvBuilder.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/SPIRV/SpvBuilder.h b/SPIRV/SpvBuilder.h
+index f86dd81b3b..d688436a6e 100644
+--- a/SPIRV/SpvBuilder.h
++++ b/SPIRV/SpvBuilder.h
+@@ -56,6 +56,7 @@ namespace spv {
+ }
+
+ #include <algorithm>
++#include <cstdint>
+ #include <map>
+ #include <memory>
+ #include <set>
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/553a7b65a81b64b9e6d4ad8f6d8910554b07a453
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/553a7b65a81b64b9e6d4ad8f6d8910554b07a453
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list