unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain.
@ 2022-07-20 14:49 Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 01/17] gnu: libomp-14: Reference llvm-14 version string Greg Hogan
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 14:49 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

This continues 03bc18dfcf3cea76be904b0dfbcdf3943ec2fe79 with the
addition of libomp packages for clang-toolchain versions 12 through 6
(the earliest version of clang-toolchain in GNU Guix).

$ ./pre-inst-env guix search clang-toolchain | recsel -p name,dependencies
name: clang-toolchain
dependencies: binutils@2.37 clang@14.0.6 glibc@2.33 ld-wrapper@0 libomp@14.0.6

name: clang-toolchain
dependencies: binutils@2.37 clang@13.0.1 glibc@2.33 ld-wrapper@0 libomp@13.0.1

name: clang-toolchain
dependencies: binutils@2.37 clang@12.0.1 glibc@2.33 ld-wrapper@0 libomp@12.0.1

name: clang-toolchain
dependencies: binutils@2.37 clang@11.0.0 glibc@2.33 ld-wrapper@0 libomp@11.0.0

name: clang-toolchain
dependencies: binutils@2.37 clang@10.0.1 glibc@2.33 ld-wrapper@0 libomp@10.0.1

name: clang-toolchain
dependencies: binutils@2.37 clang@9.0.1 glibc@2.33 ld-wrapper@0 libomp@9.0.1

name: clang-toolchain
dependencies: binutils@2.37 clang@8.0.1 glibc@2.33 ld-wrapper@0 libomp@8.0.1

name: clang-toolchain
dependencies: binutils@2.37 clang@7.1.0 glibc@2.33 ld-wrapper@0 libomp@7.1.0

name: clang-toolchain
dependencies: binutils@2.37 clang@6.0.1 glibc@2.33 ld-wrapper@0 libomp@6.0.1

Greg Hogan (17):
  gnu: libomp-14: Reference llvm-14 version string.
  gnu: libomp-13: Reference llvm-13 version string.
  gnu: Add libomp-12.
  gnu: clang-toolchain-12: Use libomp-12.
  gnu: Add libomp-11.
  gnu: clang-toolchain-11: Use libomp-11.
  gnu: Add libomp-10.
  gnu: clang-toolchain-10: Use libomp-10.
  gnu: Add libomp-9.
  gnu: clang-toolchain-9: Use libomp-9.
  gnu: Add libomp-8.
  gnu: clang-toolchain-8: Use libomp-8.
  gnu: Add libomp-7.
  gnu: clang-toolchain-7: Use libomp-7.
  gnu: Add libomp-6.
  gnu: clang-toolchain-6: Use libomp-6.
  gnu: make-clang-toolchain: Require explicit libomp.

 gnu/packages/llvm.scm | 145 ++++++++++++++++++++++++++++++++++++++----
 1 file changed, 132 insertions(+), 13 deletions(-)

-- 
2.37.0





