[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/62: gnu: llvm-17: Fix building on riscv64-linux.
From: |
guix-commits |
Subject: |
53/62: gnu: llvm-17: Fix building on riscv64-linux. |
Date: |
Wed, 13 Mar 2024 16:22:27 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit ea9a684bbf47001bb2a16b577d7942a8c8603d17
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Mar 13 17:30:56 2024 +0200
gnu: llvm-17: Fix building on riscv64-linux.
* gnu/packages/llvm.scm (%llvm-patches): Add a patch for 17.0.6.
* gnu/packages/patches/clang-17.0-link-dsymutil-latomic.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
Change-Id: I9dfd23d2f0fb10620c4aa73a6480151d6e6daa9a
---
gnu/local.mk | 1 +
gnu/packages/llvm.scm | 3 ++-
.../patches/clang-17.0-link-dsymutil-latomic.patch | 14 ++++++++++++++
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index 574a67b49c..4750cb290c 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1042,6 +1042,7 @@ dist_patch_DATA =
\
%D%/packages/patches/clang-15.0-libc-search-path.patch \
%D%/packages/patches/clang-16.0-libc-search-path.patch \
%D%/packages/patches/clang-17.0-libc-search-path.patch \
+ %D%/packages/patches/clang-17.0-link-dsymutil-latomic.patch \
%D%/packages/patches/clang-runtime-asan-build-fixes.patch \
%D%/packages/patches/clang-runtime-esan-build-fixes.patch \
%D%/packages/patches/clang-runtime-9-libsanitizer-mode-field.patch \
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index ab30675d5c..2b8e8d6215 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -550,7 +550,8 @@ output), and Binutils.")
'(("14.0.6" . ("clang-14.0-libc-search-path.patch"))
("15.0.7" . ("clang-15.0-libc-search-path.patch"))
("16.0.6" . ("clang-16.0-libc-search-path.patch"))
- ("17.0.6" . ("clang-17.0-libc-search-path.patch"))))
+ ("17.0.6" . ("clang-17.0-libc-search-path.patch"
+ "clang-17.0-link-dsymutil-latomic.patch"))))
(define (llvm-monorepo version)
(origin
diff --git a/gnu/packages/patches/clang-17.0-link-dsymutil-latomic.patch
b/gnu/packages/patches/clang-17.0-link-dsymutil-latomic.patch
new file mode 100644
index 0000000000..f94840527e
--- /dev/null
+++ b/gnu/packages/patches/clang-17.0-link-dsymutil-latomic.patch
@@ -0,0 +1,14 @@
+This was mistakenly added to llvm-17 while a patch was being rebased.
+
+---
+
+diff --git a/llvm/tools/dsymutil/CMakeLists.txt
b/llvm/tools/dsymutil/CMakeLists.txt
+index 3cb88a50ce25..8699d0bb1d6b 100644
+--- a/llvm/tools/dsymutil/CMakeLists.txt
++++ b/llvm/tools/dsymutil/CMakeLists.txt
+@@ -42,4 +42,4 @@ if(APPLE)
+ target_link_libraries(dsymutil PRIVATE "-framework CoreFoundation")
+ endif(APPLE)
+
+-# target_link_libraries(dsymutil PRIVATE ${LLVM_ATOMIC_LIB})
++target_link_libraries(dsymutil PRIVATE ${LLVM_ATOMIC_LIB})
- 60/62: gnu: Add rust-fdeflate-0.3., (continued)
- 60/62: gnu: Add rust-fdeflate-0.3., guix-commits, 2024/03/13
- 47/62: gnu: Add rust-parse-display-0.8., guix-commits, 2024/03/13
- 38/62: gnu: rust-schemars-0.8: Update to 0.8.16., guix-commits, 2024/03/13
- 37/62: gnu: rust-schemars-derive-0.8: Update to 0.8.16., guix-commits, 2024/03/13
- 55/62: gnu: rust-time-macros-0.2: Update to 0.2.17., guix-commits, 2024/03/13
- 58/62: gnu: rust-zerocopy-0.7: Accept newer versions of dependencies., guix-commits, 2024/03/13
- 41/62: gnu: rust-signature-derive-2: Update to 2.1.0., guix-commits, 2024/03/13
- 56/62: gnu: rust-time-0.3: Update to 0.3.34., guix-commits, 2024/03/13
- 31/62: gnu: Add rust-eyeball-im-0.4., guix-commits, 2024/03/13
- 50/62: gnu: Place rust-lettre-email-0.9 in alphabetical order., guix-commits, 2024/03/13
- 53/62: gnu: llvm-17: Fix building on riscv64-linux.,
guix-commits <=
- 08/62: gnu: Add rust-compiletest-rs-0.9., guix-commits, 2024/03/13
- 14/62: gnu: Place rust-thousands-0.2 in alphabetical order., guix-commits, 2024/03/13
- 12/62: gnu: Add rust-imbl-2., guix-commits, 2024/03/13
- 11/62: gnu: Add rust-imbl-sized-chunks-0.1., guix-commits, 2024/03/13
- 15/62: gnu: Place rust-twox-hash-1 in alphabetical order., guix-commits, 2024/03/13
- 20/62: gnu: Place rust-rpassword-5 in alphabetical order., guix-commits, 2024/03/13
- 22/62: gnu: Place rust-rpassword-7 in alphabetical order., guix-commits, 2024/03/13
- 25/62: gnu: Place rust-roxmltree-0.14 in alphabetical order., guix-commits, 2024/03/13
- 29/62: gnu: Add rust-readlock-tokio-0.1., guix-commits, 2024/03/13
- 26/62: gnu: Place rust-rodio-0.15 in alphabetical order., guix-commits, 2024/03/13