fix build error on gcc13 36/294336/2 tizen
authorInki Dae <inki.dae@samsung.com>
Fri, 16 Jun 2023 07:14:03 +0000 (16:14 +0900)
committerInki Dae <inki.dae@samsung.com>
Fri, 16 Jun 2023 07:33:36 +0000 (16:33 +0900)
Change-Id: I4e5f6e33646df371e75168b448a048c6fd28c277
Signed-off-by: Inki Dae <inki.dae@samsung.com>
packaging/0001-fix-build-error-on-gcc13.patch [new file with mode: 0644]
packaging/libarmcl.spec

diff --git a/packaging/0001-fix-build-error-on-gcc13.patch b/packaging/0001-fix-build-error-on-gcc13.patch
new file mode 100644 (file)
index 0000000..aa1df87
--- /dev/null
@@ -0,0 +1,53 @@
+From 233359500613d262d98141a7bc385dc17e70febd Mon Sep 17 00:00:00 2001
+From: Inki Dae <inki.dae@samsung.com>
+Date: Fri, 16 Jun 2023 15:57:14 +0900
+Subject: [PATCH] fix build error on gcc13
+
+Signed-off-by: Inki Dae <inki.dae@samsung.com>
+---
+ arm_compute/core/Strides.h            | 1 +
+ arm_compute/core/Types.h              | 2 ++
+ arm_compute/core/utils/misc/Utility.h | 2 ++
+ 3 files changed, 5 insertions(+)
+
+diff --git a/arm_compute/core/Strides.h b/arm_compute/core/Strides.h
+index 265799e41..b59ebb0d6 100644
+--- a/arm_compute/core/Strides.h
++++ b/arm_compute/core/Strides.h
+@@ -30,6 +30,7 @@
+ #include <algorithm>
+ #include <array>
+ #include <cstddef>
++#include <cstdint>
+
+ namespace arm_compute
+ {
+diff --git a/arm_compute/core/Types.h b/arm_compute/core/Types.h
+index 59ba5aabb..4747ddd31 100644
+--- a/arm_compute/core/Types.h
++++ b/arm_compute/core/Types.h
+@@ -38,6 +38,8 @@
+ #include <cstdint>
+ #include <map>
+ #include <string>
++#include <cstring>
++#include <iterator>
+ #include <utility>
+
+ namespace arm_compute
+diff --git a/arm_compute/core/utils/misc/Utility.h b/arm_compute/core/utils/misc/Utility.h
+index 646d66567..e392e95ef 100644
+--- a/arm_compute/core/utils/misc/Utility.h
++++ b/arm_compute/core/utils/misc/Utility.h
+@@ -24,6 +24,8 @@
+ #ifndef ARM_COMPUTE_MISC_UTILITY_H
+ #define ARM_COMPUTE_MISC_UTILITY_H
+
++#include <cstdint>
++#include <cstring>
+ #include <algorithm>
+ #include <array>
+ #include <limits>
+--
+2.25.1
+
index 898a6f91a8660b46d084fa2cd67270f07b8c2b4e..c1ed96f08c131758ecdfe92159e3fe67945b952d 100644 (file)
@@ -19,6 +19,8 @@ BuildRequires: scons
 %define BENCHMARK_TEST         1
 %endif
 
+Patch0: 0001-fix-build-error-on-gcc13.patch
+
 %description
 The ARM Computer Vision and Machine Learning library is a set of functions optimised for both ARM CPUs and GPUs using SIMD technologies
 
@@ -39,6 +41,8 @@ Summary:      Sample application and benchmark binaries to test ARM Compute Library
 %prep
 %setup -q
 
+%patch0 -p1
+
 %build
 cp %{SOURCE1001} .