]> git.karo-electronics.de Git - meta-tx09.git/commitdiff
clang: add bbappend to fix build with updated gcc
authorFlorian Boor <florian.boor@kernelconcepts.de>
Wed, 22 May 2019 09:17:36 +0000 (11:17 +0200)
committerFlorian Boor <florian@kernelconcepts.de>
Tue, 23 Aug 2022 09:38:36 +0000 (11:38 +0200)
recipes-devtools/clang/clang_git.bbappend [new file with mode: 0644]
recipes-devtools/clang/files/0001-Fix-return-type-in-ORC-readMem-client-interface.patch [new file with mode: 0644]

diff --git a/recipes-devtools/clang/clang_git.bbappend b/recipes-devtools/clang/clang_git.bbappend
new file mode 100644 (file)
index 0000000..7a53f47
--- /dev/null
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI += "file://0001-Fix-return-type-in-ORC-readMem-client-interface.patch"
\ No newline at end of file
diff --git a/recipes-devtools/clang/files/0001-Fix-return-type-in-ORC-readMem-client-interface.patch b/recipes-devtools/clang/files/0001-Fix-return-type-in-ORC-readMem-client-interface.patch
new file mode 100644 (file)
index 0000000..21f8482
--- /dev/null
@@ -0,0 +1,31 @@
+From 5cea35478aaaac7728a50cbafd3770f96162f7ac Mon Sep 17 00:00:00 2001
+From: Tilmann Scheller <tschelle@redhat.com>
+Date: Thu, 1 Feb 2018 11:40:01 -0600
+Subject: [PATCH] Fix return type in ORC readMem() client interface.
+
+GCC 8.0.1 detects the type mismatch and causes the compilation to fail. Clang
+and earlier versions of GCC don't detect the issue.
+
+Fixes rhbz#1540620.
+---
+ include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
+index da02250ba16..bed472e2e0e 100644
+--- a/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
++++ b/include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
+@@ -713,8 +713,8 @@ private:
+   uint32_t getTrampolineSize() const { return RemoteTrampolineSize; }
+-  Expected<std::vector<char>> readMem(char *Dst, JITTargetAddress Src,
+-                                      uint64_t Size) {
++  Expected<std::vector<uint8_t>> readMem(char *Dst, JITTargetAddress Src,
++                                         uint64_t Size) {
+     // Check for an 'out-of-band' error, e.g. from an MM destructor.
+     if (ExistingError)
+       return std::move(ExistingError);
+-- 
+2.16.1
+