guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/04: gnu: clang-runtime-18: Build with gcc-13.


From: guix-commits
Subject: 01/04: gnu: clang-runtime-18: Build with gcc-13.
Date: Tue, 31 Dec 2024 16:06:11 -0500 (EST)

janneke pushed a commit to branch core-packages-team
in repository guix.

commit 09ec4e7c6c7a744dc3ef308aad076b2b53ef193c
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Dec 31 21:06:46 2024 +0100

    gnu: clang-runtime-18: 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 ed1d22ac9b..e96cbfccc7 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -163,6 +163,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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]