^ permalink raw reply	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 01/17] gnu: libomp-14: Reference llvm-14 version string.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
@ 2022-07-20 15:08 ` Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 02/17] gnu: libomp-13: Reference llvm-13 " Greg Hogan
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:08 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-14): Reference llvm-14 version string.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 5a2f411eb2..175aa21208 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -663,7 +663,7 @@ (define-public clang-14
 (define-public libomp-14
   (package
     (name "libomp")
-    (version "14.0.6")
+    (version (package-version llvm-14))
     (source (origin
               (method url-fetch)
               (uri (llvm-uri "openmp" version))
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 02/17] gnu: libomp-13: Reference llvm-13 version string.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 01/17] gnu: libomp-14: Reference llvm-14 version string Greg Hogan
@ 2022-07-20 15:08 ` Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 03/17] gnu: Add libomp-12 Greg Hogan
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:08 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-13): Reference llvm-13 version string.
---
 gnu/packages/llvm.scm | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 175aa21208..faf4a42fd1 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -744,7 +744,7 @@ (define-public clang-13
 (define-public libomp-13
   (package
     (inherit libomp-14)
-    (version "13.0.1")
+    (version (package-version llvm-13))
     (source (origin
               (method url-fetch)
               (uri (llvm-uri "openmp" version))
@@ -1205,6 +1205,7 @@ (define-public clang-3.5
                    #:patches '("clang-3.5-libc-search-path.patch")))
 
 ;; Default LLVM and Clang version.
+(define-public libomp libomp-13)
 (define-public llvm llvm-13)
 (define-public clang-runtime clang-runtime-13)
 (define-public clang clang-13)
@@ -1582,8 +1583,6 @@ (define-public libclc
     ;; Apache license 2.0 with LLVM exception
     (license license:asl2.0)))
 
-(define-public libomp libomp-13)
-
 (define-public python-llvmlite
   (package
     (name "python-llvmlite")
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 03/17] gnu: Add libomp-12.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 01/17] gnu: libomp-14: Reference llvm-14 version string Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 02/17] gnu: libomp-13: Reference llvm-13 " Greg Hogan
@ 2022-07-20 15:08 ` Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 04/17] gnu: clang-toolchain-12: Use libomp-12 Greg Hogan
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:08 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-12): New variable.
---
 gnu/packages/llvm.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index faf4a42fd1..5896c0f3e4 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -855,6 +855,27 @@ (define-public clang-12
                       (base32
                        "1r9a4fdz9ci58b5z2inwvm4z4cdp6scrivnaw05dggkxz7yrwrb5")))))
 
+(define-public libomp-12
+  (package
+    (inherit libomp-13)
+    (version (package-version llvm-12))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "14dh0r6h2xh747ffgnsl4z08h0ri04azi9vf79cbz7ma1r27kzk0"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (arguments
+     '(#:configure-flags '("-DLIBOMP_USE_HWLOC=ON"
+                           "-DOPENMP_TEST_C_COMPILER=clang"
+                           "-DOPENMP_TEST_CXX_COMPILER=clang++")
+       #:test-target "check-libomp"))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-13)
+       (replace "clang" clang-12)
+       (replace "llvm" llvm-12)))))
+
 (define-public clang-toolchain-12
   (make-clang-toolchain clang-12))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 04/17] gnu: clang-toolchain-12: Use libomp-12.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (2 preceding siblings ...)
  2022-07-20 15:08 ` [bug#56666] [PATCH 03/17] gnu: Add libomp-12 Greg Hogan
@ 2022-07-20 15:08 ` Greg Hogan
  2022-07-20 15:08 ` [bug#56666] [PATCH 05/17] gnu: Add libomp-11 Greg Hogan
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:08 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-12): Switch dependency from the
default libomp-13 to libomp-12.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 5896c0f3e4..7353f92e9d 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -877,7 +877,7 @@ (define-public libomp-12
        (replace "llvm" llvm-12)))))
 
 (define-public clang-toolchain-12
-  (make-clang-toolchain clang-12))
+  (make-clang-toolchain clang-12 libomp-12))
 
 (define-public llvm-11
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 05/17] gnu: Add libomp-11.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (3 preceding siblings ...)
  2022-07-20 15:08 ` [bug#56666] [PATCH 04/17] gnu: clang-toolchain-12: Use libomp-12 Greg Hogan
@ 2022-07-20 15:08 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 06/17] gnu: clang-toolchain-11: Use libomp-11 Greg Hogan
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:08 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-11): New variable.
---
 gnu/packages/llvm.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 7353f92e9d..07c86b6354 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -909,6 +909,22 @@ (define-public clang-11
                       (base32
                        "02bcwwn54661madhq4nxc069s7p7pj5gpqi8ww50w3anbpviilzy")))))
 
+(define-public libomp-11
+  (package
+    (inherit libomp-12)
+    (version (package-version llvm-11))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "0k389d0g9zlfyzh1kpb3i5jdawzpn0hrdxzbjinpvdv7rbw4sw1d"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-12)
+       (replace "clang" clang-11)
+       (replace "llvm" llvm-11)))))
+
 (define-public clang-toolchain-11
   (make-clang-toolchain clang-11))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 06/17] gnu: clang-toolchain-11: Use libomp-11.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (4 preceding siblings ...)
  2022-07-20 15:08 ` [bug#56666] [PATCH 05/17] gnu: Add libomp-11 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 07/17] gnu: Add libomp-10 Greg Hogan
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-11): Switch dependency from the
default libomp-13 to libomp-11.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 07c86b6354..07622a63cf 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -926,7 +926,7 @@ (define-public libomp-11
        (replace "llvm" llvm-11)))))
 
 (define-public clang-toolchain-11
-  (make-clang-toolchain clang-11))
+  (make-clang-toolchain clang-11 libomp-11))
 
 (define-public llvm-10
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 07/17] gnu: Add libomp-10.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (5 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 06/17] gnu: clang-toolchain-11: Use libomp-11 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 08/17] gnu: clang-toolchain-10: Use libomp-10 Greg Hogan
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-10): New variable.
---
 gnu/packages/llvm.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 07622a63cf..ed1664caf8 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -965,6 +965,22 @@ (define-public clang-10
                       (base32
                        "06n1yp638rh24xdxv9v2df0qajxbjz4w59b7dd4ky36drwmpi4yh")))))
 
