GNU bug report logs -
#53724
[PATCH staging 0/2] gnu: tbb: Fix build on AArch64; update to 2021.5.0.
Previous Next
Reported by: Simon South <simon <at> simonsouth.net>
Date: Wed, 2 Feb 2022 14:42:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53724 in the body.
You can then email your comments to 53724 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#53724
; Package
guix-patches
.
(Wed, 02 Feb 2022 14:42:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Simon South <simon <at> simonsouth.net>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 02 Feb 2022 14:42:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
These patches
- Allow the tbb package to build on AArch64 by backporting an upstream commit
that prevents one of the test cases from failing on that platform[0], and
- Update tbb itself to 2021.5.0.
On x86-64 the updated package and its 320 dependents build for me without any
new failures: only dealii-openmpi, python-dolfin-adjoint, python-vedo and
shogun fail, as they all do presently on the staging branch.
On AArch64 the updated package now builds fine and I'm in the (lengthy)
process of checking its dependencies, though an unrelated build failure in
ceres-solver and the lack of a Haskell compiler limit how far this will go
anyway.
[0] See https://github.com/oneapi-src/oneTBB/issues/687
--
Simon South
simon <at> simonsouth.net
Simon South (2):
gnu: tbb: Fix test on AArch64.
gnu: tbb: Update to 2021.5.0.
gnu/local.mk | 1 +
.../patches/tbb-fix-test-on-aarch64.patch | 35 +++++++++++++++++++
gnu/packages/tbb.scm | 8 +++--
3 files changed, 42 insertions(+), 2 deletions(-)
create mode 100644 gnu/packages/patches/tbb-fix-test-on-aarch64.patch
base-commit: 1a5302435ff0d2822b823f5a6fe01faa7a85c629
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53724
; Package
guix-patches
.
(Wed, 02 Feb 2022 14:48:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 53724 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/tbb.scm (tbb): Update to 2021.5.0.
---
gnu/packages/tbb.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm
index ef92e6db69..e8fbc0f97e 100644
--- a/gnu/packages/tbb.scm
+++ b/gnu/packages/tbb.scm
@@ -31,7 +31,7 @@ (define-module (gnu packages tbb)
(define-public tbb
(package
(name "tbb")
- (version "2021.4.0")
+ (version "2021.5.0")
(source (origin
(method git-fetch)
(uri (git-reference
@@ -40,7 +40,7 @@ (define-public tbb
(file-name (git-file-name name version))
(sha256
(base32
- "0ih727g802j9lvwkqhw021bk1wb7xlvfgd0vl1i6jng4am1wv7vq"))))
+ "1z0pqzfx63zrmyqdvvkk8vl5dc0i0n5cimdkrypd50ig4d4yi7sc"))
(patches (list
;; Backport an upstream commit that prevents the
;; "test_eh_thread" test failing on AArch64.
--
2.34.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#53724
; Package
guix-patches
.
(Wed, 02 Feb 2022 14:48:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 53724 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/patches/tbb-fix-test-on-aarch64.patch: New file.
* gnu/local.mk: Add it.
* gnu/packages/tbb.scm (tbb)[source]: Apply it.
---
gnu/local.mk | 1 +
.../patches/tbb-fix-test-on-aarch64.patch | 35 +++++++++++++++++++
gnu/packages/tbb.scm | 4 +++
3 files changed, 40 insertions(+)
create mode 100644 gnu/packages/patches/tbb-fix-test-on-aarch64.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index dceaa53145..ab96d06a34 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1843,6 +1843,7 @@ dist_patch_DATA = \
%D%/packages/patches/tao-fix-parser-types.patch \
%D%/packages/patches/tar-remove-wholesparse-check.patch \
%D%/packages/patches/tar-skip-unreliable-tests.patch \
+ %D%/packages/patches/tbb-fix-test-on-aarch64.patch \
%D%/packages/patches/tcc-boot-0.9.27.patch \
%D%/packages/patches/tclxml-3.2-install.patch \
%D%/packages/patches/tcsh-fix-autotest.patch \
diff --git a/gnu/packages/patches/tbb-fix-test-on-aarch64.patch b/gnu/packages/patches/tbb-fix-test-on-aarch64.patch
new file mode 100644
index 0000000000..3a6003591e
--- /dev/null
+++ b/gnu/packages/patches/tbb-fix-test-on-aarch64.patch
@@ -0,0 +1,35 @@
+From 013035b4e9af39f506e87ae6b755c3363e768d4d Mon Sep 17 00:00:00 2001
+From: Vladislav Shchapov <phprus <at> gmail.com>
+Date: Thu, 23 Dec 2021 19:17:24 +0500
+Subject: [PATCH] Fix issue #687 (test_eh_thread) (#697)
+
+Signed-off-by: Vladislav Shchapov <phprus <at> gmail.com>
+---
+ test/tbb/test_eh_thread.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/test/tbb/test_eh_thread.cpp b/test/tbb/test_eh_thread.cpp
+index aa6d764d..af291f48 100644
+--- a/test/tbb/test_eh_thread.cpp
++++ b/test/tbb/test_eh_thread.cpp
+@@ -36,6 +36,7 @@
+ // TODO: enable limitThreads with sanitizer under docker
+ #if TBB_USE_EXCEPTIONS && !_WIN32 && !__ANDROID__
+
++#include <limits.h>
+ #include <sys/types.h>
+ #include <sys/time.h>
+ #include <sys/resource.h>
+@@ -73,7 +74,8 @@ public:
+ mValid = false;
+ pthread_attr_t attr;
+ // Limit the stack size not to consume all virtual memory on 32 bit platforms.
+- if (pthread_attr_init(&attr) == 0 && pthread_attr_setstacksize(&attr, 100*1024) == 0) {
++ std::size_t stacksize = utils::max(128*1024, PTHREAD_STACK_MIN);
++ if (pthread_attr_init(&attr) == 0 && pthread_attr_setstacksize(&attr, stacksize) == 0) {
+ mValid = pthread_create(&mHandle, &attr, thread_routine, /* arg = */ nullptr) == 0;
+ }
+ }
+--
+2.34.0
+
diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm
index e5d8394f5f..ef92e6db69 100644
--- a/gnu/packages/tbb.scm
+++ b/gnu/packages/tbb.scm
@@ -41,6 +41,10 @@ (define-public tbb
(sha256
(base32
"0ih727g802j9lvwkqhw021bk1wb7xlvfgd0vl1i6jng4am1wv7vq"))))
+ (patches (list
+ ;; Backport an upstream commit that prevents the
+ ;; "test_eh_thread" test failing on AArch64.
+ (search-patch "tbb-fix-test-on-aarch64.patch")))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags '("-DTBB_STRICT=OFF"))) ;; Don't fail on warnings
--
2.34.0
Reply sent
to
Ludovic Courtès <ludo <at> gnu.org>
:
You have taken responsibility.
(Sat, 05 Feb 2022 00:16:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Simon South <simon <at> simonsouth.net>
:
bug acknowledged by developer.
(Sat, 05 Feb 2022 00:16:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 53724-done <at> debbugs.gnu.org (full text, mbox):
Hello,
Simon South <simon <at> simonsouth.net> skribis:
> These patches
>
> - Allow the tbb package to build on AArch64 by backporting an upstream commit
> that prevents one of the test cases from failing on that platform[0], and
>
> - Update tbb itself to 2021.5.0.
>
> On x86-64 the updated package and its 320 dependents build for me without any
> new failures: only dealii-openmpi, python-dolfin-adjoint, python-vedo and
> shogun fail, as they all do presently on the staging branch.
>
> On AArch64 the updated package now builds fine and I'm in the (lengthy)
> process of checking its dependencies, though an unrelated build failure in
> ceres-solver and the lack of a Haskell compiler limit how far this will go
> anyway.
Perfect!
> gnu: tbb: Fix test on AArch64.
> gnu: tbb: Update to 2021.5.0.
It’s slightly above the limit stated in the manual but I thought it
would be reasonable to have it on ‘master’, so I did that.
Thank you!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 05 Mar 2022 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 168 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.