diff options
| author | Jose Quaresma <jose.quaresma@foundries.io> | 2023-06-22 09:41:08 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-06-22 07:53:13 -0700 |
| commit | 35231498962d0f3e75866c7e20ae6b2f87a2ae28 (patch) | |
| tree | 3538af19ee9fbfd9989e60ff7672a3fc5dae0064 /recipes-devtools | |
| parent | 71321ddf78ea522b87a6b4bffefb14c988a6d921 (diff) | |
| download | meta-clang-35231498962d0f3e75866c7e20ae6b2f87a2ae28.tar.gz | |
clang: fix build with yocto uninative gcc 13
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Diffstat (limited to 'recipes-devtools')
| -rw-r--r-- | recipes-devtools/clang/clang/0038-Add-missing-cstdint.patch | 32 | ||||
| -rw-r--r-- | recipes-devtools/clang/common.inc | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang/0038-Add-missing-cstdint.patch b/recipes-devtools/clang/clang/0038-Add-missing-cstdint.patch new file mode 100644 index 0000000..f6ef7ad --- /dev/null +++ b/recipes-devtools/clang/clang/0038-Add-missing-cstdint.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From ff1681ddb303223973653f7f5f3f3435b48a1983 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Sergei Trofimovich <slyich@gmail.com> | ||
| 3 | Date: Mon, 23 May 2022 08:03:23 +0100 | ||
| 4 | Subject: [PATCH] [Support] Add missing <cstdint> header to Signals.h | ||
| 5 | |||
| 6 | Without the change llvm build fails on this week's gcc-13 snapshot as: | ||
| 7 | |||
| 8 | [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o | ||
| 9 | In file included from llvm/lib/Support/Signals.cpp:14: | ||
| 10 | llvm/include/llvm/Support/Signals.h:119:8: error: variable or field 'CleanupOnSignal' declared void | ||
| 11 | 119 | void CleanupOnSignal(uintptr_t Context); | ||
| 12 | | ^~~~~~~~~~~~~~~ | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/llvm/llvm-project/commit/ff1681ddb303223973653f7f5f3f3435b48a1983] | ||
| 15 | |||
| 16 | Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io> | ||
| 17 | --- | ||
| 18 | llvm/include/llvm/Support/Signals.h | 1 + | ||
| 19 | 1 file changed, 1 insertion(+) | ||
| 20 | |||
| 21 | diff --git a/llvm/include/llvm/Support/Signals.h b/llvm/include/llvm/Support/Signals.h | ||
| 22 | index 44f5a750ff5cb..937e0572d4a72 100644 | ||
| 23 | --- a/llvm/include/llvm/Support/Signals.h | ||
| 24 | +++ b/llvm/include/llvm/Support/Signals.h | ||
| 25 | @@ -14,6 +14,7 @@ | ||
| 26 | #ifndef LLVM_SUPPORT_SIGNALS_H | ||
| 27 | #define LLVM_SUPPORT_SIGNALS_H | ||
| 28 | |||
| 29 | +#include <cstdint> | ||
| 30 | #include <string> | ||
| 31 | |||
| 32 | namespace llvm { | ||
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 77d7142..ad35128 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
| @@ -47,6 +47,7 @@ SRC_URI = "\ | |||
| 47 | file://0035-compiler-rt-Enable-__int128-for-ppc32.patch \ | 47 | file://0035-compiler-rt-Enable-__int128-for-ppc32.patch \ |
| 48 | file://0036-compiler-rt-builtins-Move-DMB-definition-to-syn-opsh.patch \ | 48 | file://0036-compiler-rt-builtins-Move-DMB-definition-to-syn-opsh.patch \ |
| 49 | file://0037-sanitizer-Remove-include-linux-fs.h-to-resolve-fscon.patch \ | 49 | file://0037-sanitizer-Remove-include-linux-fs.h-to-resolve-fscon.patch \ |
| 50 | file://0038-Add-missing-cstdint.patch \ | ||
| 50 | " | 51 | " |
| 51 | # Fallback to no-PIE if not set | 52 | # Fallback to no-PIE if not set |
| 52 | GCCPIE ??= "" | 53 | GCCPIE ??= "" |
