new file mode 100644
@@ -0,0 +1,35 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 23 Jun 2026 00:00:00 +0000
+Subject: [PATCH] reader.h: include <cstdint> for uintmax_t/intmax_t
+
+GCC 16 / newer libstdc++ no longer transitively pull in <cstdint> via
+other standard headers. reader.h uses uintmax_t and intmax_t (in the
+readULEB128/readSLEB128 prototypes) without directly including the
+header that declares them, which fails to compile with:
+
+ error: 'uintmax_t' was not declared in this scope
+ error: 'intmax_t' was not declared in this scope
+
+Include <cstdint> explicitly to provide these fixed-width integer types.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ libpstack/reader.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libpstack/reader.h b/libpstack/reader.h
+index 1111111..2222222 100644
+--- a/libpstack/reader.h
++++ b/libpstack/reader.h
+@@ -1,6 +1,7 @@
+ #ifndef pstack_reader_h
+ #define pstack_reader_h
+
++#include <cstdint>
+ #include <climits>
+ #include <iostream>
+ #include <memory>
+--
+2.49.0
@@ -9,7 +9,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=671019a96ba80415b696240ed2ca5e80"
DEPENDS = "tcl virtual/libx11 libxt zip-native"
-SRC_URI = "git://github.com/peadar/pstack;branch=v2.12-maint;tag=v${PV};protocol=https;tag=v${PV}"
+SRC_URI = "git://github.com/peadar/pstack;branch=v2.12-maint;tag=v${PV};protocol=https;tag=v${PV} \
+ file://0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch \
+ "
SRCREV = "98c4ddb7f0faa5221ea0a5f38105fc2a2f5cbfe7"
PACKAGES =+ "${PN}-lib"
@@ -5,4 +5,5 @@ PV = "2.11"
SRC_URI = "git://github.com/peadar/pstack.git;branch=master;protocol=https \
file://0001-tests-fix-the-issue-of-cross-compilation-failure.patch \
+ file://0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch \
"
GCC 16 / libstdc++ no longer transitively pulls in cstdint so reader.h fails to find uintmax_t/intmax_t. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...clude-cstdint-for-uintmax_t-intmax_t.patch | 35 +++++++++++++++++++ .../recipes-devtools/pstack/pstack_2.12.2.bb | 4 ++- meta-oe/recipes-devtools/pstack/pstack_git.bb | 1 + 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 meta-oe/recipes-devtools/pstack/files/0001-reader.h-include-cstdint-for-uintmax_t-intmax_t.patch