[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
91/145: gnu: tbb-2020: Use ld.gold to work around segfaults in check pha
From: |
guix-commits |
Subject: |
91/145: gnu: tbb-2020: Use ld.gold to work around segfaults in check phase. |
Date: |
Mon, 10 Jan 2022 11:44:14 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 6039545571962ff2a7b5e277eaa3c8d1365d9936
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Dec 23 00:50:53 2021 -0500
gnu: tbb-2020: Use ld.gold to work around segfaults in check phase.
* gnu/packages/tbb.scm (tbb-2020)
[configure-flags]: Use -fuse-ld=gold in CFLAGS.
[native-inputs]: Add ld-gold-wrapper.
---
gnu/packages/tbb.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm
index 427f281686..e5d8394f5f 100644
--- a/gnu/packages/tbb.scm
+++ b/gnu/packages/tbb.scm
@@ -89,7 +89,8 @@ tasks, synchronization primitives, atomic operations, and
more.")
(arguments
`(#:test-target "test"
#:make-flags (list (string-append "LDFLAGS=-Wl,-rpath="
- (assoc-ref %outputs "out") "/lib"))
+ (assoc-ref %outputs "out") "/lib")
+ "CFLAGS=-fuse-ld=gold")
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fail-on-test-errors
@@ -121,6 +122,13 @@ tasks, synchronization primitives, atomic operations, and
more.")
(copy-recursively "doc" doc)
(copy-recursively "examples" examples)
(copy-recursively "include" include)))))))
+ (native-inputs
+ ;; XXX: For some reason, since commit "gnu: binutils: Absorb
+ ;; binutils-next", the build of just this version of TBB crashes during
+ ;; tests. Workaround it by linking the binaries with ld.gold.
+ (list (module-ref (resolve-interface
+ '(gnu packages commencement))
+ 'ld-gold-wrapper)))
(home-page "https://www.threadingbuildingblocks.org")
(synopsis "C++ library for parallel programming")
(description
- 54/145: gnu: tracker: Add python to native inputs., (continued)
- 54/145: gnu: tracker: Add python to native inputs., guix-commits, 2022/01/10
- 137/145: gnu: rust-predicates-2: Update to 2.0.3., guix-commits, 2022/01/10
- 87/145: gnu: python-pysam: Update to 0.18.0., guix-commits, 2022/01/10
- 121/145: gnu: python-openpyxl: Update to 3.0.9., guix-commits, 2022/01/10
- 61/145: gnu: python-typing: Update to 3.10.0.0., guix-commits, 2022/01/10
- 107/145: gnu: arcanist: Remove obsolete phase., guix-commits, 2022/01/10
- 84/145: gnu: htslib: Update to 1.14., guix-commits, 2022/01/10
- 76/145: gnu: python2-matplotlib: Update to 2.2.5., guix-commits, 2022/01/10
- 82/145: gnu: poetry: Update to 1.1.12., guix-commits, 2022/01/10
- 88/145: gnu: Add plfit., guix-commits, 2022/01/10
- 91/145: gnu: tbb-2020: Use ld.gold to work around segfaults in check phase.,
guix-commits <=
- 129/145: build/python: Improve error output in sanity check., guix-commits, 2022/01/10
- 66/145: gnu: python-flit: Update to 3.5.1, enable tests and apply guix style., guix-commits, 2022/01/10
- 60/145: gnu: python-flit-core: Propagate python-tomli instead of python-toml., guix-commits, 2022/01/10
- 98/145: gnu: go-golang-org-x-crypto: Remove obsolete phase., guix-commits, 2022/01/10
- 114/145: gnu: glib: Update to 2.70.2., guix-commits, 2022/01/10
- 108/145: gnu: python-pdfminer-six: Remove obsolete phase., guix-commits, 2022/01/10