From: Hemanth Kumar M D Date: Tue, 19 May 2026 07:25:31 +0000 (-0700) Subject: gn: fix build with GCC 16 on musl X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43c3204f016ff2635db186f2e6519258f47101d4;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git gn: fix build with GCC 16 on musl Add missing 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 Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie --- 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 +Date: Mon, 11 May 2026 02:43:10 -0700 +Subject: [PATCH] gn: fix build with GCC 16 on musl + +Add missing 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 + +--- + 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 ++#include + + #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"