janneke pushed a commit to branch core-packages-team
in repository guix.
commit 6184e9e3e4bc243a5168ac46c970b9375fce7e6c
Author: Janneke Nieuwenhuizen <[email protected]>
AuthorDate: Tue Dec 31 21:06:46 2024 +0100
gnu: clang-runtime-17: Build with gcc-13.
Avoid
/tmp/guix-build-clang-runtime-17.0.6.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:623:30:
error: use of built-in trait '__remove_pointer(typename
std::__Fuzzer::decay<_Tp>::type)' in function signature; use library traits
instead
623 | _EnableIfPathable<_Source> append(const _Source& __src) {
| ^~~~~~
by using gcc-13.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-13
for version 17.
Change-Id: I0f815e178ea2f936e680075b1153285cf920b26e
---
gnu/packages/llvm.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index a12c3b4cc9..008a19f0a2 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -164,6 +164,11 @@ as \"x86_64-linux\"."
;;
source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__type_traits/is_convertible.h:28:77:
error: there are no arguments to ‘__is_convertible’ that depend on a template
parameter, so a declaration of ‘__is_convertible’ must be available
[-fpermissive]
(modify-inputs (package-native-inputs llvm)
(prepend gcc-13)))
+ ((version>=? version "17")
+ ;; clang-17.0.6 doesn't build with gcc-14
+ ;;
source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:623:30:
error: use of built-in trait '__remove_pointer(typename
std::__Fuzzer::decay<_Tp>::type)’ in function signature; use library traits
instead
+ (modify-inputs (package-native-inputs llvm)
+ (prepend gcc-13)))
(else (package-native-inputs llvm))))
(inputs
(append