summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-support/tbb/tbb/0001-Fix-suppress-new-GCC-12-13-warnings-1192.patch57
-rw-r--r--meta-oe/recipes-support/tbb/tbb/0001-hwloc_detection.cmake-remove-cross-compiation-check.patch33
-rw-r--r--meta-oe/recipes-support/tbb/tbb_2021.12.0.bb (renamed from meta-oe/recipes-support/tbb/tbb_2021.11.0.bb)8
3 files changed, 3 insertions, 95 deletions
diff --git a/meta-oe/recipes-support/tbb/tbb/0001-Fix-suppress-new-GCC-12-13-warnings-1192.patch b/meta-oe/recipes-support/tbb/tbb/0001-Fix-suppress-new-GCC-12-13-warnings-1192.patch
deleted file mode 100644
index 489f011b84..0000000000
--- a/meta-oe/recipes-support/tbb/tbb/0001-Fix-suppress-new-GCC-12-13-warnings-1192.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1From e131071769ee3df51b56b053ba6bfa06ae9eff25 Mon Sep 17 00:00:00 2001
2From: Dmitri Mokhov <dmitri.n.mokhov@intel.com>
3Date: Mon, 11 Sep 2023 10:35:07 -0500
4Subject: [PATCH] Fix/suppress new GCC 12/13 warnings (#1192)
5
6Upstream-Status: Backport [https://github.com/oneapi-src/oneTBB/commit/e131071769ee3df51b56b053ba6bfa06ae9eff25]
7Signed-off-by: Dmitri Mokhov <dmitri.n.mokhov@intel.com>
8---
9 .../oneapi/tbb/detail/_concurrent_unordered_base.h | 2 +-
10 src/tbb/concurrent_monitor.h | 12 +++++++++++-
11 2 files changed, 12 insertions(+), 2 deletions(-)
12
13diff --git a/include/oneapi/tbb/detail/_concurrent_unordered_base.h b/include/oneapi/tbb/detail/_concurrent_unordered_base.h
14index ade91c33..40829208 100644
15--- a/include/oneapi/tbb/detail/_concurrent_unordered_base.h
16+++ b/include/oneapi/tbb/detail/_concurrent_unordered_base.h
17@@ -921,7 +921,7 @@ private:
18 node_allocator_traits::deallocate(dummy_node_allocator, node, 1);
19 } else {
20 // GCC 11.1 issues a warning here that incorrect destructor might be called for dummy_nodes
21- #if (__TBB_GCC_VERSION >= 110100 && __TBB_GCC_VERSION < 130000 ) && !__clang__ && !__INTEL_COMPILER
22+ #if (__TBB_GCC_VERSION >= 110100 && __TBB_GCC_VERSION < 140000 ) && !__clang__ && !__INTEL_COMPILER
23 volatile
24 #endif
25 value_node_ptr val_node = static_cast<value_node_ptr>(node);
26diff --git a/src/tbb/concurrent_monitor.h b/src/tbb/concurrent_monitor.h
27index 3d20ef5b..3e5c4beb 100644
28--- a/src/tbb/concurrent_monitor.h
29+++ b/src/tbb/concurrent_monitor.h
30@@ -1,5 +1,5 @@
31 /*
32- Copyright (c) 2005-2021 Intel Corporation
33+ Copyright (c) 2005-2023 Intel Corporation
34
35 Licensed under the Apache License, Version 2.0 (the "License");
36 you may not use this file except in compliance with the License.
37@@ -290,7 +290,17 @@ public:
38 n = my_waitset.front();
39 if (n != end) {
40 my_waitset.remove(*n);
41+
42+// GCC 12.x-13.x issues a warning here that to_wait_node(n)->my_is_in_list might have size 0, since n is
43+// a base_node pointer. (This cannot happen, because only wait_node pointers are added to my_waitset.)
44+#if (__TBB_GCC_VERSION >= 120100 && __TBB_GCC_VERSION < 140000 ) && !__clang__ && !__INTEL_COMPILER
45+#pragma GCC diagnostic push
46+#pragma GCC diagnostic ignored "-Wstringop-overflow"
47+#endif
48 to_wait_node(n)->my_is_in_list.store(false, std::memory_order_relaxed);
49+#if (__TBB_GCC_VERSION >= 120100 && __TBB_GCC_VERSION < 140000 ) && !__clang__ && !__INTEL_COMPILER
50+#pragma GCC diagnostic pop
51+#endif
52 }
53 }
54
55--
562.43.0
57
diff --git a/meta-oe/recipes-support/tbb/tbb/0001-hwloc_detection.cmake-remove-cross-compiation-check.patch b/meta-oe/recipes-support/tbb/tbb/0001-hwloc_detection.cmake-remove-cross-compiation-check.patch
deleted file mode 100644
index 640b131703..0000000000
--- a/meta-oe/recipes-support/tbb/tbb/0001-hwloc_detection.cmake-remove-cross-compiation-check.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From 7ffc1eba8596544d6e3af0fd5f4004fff6d56f84 Mon Sep 17 00:00:00 2001
2From: Naveen Saini <naveen.kumar.saini@intel.com>
3Date: Wed, 29 Nov 2023 15:48:57 +0800
4Subject: [PATCH] hwloc_detection.cmake: remove cross-compiation check
5
6This check is preventing pkgconfig to
7search for hwloc under cross-compilation.
8
9pkgconfig able to find hwloc pkg from sysroot.
10
11Upstream-Status: Inappropriate
12
13Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
14---
15 cmake/hwloc_detection.cmake | 2 --
16 1 file changed, 2 deletions(-)
17
18diff --git a/cmake/hwloc_detection.cmake b/cmake/hwloc_detection.cmake
19index 47233b17..5a7e84c3 100644
20--- a/cmake/hwloc_detection.cmake
21+++ b/cmake/hwloc_detection.cmake
22@@ -46,8 +46,6 @@ endforeach()
23 unset(HWLOC_TARGET_NAME)
24
25 if (NOT HWLOC_TARGET_EXPLICITLY_DEFINED AND
26- # No hwloc auto detection for cross compilation
27- NOT CMAKE_CROSSCOMPILING AND
28 NOT TBB_DISABLE_HWLOC_AUTOMATIC_SEARCH
29 )
30 find_package(PkgConfig QUIET)
31--
322.37.3
33
diff --git a/meta-oe/recipes-support/tbb/tbb_2021.11.0.bb b/meta-oe/recipes-support/tbb/tbb_2021.12.0.bb
index 318cd87643..ed5dc04866 100644
--- a/meta-oe/recipes-support/tbb/tbb_2021.11.0.bb
+++ b/meta-oe/recipes-support/tbb/tbb_2021.12.0.bb
@@ -13,11 +13,8 @@ DEPENDS:append:class-target = " hwloc"
13PE = "1" 13PE = "1"
14 14
15BRANCH = "onetbb_2021" 15BRANCH = "onetbb_2021"
16SRCREV = "8b829acc65569019edb896c5150d427f288e8aba" 16SRCREV = "9afd759b72c0c233cd5ea3c3c06b0894c9da9c54"
17SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH} \ 17SRC_URI = "git://github.com/oneapi-src/oneTBB.git;protocol=https;branch=${BRANCH}"
18 file://0001-hwloc_detection.cmake-remove-cross-compiation-check.patch \
19 file://0001-Fix-suppress-new-GCC-12-13-warnings-1192.patch \
20"
21S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"
22 19
23inherit cmake pkgconfig 20inherit cmake pkgconfig
@@ -26,6 +23,7 @@ inherit cmake pkgconfig
26EXTRA_OECMAKE += " \ 23EXTRA_OECMAKE += " \
27 -DTBB_TEST=OFF \ 24 -DTBB_TEST=OFF \
28 -DCMAKE_BUILD_TYPE=Release \ 25 -DCMAKE_BUILD_TYPE=Release \
26 -DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=OFF \
29 " 27 "
30 28
31# Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi) 29# Hard-float 'd' ABI can't be used for a target that doesn't support the D instruction set extension (ignoring target-abi)