diff --git a/gnu/local.mk b/gnu/local.mk index 0f2da0ae44..fdccf5db12 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1783,6 +1783,7 @@ dist_patch_DATA = \ %D%/packages/patches/llvm-9-fix-bitcast-miscompilation.patch \ %D%/packages/patches/llvm-9-fix-lpad-miscompilation.patch \ %D%/packages/patches/llvm-9-fix-scev-miscompilation.patch \ + %D%/packages/patches/llvm-13-gcc-14.patch \ %D%/packages/patches/lm-sensors-hwmon-attrs.patch \ %D%/packages/patches/lsh-fix-x11-forwarding.patch \ %D%/packages/patches/lsof-compat-linux-6.9.patch \ diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm index 727441e553..cbdaefd0b4 100644 --- a/gnu/packages/llvm.scm +++ b/gnu/packages/llvm.scm @@ -829,7 +829,8 @@ (define-public llvm-13 (uri (llvm-uri "llvm" version)) (sha256 (base32 - "0d681xiixmx9inwvz14vi3xsznrcryk06a8rvk9cljiq5kc80szc")))) + "0d681xiixmx9inwvz14vi3xsznrcryk06a8rvk9cljiq5kc80szc")) + (patches (search-patches "llvm-13-gcc-14.patch")))) (arguments (substitute-keyword-arguments (package-arguments llvm-14) ((#:phases phases '%standard-phases) diff --git a/gnu/packages/patches/llvm-13-gcc-14.patch b/gnu/packages/patches/llvm-13-gcc-14.patch new file mode 100644 index 0000000000..a7697b01d0 --- /dev/null +++ b/gnu/packages/patches/llvm-13-gcc-14.patch @@ -0,0 +1,12 @@ +See: https://github.com/smlnj/smlnj/issues/279 + +--- llvm-13.0.1.src/include/llvm/Support/Signals.h.orig 2024-12-08 14:34:21.338967469 +0100 ++++ llvm-13.0.1.src/include/llvm/Support/Signals.h 2024-12-08 14:32:22.486780827 +0100 +@@ -14,6 +14,7 @@ + #ifndef LLVM_SUPPORT_SIGNALS_H + #define LLVM_SUPPORT_SIGNALS_H + ++#include + #include + + namespace llvm {