diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2021-05-07 14:39:03 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-05-07 15:59:02 +0800 |
commit | e4f4b5b3d0c56470fa769d9351043119c6137e01 (patch) | |
tree | b31b897563b223cb1e63ac4423cae19168198be7 | |
parent | 49d97ea0acdadda7870033ca7b1a1a1fd0d5b48f (diff) | |
download | meta-intel-e4f4b5b3d0c56470fa769d9351043119c6137e01.tar.gz |
openvino-inference-engine: fix build with gcc11
Include the header explicitly to avoid failures:
| inference-engine/src/plugin_api/ie_system_conf.h:21:31: error: 'exception_ptr' in namespace 'std' does not name a type; did you mean 'exception'?
| 21 | INFERENCE_ENGINE_API_CPP(std::exception_ptr&) CurrentException();
| | ^~~~~~~~~~~~~
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
2 files changed, 37 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-plugin_api-fix-build-with-gcc-11.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-plugin_api-fix-build-with-gcc-11.patch new file mode 100644 index 00000000..4b83a948 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0001-plugin_api-fix-build-with-gcc-11.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 0ecaaf9098dc22b5503dfbce5cf629525e1dd237 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anuj Mittal <anuj.mittal@intel.com> | ||
3 | Date: Fri, 7 May 2021 14:30:03 +0800 | ||
4 | Subject: [PATCH] plugin_api: fix build with gcc 11 | ||
5 | |||
6 | Some C++ Standard Library headers have been changed in gcc 11 to no | ||
7 | longer include other headers that they do need to depend on. | ||
8 | |||
9 | Include exception explicitly to avoid: | ||
10 | |||
11 | | inference-engine/src/plugin_api/ie_system_conf.h:21:31: error: 'exception_ptr' in namespace 'std' does not name a type; did you mean 'exception'? | ||
12 | | 21 | INFERENCE_ENGINE_API_CPP(std::exception_ptr&) CurrentException(); | ||
13 | | | ^~~~~~~~~~~~~ | ||
14 | |||
15 | Upstream-Status: Submitted [https://github.com/openvinotoolkit/openvino/pull/5546] | ||
16 | |||
17 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
18 | --- | ||
19 | inference-engine/src/plugin_api/ie_system_conf.h | 1 + | ||
20 | 1 file changed, 1 insertion(+) | ||
21 | |||
22 | diff --git a/inference-engine/src/plugin_api/ie_system_conf.h b/inference-engine/src/plugin_api/ie_system_conf.h | ||
23 | index c0e4cbb8b..56d5fb488 100644 | ||
24 | --- a/inference-engine/src/plugin_api/ie_system_conf.h | ||
25 | +++ b/inference-engine/src/plugin_api/ie_system_conf.h | ||
26 | @@ -11,6 +11,7 @@ | ||
27 | |||
28 | #include "ie_api.h" | ||
29 | #include <vector> | ||
30 | +#include <exception> | ||
31 | |||
32 | namespace InferenceEngine { | ||
33 | |||
34 | -- | ||
35 | 2.30.2 | ||
36 | |||
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb index a6f4e416..e9dd6ab9 100644 --- a/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/openvino-inference-engine_2021.3.bb | |||
@@ -13,6 +13,7 @@ SRC_URI = "git://github.com/openvinotoolkit/openvino.git;protocol=git;branch=rel | |||
13 | file://0002-cldNN-disable-Werror.patch \ | 13 | file://0002-cldNN-disable-Werror.patch \ |
14 | file://0003-inference-engine-installation-fixes.patch \ | 14 | file://0003-inference-engine-installation-fixes.patch \ |
15 | file://0001-dont-install-licenses-and-version-file.patch \ | 15 | file://0001-dont-install-licenses-and-version-file.patch \ |
16 | file://0001-plugin_api-fix-build-with-gcc-11.patch \ | ||
16 | " | 17 | " |
17 | 18 | ||
18 | SRCREV = "18e83a217702c650280c6abfc43f3285a3aadb61" | 19 | SRCREV = "18e83a217702c650280c6abfc43f3285a3aadb61" |