diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/fix-build-with-gcc13.patch')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/files/fix-build-with-gcc13.patch | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/fix-build-with-gcc13.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/fix-build-with-gcc13.patch deleted file mode 100644 index 9e1aa93c..00000000 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/fix-build-with-gcc13.patch +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | From f8ad3f859aadc6c81ccc667eee1439cc2e6113cf Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Tue, 30 May 2023 09:31:09 +0800 | ||
4 | Subject: [PATCH] fix build with gcc13 | ||
5 | |||
6 | * Include the headers as per: | ||
7 | https://gcc.gnu.org/gcc-13/porting_to.html | ||
8 | |||
9 | * Remove -Werror for: | ||
10 | |git/src/plugins/intel_gpu/src/kernel_selector/jitter.h:129:28: error: 'virtual kernel_selector::JitDefinitions kernel_selector::JitConstant::GetDefinitions() const' was hidden [-Werror=overloaded-virtual=] | ||
11 | | 129 | virtual JitDefinitions GetDefinitions() const = 0; | ||
12 | | | ^~~~~~~~~~~~~~ | ||
13 | |||
14 | * Fix: | ||
15 | | /data/poky/build/tmp/work/x86-64-v3-poky-linux/openvino-inference-engine/2022.3.0-r0/git/src/inference/include/ie/ie_precision.hpp: In member function 'bool InferenceEngine::Precision::operator==(const InferenceEngine::Precision&) const': | ||
16 | | /data/poky/build/tmp/work/x86-64-v3-poky-linux/openvino-inference-engine/2022.3.0-r0/git/src/inference/include/ie/ie_precision.hpp:153:36: error: ambiguous overload for 'operator==' (operand types are 'const InferenceEngine::Precision::ePrecision' and 'const InferenceEngine::Precision') | ||
17 | | 153 | return precisionInfo.value == p && precisionInfo.bitsSize == p.precisionInfo.bitsSize && | ||
18 | | | ~~~~~~~~~~~~~~~~~~~ ^~ ~ | ||
19 | | | | | | ||
20 | | | | const InferenceEngine::Precision | ||
21 | | | const InferenceEngine::Precision::ePrecision | ||
22 | | /data/poky/build/tmp/work/x86-64-v3-poky-linux/openvino-inference-engine/2022.3.0-r0/git/src/inference/include/ie/ie_precision.hpp:152:10: note: candidate: 'bool InferenceEngine::Precision::operator==(const InferenceEngine::Precision&) const' (reversed) | ||
23 | | 152 | bool operator==(const Precision& p) const noexcept { | ||
24 | | | ^~~~~~~~ | ||
25 | | /data/poky/build/tmp/work/x86-64-v3-poky-linux/openvino-inference-engine/2022.3.0-r0/git/src/inference/include/ie/ie_precision.hpp:153:36: note: candidate: 'operator==(InferenceEngine::Precision::ePrecision, InferenceEngine::Precision::ePrecision)' (built-in) | ||
26 | | 153 | return precisionInfo.value == p && precisionInfo.bitsSize == p.precisionInfo.bitsSize && | ||
27 | | | ~~~~~~~~~~~~~~~~~~~~^~~~ | ||
28 | |||
29 | Upstream-Status: Pending | ||
30 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
31 | |||
32 | --- | ||
33 | src/inference/include/ie/ie_precision.hpp | 2 +- | ||
34 | src/plugins/intel_gpu/CMakeLists.txt | 6 +++--- | ||
35 | 2 files changed, 4 insertions(+), 4 deletions(-) | ||
36 | |||
37 | diff --git a/src/inference/include/ie/ie_precision.hpp b/src/inference/include/ie/ie_precision.hpp | ||
38 | index 48bdd945b13..96c29b73159 100644 | ||
39 | --- a/src/inference/include/ie/ie_precision.hpp | ||
40 | +++ b/src/inference/include/ie/ie_precision.hpp | ||
41 | @@ -149,7 +149,7 @@ public: | ||
42 | * @return `true` if values represent the same precisions, `false` otherwise | ||
43 | */ | ||
44 | bool operator==(const Precision& p) const noexcept { | ||
45 | - return precisionInfo.value == p && precisionInfo.bitsSize == p.precisionInfo.bitsSize && | ||
46 | + return precisionInfo.value == p.precisionInfo.value && precisionInfo.bitsSize == p.precisionInfo.bitsSize && | ||
47 | areSameStrings(precisionInfo.name, p.precisionInfo.name); | ||
48 | } | ||
49 | |||
50 | diff --git a/src/plugins/intel_gpu/CMakeLists.txt b/src/plugins/intel_gpu/CMakeLists.txt | ||
51 | index 948aecfcfec..a1b9783068b 100644 | ||
52 | --- a/src/plugins/intel_gpu/CMakeLists.txt | ||
53 | +++ b/src/plugins/intel_gpu/CMakeLists.txt | ||
54 | @@ -36,9 +36,9 @@ set(INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include") | ||
55 | |||
56 | add_subdirectory(thirdparty) | ||
57 | |||
58 | -if(CMAKE_COMPILER_IS_GNUCXX) | ||
59 | - ie_add_compiler_flags(-Werror) | ||
60 | -endif() | ||
61 | +#if(CMAKE_COMPILER_IS_GNUCXX) | ||
62 | +# ie_add_compiler_flags(-Werror) | ||
63 | +#endif() | ||
64 | |||
65 | add_subdirectory(src/runtime) | ||
66 | add_subdirectory(src/kernel_selector) | ||
67 | -- | ||
68 | 2.34.1 | ||
69 | |||