Package Details: tbb2020 2020.3-4

Git Clone URL: https://aur.archlinux.org/tbb2020.git (read-only, click to copy)
Package Base: tbb2020
Description: High level abstract threading library
Upstream URL: https://www.threadingbuildingblocks.org/
Licenses: Apache
Conflicts: intel-oneapi-tbb, tbb
Provides: intel-tbb, tbb
Submitter: apnkpr
Maintainer: apnkpr
Last Packager: apnkpr
Votes: 1
Popularity: 0.000582
First Submitted: 2022-10-23 11:01 (UTC)
Last Updated: 2022-12-03 06:12 (UTC)

Latest Comments

Shidao commented on 2024-01-10 06:22 (UTC)

@greve I've made a fix for this, here are patches to PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 18b208d..cd0bf2c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,11 +21,16 @@ depends=('gcc-libs')
 makedepends=('cmake' 'git' 'inetutils')
 provides=("tbb=$pkgver" "intel-tbb=$pkgver")
 conflicts=('tbb' 'intel-oneapi-tbb')
-source=(https://github.com/oneapi-src/oneTBB/archive/refs/tags/v${_pkgmajorver}.${_pkgminorver}.tar.gz)
-sha512sums=('ea1ffd22c7234d715b8c46a4e51b40719c7a9b8837ab3166f1da5a2c6061167c2be2126b1d74fd361eec6975b8fce0df26829ca2e7af8029edbb52e40f23d630')
+source=(https://github.com/oneapi-src/oneTBB/archive/refs/tags/v${_pkgmajorver}.${_pkgminorver}.tar.gz
+       GCC13-fix.patch)
+sha512sums=('ea1ffd22c7234d715b8c46a4e51b40719c7a9b8837ab3166f1da5a2c6061167c2be2126b1d74fd361eec6975b8fce0df26829ca2e7af8029edbb52e40f23d630'
+            '0c2175c19c17f1dfcdea1f42868bca7e1adbed3e68f81b9ffe9e981ea770400d274922466be900d492f2c6e869778af2841cf067f6966edede50719e03bb0570')

 build() {
   cd oneTBB-${_pkgmajorver}.${_pkgminorver}
+  for p in "${srcdir}"/*.patch; do
+    patch -p0 < "$p"
+  done
   make
 }

and the content of GCC13-fix.patch file:

--- include/tbb/task.h    2020-07-10 21:18:01.000000000 +0800
+++ include/tbb/task.h  2024-01-10 14:01:06.910555826 +0800
@@ -249,7 +249,7 @@
 #if __TBB_TASK_PRIORITY
         //! Pointer to the next offloaded lower priority task.
         /** Used to maintain a list of offloaded tasks inside the scheduler. **/
-        task* next_offloaded;
+       tbb::task* next_offloaded;
 #endif

 #if __TBB_PREVIEW_RESUMABLE_TASKS

greve commented on 2023-12-08 19:29 (UTC) (edited on 2023-12-08 19:30 (UTC) by greve)

Fails to build:

==> Making package: tbb2020 2020.3-4 (Fri 08 Dec 2023 08:29:41 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
Created the ./build/linux_intel64_gcc_cc13.2.1_libc2.38_kernel6.6.4_release directory
make -C "./build/linux_intel64_gcc_cc13.2.1_libc2.38_kernel6.6.4_release"  -r -f ../../build/Makefile.tbb cfg=release
make[1]: Entering directory '/home/nico/.cache/yay/tbb2020/src/oneTBB-2020.3/build/linux_intel64_gcc_cc13.2.1_libc2.38_kernel6.6.4_release'
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
../../build/Makefile.tbb:28: CONFIG: cfg=release arch=intel64 compiler=gcc target=linux runtime=cc13.2.1_libc2.38_kernel6.6.4
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
g++ -o concurrent_hash_map.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_hash_map.cpp
In file included from ../../src/tbb/concurrent_hash_map.cpp:17:
../../include/tbb/concurrent_hash_map.h: In constructor ‘tbb::interface5::internal::hash_map_base::hash_map_base()’:
../../include/tbb/concurrent_hash_map.h:131:24: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘struct tbb::interface5::internal::hash_map_base::bucket’ with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
  131 |             std::memset(my_embedded_segment, 0, sizeof(my_embedded_segment));
      |             ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../include/tbb/concurrent_hash_map.h:93:16: note: ‘struct tbb::interface5::internal::hash_map_base::bucket’ declared here
   93 |         struct bucket : tbb::internal::no_copy {
      |                ^~~~~~
../../include/tbb/concurrent_hash_map.h: At global scope:
../../include/tbb/concurrent_hash_map.h:347:23: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  347 |         : public std::iterator<std::forward_iterator_tag,Value>
      |                       ^~~~~~~~
In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61,
                 from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13.2.1/memory:66,
                 from ../../include/tbb/tbb_stddef.h:452,
                 from ../../include/tbb/concurrent_hash_map.h:23:
/usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
g++ -o concurrent_queue.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_queue.cpp
In file included from ../../src/tbb/concurrent_queue.cpp:22:
../../include/tbb/internal/_concurrent_queue_impl.h:749:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
  749 |         public std::iterator<std::forward_iterator_tag,Value> {
      |                     ^~~~~~~~
In file included from /usr/include/c++/13.2.1/bits/stl_construct.h:61,
                 from /usr/include/c++/13.2.1/bits/stl_tempbuf.h:61,
                 from /usr/include/c++/13.2.1/memory:66,
                 from ../../include/tbb/tbb_stddef.h:452,
                 from ../../src/tbb/concurrent_queue.cpp:17:
/usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
../../include/tbb/internal/_concurrent_queue_impl.h:1013:21: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
 1013 |         public std::iterator<std::forward_iterator_tag,Value> {
      |                     ^~~~~~~~
/usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
g++ -o concurrent_vector.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/concurrent_vector.cpp
g++ -o dynamic_link.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/dynamic_link.cpp
g++ -o itt_notify.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/itt_notify.cpp
g++ -o cache_aligned_allocator.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/cache_aligned_allocator.cpp
g++ -o pipeline.o -c -MMD -O2 -g -DDO_ITT_NOTIFY -DUSE_PTHREAD -pthread -m64 -mrtm  -fPIC -flifetime-dse=1 -D__TBB_BUILD=1 -Wall -Wextra -Wno-parentheses -Wno-sized-deallocation -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1   -I../../src -I../../src/rml/include -I../../include ../../src/tbb/pipeline.cpp
In file included from ../../include/tbb/pipeline.h:24,
                 from ../../src/tbb/pipeline.cpp:17:
../../include/tbb/task.h:300:20: error: declaration of ‘tbb::task& tbb::internal::task_prefix::task()’ changes meaning of ‘task’ [-Wchanges-meaning]
  300 |         tbb::task& task() {return *reinterpret_cast<tbb::task*>(this+1);}
      |                    ^~~~
../../include/tbb/task.h:252:9: note: used here to mean ‘class tbb::task’
  252 |         task* next_offloaded;
      |         ^~~~
../../include/tbb/task.h:43:7: note: declared here
   43 | class task;
      |       ^~~~
make[1]: *** [../../build/common_rules.inc:80: pipeline.o] Error 1
make[1]: Leaving directory '/home/nico/.cache/yay/tbb2020/src/oneTBB-2020.3/build/linux_intel64_gcc_cc13.2.1_libc2.38_kernel6.6.4_release'
make: *** [Makefile:29: tbb] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: tbb2020-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
tbb2020 - exit status 4

apnkpr commented on 2022-12-03 06:16 (UTC)

I've update provides to include tbb, but I'm not sure what you meant by renaming source? Could you show a diff?

FabioLolix commented on 2022-12-02 23:00 (UTC)

Hello,

  • provides tbb is missing
  • please rename source to be unique using ${pkgname}-${pkgver}.tar.gz::