From 166d8fb84a8728498e1d71b7ed341348e03fc96b Mon Sep 17 00:00:00 2001 From: Janneke Nieuwenhuizen Date: Sat, 14 Dec 2024 22:40:14 +0100 Subject: [PATCH] gnu: clang-runtime-18: Build with gcc-12. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- gnu/packages/llvm.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 438979b098..6dbc86712e 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -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)