From: Hemanth Kumar M D <[email protected]>

Add missing <cstdint> include in src/gn/pool.h for int64_t.

Fixes:
| ../sources/gn-0+git/src/gn/pool.h:26:3: error: 'int64_t' does not name a type

Upstream-Status: Submitted [https://gn-review.googlesource.com/c/gn/+/22740]

Signed-off-by: Hemanth Kumar M D <[email protected]>
---
 ...001-gn-fix-build-with-gcc-16-on-musl.patch | 33 +++++++++++++++++++
 meta/recipes-devtools/gn/gn_git.bb            |  4 ++-
 2 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-devtools/gn/files/0001-gn-fix-build-with-gcc-16-on-musl.patch

diff --git 
a/meta/recipes-devtools/gn/files/0001-gn-fix-build-with-gcc-16-on-musl.patch 
b/meta/recipes-devtools/gn/files/0001-gn-fix-build-with-gcc-16-on-musl.patch
new file mode 100644
index 0000000000..e933c17d8a
--- /dev/null
+++ b/meta/recipes-devtools/gn/files/0001-gn-fix-build-with-gcc-16-on-musl.patch
@@ -0,0 +1,33 @@
+From 6d22f5c9e96811f1abcedd8fb1849fe72747b5c4 Mon Sep 17 00:00:00 2001
+From: Hemanth Kumar M D <[email protected]>
+Date: Mon, 11 May 2026 02:43:10 -0700
+Subject: [PATCH] gn: fix build with GCC 16 on musl
+
+Add missing <cstdint> include in src/gn/pool.h for int64_t.
+
+Fixes:
+| ../sources/gn-0+git/src/gn/pool.h:26:3: error: 'int64_t' does not name a type
+
+Upstream-Status: Submitted [https://gn-review.googlesource.com/c/gn/+/22740]
+
+Signed-off-by: Hemanth Kumar M D <[email protected]>
+
+---
+ src/gn/pool.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/gn/pool.h b/src/gn/pool.h
+index e03113608..247cb6425 100644
+--- a/src/gn/pool.h
++++ b/src/gn/pool.h
+@@ -6,6 +6,7 @@
+ #define TOOLS_GN_POOL_H_
+ 
+ #include <string>
++#include <cstdint>
+ 
+ #include "gn/item.h"
+ 
+-- 
+2.49.0
+
diff --git a/meta/recipes-devtools/gn/gn_git.bb 
b/meta/recipes-devtools/gn/gn_git.bb
index d2f61c2098..6047ab5e2b 100644
--- a/meta/recipes-devtools/gn/gn_git.bb
+++ b/meta/recipes-devtools/gn/gn_git.bb
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=0fca02217a5d49a14dfe2d11837bb34d"
 DEPENDS += "ninja-native"
 UPSTREAM_CHECK_COMMITS = "1"
 
-SRC_URI = "git://gn.googlesource.com/gn;protocol=https;branch=main"
+SRC_URI = "git://gn.googlesource.com/gn;protocol=https;branch=main \
+           file://0001-gn-fix-build-with-gcc-16-on-musl.patch \
+"
 SRCREV = "eab8a9f92dca9b8548a89d9e5eb6aeb8ac6bba77"
 PV = "0+git"
 
-- 
2.49.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#237282): 
https://lists.openembedded.org/g/openembedded-core/message/237282
Mute This Topic: https://lists.openembedded.org/mt/119387080/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to