+(define-public libomp-10
+  (package
+    (inherit libomp-11)
+    (version (package-version llvm-10))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "0i4bn84lkpm5w3qkpvwm5z6jdj8fynp7d3bcasa1xyq4is6757yi"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-11)
+       (replace "clang" clang-10)
+       (replace "llvm" llvm-10)))))
+
 (define-public clang-toolchain-10
   (make-clang-toolchain clang-10))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 08/17] gnu: clang-toolchain-10: Use libomp-10.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (6 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 07/17] gnu: Add libomp-10 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 09/17] gnu: Add libomp-9 Greg Hogan
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-10): Switch dependency from the
default libomp-13 to libomp-10.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index ed1664caf8..a0313afd3d 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -982,7 +982,7 @@ (define-public libomp-10
        (replace "llvm" llvm-10)))))
 
 (define-public clang-toolchain-10
-  (make-clang-toolchain clang-10))
+  (make-clang-toolchain clang-10 libomp-10))
 
 (define-public llvm-9
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 09/17] gnu: Add libomp-9.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (7 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 08/17] gnu: clang-toolchain-10: Use libomp-10 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 10/17] gnu: clang-toolchain-9: Use libomp-9 Greg Hogan
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-9): New variable.
---
 gnu/packages/llvm.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index a0313afd3d..6b53b7e36d 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1026,6 +1026,22 @@ (define-public clang-9
                    "0ls2h3iv4finqyflyhry21qhc9cm9ga7g1zq21020p065qmm2y2p"
                    #:patches '("clang-9.0-libc-search-path.patch")))
 
+(define-public libomp-9
+  (package
+    (inherit libomp-10)
+    (version (package-version llvm-9))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "1knafnpp0f7hylx8q20lkd6g1sf0flly572dayc5d5kghh7hd52w"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-10)
+       (replace "clang" clang-9)
+       (replace "llvm" llvm-9)))))
+
 (define-public clang-toolchain-9
   (make-clang-toolchain clang-9))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 10/17] gnu: clang-toolchain-9: Use libomp-9.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (8 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 09/17] gnu: Add libomp-9 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 11/17] gnu: Add libomp-8 Greg Hogan
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-9): Switch dependency from the
default libomp-13 to libomp-9.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 6b53b7e36d..93bd62bdd3 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1043,7 +1043,7 @@ (define-public libomp-9
        (replace "llvm" llvm-9)))))
 
 (define-public clang-toolchain-9
-  (make-clang-toolchain clang-9))
+  (make-clang-toolchain clang-9 libomp-9))
 
 (define-public llvm-8
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 11/17] gnu: Add libomp-8.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (9 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 10/17] gnu: clang-toolchain-9: Use libomp-9 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 12/17] gnu: clang-toolchain-8: Use libomp-8 Greg Hogan
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-8): New variable.
---
 gnu/packages/llvm.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 93bd62bdd3..4b798a687b 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1069,6 +1069,23 @@ (define-public clang-8
                    "0ihnbdl058gvl2wdy45p5am55bq8ifx8m9mhcsgj9ax8yxlzvvvh"
                    #:patches '("clang-8.0-libc-search-path.patch")))
 
+(define-public libomp-8
+  (package
+    (inherit libomp-9)
+    (version (package-version llvm-8))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "0b3jlxhqbpyd1nqkpxjfggm5d9va5qpyf7d4i5y7n4a1mlydv19y"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-9)
+       (replace "clang" clang-8)
+       (replace "llvm" llvm-8)))
+    (license license:ncsa)))
+
 (define-public clang-toolchain-8
   (make-clang-toolchain clang-8))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 12/17] gnu: clang-toolchain-8: Use libomp-8.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (10 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 11/17] gnu: Add libomp-8 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 13/17] gnu: Add libomp-7 Greg Hogan
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-8): Switch dependency from the
default libomp-13 to libomp-8.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 4b798a687b..2b7e711d35 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1087,7 +1087,7 @@ (define-public libomp-8
     (license license:ncsa)))
 
 (define-public clang-toolchain-8
-  (make-clang-toolchain clang-8))
+  (make-clang-toolchain clang-8 libomp-8))
 
 (define-public llvm-7
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 13/17] gnu: Add libomp-7.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (11 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 12/17] gnu: clang-toolchain-8: Use libomp-8 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 14/17] gnu: clang-toolchain-7: Use libomp-7 Greg Hogan
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-7): New variable.
---
 gnu/packages/llvm.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 2b7e711d35..f818894ab2 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1111,6 +1111,22 @@ (define-public clang-7
                    "0vc4i87qwxnw9lci4ayws9spakg0z6w5w670snj9f8g5m9rc8zg9"
                    #:patches '("clang-7.0-libc-search-path.patch")))
 
+(define-public libomp-7
+  (package
+    (inherit libomp-8)
+    (version (package-version llvm-7))
+    (source (origin
+              (method url-fetch)
+              (uri (llvm-uri "openmp" version))
+              (sha256
+               (base32
+                "1dg53wzsci2kra8lh1y0chh60h2l8h1by93br5spzvzlxshkmrqy"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-8)
+       (replace "clang" clang-7)
+       (replace "llvm" llvm-7)))))
+
 (define-public clang-toolchain-7
   (make-clang-toolchain clang-7))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 14/17] gnu: clang-toolchain-7: Use libomp-7.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (12 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 13/17] gnu: Add libomp-7 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 15/17] gnu: Add libomp-6 Greg Hogan
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-7): Switch dependency from the
default libomp-13 to libomp-7.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index f818894ab2..56656fb683 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1128,7 +1128,7 @@ (define-public libomp-7
        (replace "llvm" llvm-7)))))
 
 (define-public clang-toolchain-7
-  (make-clang-toolchain clang-7))
+  (make-clang-toolchain clang-7 libomp-7))
 
 (define-public llvm-6
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 15/17] gnu: Add libomp-6.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (13 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 14/17] gnu: clang-toolchain-7: Use libomp-7 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 16/17] gnu: clang-toolchain-6: Use libomp-6 Greg Hogan
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (libomp-6): New variable.
---
 gnu/packages/llvm.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 56656fb683..8f5efcd5b8 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1152,6 +1152,24 @@ (define-public clang-6
                    "0rxn4rh7rrnsqbdgp4gzc8ishbkryhpl1kd3mpnxzpxxhla3y93w"
                    #:patches '("clang-6.0-libc-search-path.patch")))
 
+(define-public libomp-6
+  (package
+    (inherit libomp-7)
+    (version (package-version llvm-6))
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://releases.llvm.org/"
+                                  version  "/openmp-" version
+                                  ".src.tar.xz"))
+              (sha256
+               (base32
+                "0nhwfba9c351r16zgyjyfwdayr98nairky3c2f0b2lc360mwmbv6"))
+              (file-name (string-append "libomp-" version ".tar.xz"))))
+    (native-inputs
+     (modify-inputs (package-native-inputs libomp-7)
+       (replace "clang" clang-6)
+       (replace "llvm" llvm-6)))))
+
 (define-public clang-toolchain-6
   (make-clang-toolchain clang-6))
 
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 16/17] gnu: clang-toolchain-6: Use libomp-6.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (14 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 15/17] gnu: Add libomp-6 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-07-20 15:09 ` [bug#56666] [PATCH 17/17] gnu: make-clang-toolchain: Require explicit libomp Greg Hogan
  2022-08-04  9:39 ` bug#56666: [PATCH 00/17] Add libomp per clang-toolchain Ludovic Courtès
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (clang-toolchain-6): Switch dependency from the
default libomp-13 to libomp-6.
---
 gnu/packages/llvm.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 8f5efcd5b8..76d2ff4f84 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -1171,7 +1171,7 @@ (define-public libomp-6
        (replace "llvm" llvm-6)))))
 
 (define-public clang-toolchain-6
-  (make-clang-toolchain clang-6))
+  (make-clang-toolchain clang-6 libomp-6))
 
 (define-public llvm-3.9.1
   (package (inherit llvm-6)
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* [bug#56666] [PATCH 17/17] gnu: make-clang-toolchain: Require explicit libomp.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (15 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 16/17] gnu: clang-toolchain-6: Use libomp-6 Greg Hogan
@ 2022-07-20 15:09 ` Greg Hogan
  2022-08-04  9:39 ` bug#56666: [PATCH 00/17] Add libomp per clang-toolchain Ludovic Courtès
  17 siblings, 0 replies; 19+ messages in thread
From: Greg Hogan @ 2022-07-20 15:09 UTC (permalink / raw)
  To: 56666; +Cc: Greg Hogan

* gnu/packages/llvm.scm (make-clang-toolchain): Remove default libomp
parameter since each clang-toolchain has a matching libomp package.
(clang-toolchain-13): Explicitly refer to libomp-13.
---
 gnu/packages/llvm.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 76d2ff4f84..4606cccc2a 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -485,7 +485,7 @@ (define (clang-properties version)
               "znver3")
             '())))))
 
-(define* (make-clang-toolchain clang #:optional (libomp libomp-13))
+(define (make-clang-toolchain clang libomp)
   (package
     (name (string-append (package-name clang) "-toolchain"))
     (version (package-version clang))
@@ -767,7 +767,7 @@ (define-public libomp-13
        (replace "llvm" llvm-13)))))
 
 (define-public clang-toolchain-13
-  (make-clang-toolchain clang-13))
+  (make-clang-toolchain clang-13 libomp-13))
 
 (define-public llvm-12
   (package
-- 
2.37.0





^ permalink raw reply related	[flat|nested] 19+ messages in thread

* bug#56666: [PATCH 00/17] Add libomp per clang-toolchain.
  2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
                   ` (16 preceding siblings ...)
  2022-07-20 15:09 ` [bug#56666] [PATCH 17/17] gnu: make-clang-toolchain: Require explicit libomp Greg Hogan
@ 2022-08-04  9:39 ` Ludovic Courtès
  17 siblings, 0 replies; 19+ messages in thread
From: Ludovic Courtès @ 2022-08-04  9:39 UTC (permalink / raw)
  To: Greg Hogan; +Cc: 56666-done

Hi Greg,

Greg Hogan <code@greghogan.com> skribis:

>   gnu: libomp-14: Reference llvm-14 version string.
>   gnu: libomp-13: Reference llvm-13 version string.
>   gnu: Add libomp-12.
>   gnu: clang-toolchain-12: Use libomp-12.
>   gnu: Add libomp-11.
>   gnu: clang-toolchain-11: Use libomp-11.
>   gnu: Add libomp-10.
>   gnu: clang-toolchain-10: Use libomp-10.
>   gnu: Add libomp-9.
>   gnu: clang-toolchain-9: Use libomp-9.
>   gnu: Add libomp-8.
>   gnu: clang-toolchain-8: Use libomp-8.
>   gnu: Add libomp-7.
>   gnu: clang-toolchain-7: Use libomp-7.
>   gnu: Add libomp-6.
>   gnu: clang-toolchain-6: Use libomp-6.
>   gnu: make-clang-toolchain: Require explicit libomp.

Nice work!  Applied, thanks.

Ludo’.




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-08-04  9:44 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-20 14:49 [bug#56666] [PATCH 00/17] Add libomp per clang-toolchain Greg Hogan
2022-07-20 15:08 ` [bug#56666] [PATCH 01/17] gnu: libomp-14: Reference llvm-14 version string Greg Hogan
2022-07-20 15:08 ` [bug#56666] [PATCH 02/17] gnu: libomp-13: Reference llvm-13 " Greg Hogan
2022-07-20 15:08 ` [bug#56666] [PATCH 03/17] gnu: Add libomp-12 Greg Hogan
2022-07-20 15:08 ` [bug#56666] [PATCH 04/17] gnu: clang-toolchain-12: Use libomp-12 Greg Hogan
2022-07-20 15:08 ` [bug#56666] [PATCH 05/17] gnu: Add libomp-11 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 06/17] gnu: clang-toolchain-11: Use libomp-11 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 07/17] gnu: Add libomp-10 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 08/17] gnu: clang-toolchain-10: Use libomp-10 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 09/17] gnu: Add libomp-9 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 10/17] gnu: clang-toolchain-9: Use libomp-9 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 11/17] gnu: Add libomp-8 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 12/17] gnu: clang-toolchain-8: Use libomp-8 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 13/17] gnu: Add libomp-7 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 14/17] gnu: clang-toolchain-7: Use libomp-7 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 15/17] gnu: Add libomp-6 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 16/17] gnu: clang-toolchain-6: Use libomp-6 Greg Hogan
2022-07-20 15:09 ` [bug#56666] [PATCH 17/17] gnu: make-clang-toolchain: Require explicit libomp Greg Hogan
2022-08-04  9:39 ` bug#56666: [PATCH 00/17] Add libomp per clang-toolchain Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).