GNU bug report logs - #56666
[PATCH 00/17] Add libomp per clang-toolchain.

Previous Next

Package: guix-patches;

Reported by: Greg Hogan <code <at> greghogan.com>

Date: Wed, 20 Jul 2022 14:50:01 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 56666 in the body.
You can then email your comments to 56666 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 14:50:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Greg Hogan <code <at> greghogan.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 20 Jul 2022 14:50:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: guix-patches <at> gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 00/17] Add libomp per clang-toolchain.
Date: Wed, 20 Jul 2022 14:49:06 +0000
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 <at> 2.37 clang <at> 14.0.6 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 14.0.6

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 13.0.1 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 13.0.1

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 12.0.1 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 12.0.1

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 11.0.0 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 11.0.0

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 10.0.1 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 10.0.1

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 9.0.1 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 9.0.1

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 8.0.1 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 8.0.1

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 7.1.0 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 7.1.0

name: clang-toolchain
dependencies: binutils <at> 2.37 clang <at> 6.0.1 glibc <at> 2.33 ld-wrapper <at> 0 libomp <at> 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 02/17] gnu: libomp-13: Reference llvm-13 version string.
Date: Wed, 20 Jul 2022 15:08:56 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:03 GMT) Full text and rfc822 format available.

Message #11 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 03/17] gnu: Add libomp-12.
Date: Wed, 20 Jul 2022 15:08:57 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:03 GMT) Full text and rfc822 format available.

Message #14 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 04/17] gnu: clang-toolchain-12: Use libomp-12.
Date: Wed, 20 Jul 2022 15:08:58 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:04 GMT) Full text and rfc822 format available.

Message #17 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 10/17] gnu: clang-toolchain-9: Use libomp-9.
Date: Wed, 20 Jul 2022 15:09:04 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:04 GMT) Full text and rfc822 format available.

Message #20 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 05/17] gnu: Add libomp-11.
Date: Wed, 20 Jul 2022 15:08:59 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:05 GMT) Full text and rfc822 format available.

Message #23 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 01/17] gnu: libomp-14: Reference llvm-14 version string.
Date: Wed, 20 Jul 2022 15:08:55 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:06 GMT) Full text and rfc822 format available.

Message #26 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 06/17] gnu: clang-toolchain-11: Use libomp-11.
Date: Wed, 20 Jul 2022 15:09:00 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:06 GMT) Full text and rfc822 format available.

Message #29 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 08/17] gnu: clang-toolchain-10: Use libomp-10.
Date: Wed, 20 Jul 2022 15:09:02 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:06 GMT) Full text and rfc822 format available.

Message #32 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 07/17] gnu: Add libomp-10.
Date: Wed, 20 Jul 2022 15:09:01 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:07 GMT) Full text and rfc822 format available.

Message #35 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 09/17] gnu: Add libomp-9.
Date: Wed, 20 Jul 2022 15:09:03 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:07 GMT) Full text and rfc822 format available.

Message #38 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 16/17] gnu: clang-toolchain-6: Use libomp-6.
Date: Wed, 20 Jul 2022 15:09:10 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:08 GMT) Full text and rfc822 format available.

Message #41 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 11/17] gnu: Add libomp-8.
Date: Wed, 20 Jul 2022 15:09:05 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:08 GMT) Full text and rfc822 format available.

Message #44 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 12/17] gnu: clang-toolchain-8: Use libomp-8.
Date: Wed, 20 Jul 2022 15:09:06 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:10:08 GMT) Full text and rfc822 format available.

Message #47 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 13/17] gnu: Add libomp-7.
Date: Wed, 20 Jul 2022 15:09:07 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:11:02 GMT) Full text and rfc822 format available.

Message #50 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 14/17] gnu: clang-toolchain-7: Use libomp-7.
Date: Wed, 20 Jul 2022 15:09:08 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:11:02 GMT) Full text and rfc822 format available.

Message #53 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 15/17] gnu: Add libomp-6.
Date: Wed, 20 Jul 2022 15:09:09 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#56666; Package guix-patches. (Wed, 20 Jul 2022 15:11:03 GMT) Full text and rfc822 format available.

Message #56 received at 56666 <at> debbugs.gnu.org (full text, mbox):

From: Greg Hogan <code <at> greghogan.com>
To: 56666 <at> debbugs.gnu.org
Cc: Greg Hogan <code <at> greghogan.com>
Subject: [PATCH 17/17] gnu: make-clang-toolchain: Require explicit libomp.
Date: Wed, 20 Jul 2022 15:09:11 +0000
* 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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 04 Aug 2022 09:40:02 GMT) Full text and rfc822 format available.

Notification sent to Greg Hogan <code <at> greghogan.com>:
bug acknowledged by developer. (Thu, 04 Aug 2022 09:40:02 GMT) Full text and rfc822 format available.

Message #61 received at 56666-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Greg Hogan <code <at> greghogan.com>
Cc: 56666-done <at> debbugs.gnu.org
Subject: Re: bug#56666: [PATCH 00/17] Add libomp per clang-toolchain.
Date: Thu, 04 Aug 2022 11:39:15 +0200
Hi Greg,

Greg Hogan <code <at> 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’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Sep 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.