alpmestan/ghc.nix

LLVM 9

int-index opened this issue · 3 comments

There are a few test cases that fail in optllvm way. Steps to reproduce:

hadrian/build --flavour=Quick --freeze1 test --only="T11649 T5681 T7571 T8131b"

The issue is that their output contains:

You are using an unsupported version of LLVM!
Currently only 9 is supported. System LLVM version: 7.1.0
We will try though...

Our pinned nixpkgs doesn't seem to have llvm_9. We can update to, say, a recent commit from the 20.03 channels, e.g:

diff --git a/default.nix b/default.nix
index 2146f16..dcbbddc 100644
--- a/default.nix
+++ b/default.nix
@@ -31,7 +31,7 @@ in
 with nixpkgs;
 
 let
-    llvmForGhc = llvm_7;
+    llvmForGhc = nixpkgs.llvm_9;
 
     stdenv =
       if useClang
diff --git a/nix/pins/nixpkgs.src-json b/nix/pins/nixpkgs.src-json
index e07f7e7..c7a2962 100644
--- a/nix/pins/nixpkgs.src-json
+++ b/nix/pins/nixpkgs.src-json
@@ -1,6 +1,6 @@
 {
   "url": "https://github.com/NixOS/nixpkgs",
-  "rev": "6d445f8398d2d585d20d9acacf00fd9d15081b3b",
-  "sha256": "1ajd0zr31iny3g9hp0pc1y2pxcm3nakdv6260lnvyn0k4vygync2",
+  "rev": "ab3adfe1c769c22b6629e59ea0ef88ec8ee4563f",
+  "sha256": "1m4wvrrcvif198ssqbdw897c8h84l0cy7q75lyfzdsz9khm1y2n1",
   "fetchSubmodules": false
 }

Does it fix the problem? Warning: lots of fetching and some building ahead.

Does it fix the problem?

Yes, thanks!

We've recently had the same with LLVM 10 and the changes landed on master. Can we close this?