gnu: clang-runtime-18: Build with gcc-12.

Avoid

    source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:534:52: error: use of built-in trait ‘__remove_pointer(typename std::__Fuzzer::decay<_Tp>::type)’ in function signature; use library traits instead

by reverting back to gcc-12.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-12
for version 18.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-14 22:40:14 +01:00
parent 10b6c95e73
commit 166d8fb84a
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -155,7 +155,13 @@ (define* (clang-runtime-from-llvm llvm
(patches (map search-patch patches)))
(llvm-monorepo (package-version llvm))))
(build-system cmake-build-system)
(native-inputs (package-native-inputs llvm))
(native-inputs
(cond ((version>=? version "18")
;; clang-18.1.8 doesn't build with gcc-14
;; source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:534:52: 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-12)))
(else (package-native-inputs llvm))))
(inputs
(append
(list llvm)