~ruther/guix-local

2036828b806c77e021b9ef0c31cdaaf6eac59306 — Janneke Nieuwenhuizen 1 year, 10 months ago 7c1c446
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
1 files changed, 5 insertions(+), 0 deletions(-)

M gnu/packages/llvm.scm
M gnu/packages/llvm.scm => gnu/packages/llvm.scm +5 -0
@@ 165,6 165,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