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
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-31 21:06:46 +01:00
parent eef34a6748
commit 1198e662af
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -163,6 +163,11 @@ (define* (clang-runtime-from-llvm llvm
;; 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