diff options
| author | Henry Tung | 2025-05-09 23:45:34 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-05-31 21:10:42 +0000 |
| commit | 6706c8a6e358857e916737f5e0bb41d40003de26 (patch) | |
| tree | 39e39de12aeb3030fe411af604de3798cd2bd03e | |
| parent | a2ac2c5ea3ccde68ad08fe4188e94090d8cf2e3c (diff) | |
| download | openwrt-6706c8a6e358857e916737f5e0bb41d40003de26.tar.gz | |
tools/llvm-bpf: fix compilation with GCC15
Add cstdint include to SmallVector.h.
Backported from
https://github.com/llvm/llvm-project/commit/7e44305041d96b064c197216b931ae3917a34ac1.
Signed-off-by: Henry Tung <henryptung@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18767
Signed-off-by: Robert Marko <robimarko@gmail.com>
(cherry picked from commit 53054fead58aeba61b592473e26b1798452856c3)
| -rw-r--r-- | tools/llvm-bpf/patches/100-gcc15.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tools/llvm-bpf/patches/100-gcc15.patch b/tools/llvm-bpf/patches/100-gcc15.patch new file mode 100644 index 0000000000..5b92af04e4 --- /dev/null +++ b/tools/llvm-bpf/patches/100-gcc15.patch @@ -0,0 +1,23 @@ +From 7e44305041d96b064c197216b931ae3917a34ac1 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Fri, 2 Aug 2024 23:07:21 +0100 +Subject: [PATCH] [ADT] Add `<cstdint>` to SmallVector (#101761) + +SmallVector uses `uint32_t`, `uint64_t` without including `<cstdint>` +which fails to build w/ GCC 15 after a change in libstdc++ [0] + +[0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2 +--- + llvm/include/llvm/ADT/SmallVector.h | 1 + + 1 file changed, 1 insertion(+) + +--- a/llvm/include/llvm/ADT/SmallVector.h ++++ b/llvm/include/llvm/ADT/SmallVector.h +@@ -19,6 +19,7 @@ + #include <algorithm> + #include <cassert> + #include <cstddef> ++#include <cstdint> + #include <cstdlib> + #include <cstring> + #include <functional> |