From 81a7de095d19a0bab6e4b1399b6662ff4cb49410 Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Mon, 13 Jun 2016 09:48:08 -0400 Subject: [PATCH] Add back previously broken benchmarks --- build-constraints.yaml | 3 --- debian-bootstrap.sh | 12 +++++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/build-constraints.yaml b/build-constraints.yaml index 19820e84..60620810 100644 --- a/build-constraints.yaml +++ b/build-constraints.yaml @@ -2850,7 +2850,6 @@ expected-test-failures: expected-benchmark-failures: - Frames - attoparsec - - bzlib-conduit - cipher-aes128 - cryptohash - dbus @@ -2863,9 +2862,7 @@ expected-benchmark-failures: - mongoDB - picoparsec - rethinkdb - - stateWriter - thyme - - vinyl - warp - web-routing - xmlgen diff --git a/debian-bootstrap.sh b/debian-bootstrap.sh index ae20a8b8..db1f6273 100755 --- a/debian-bootstrap.sh +++ b/debian-bootstrap.sh @@ -99,7 +99,9 @@ apt-get install -y \ libyaml-dev \ libzip-dev \ libzmq3-dev \ - llvm \ + # The LLVM version should be kept in sync with what GHC requires for its + # LLVM backend (see below for more information). + llvm-3.7 \ m4 \ nettle-dev \ nodejs \ @@ -122,3 +124,11 @@ mv /opt/ghc/$GHCVER/share/doc/ghc-$GHCVER/ /opt/ghc/$GHCVER/share/doc/ghc # faster anyways and uses less RAM. update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20 update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.bfd" 10 + +# GHC requires a specific LLVM version on the system PATH for its LLVM backend. +# This version is tracked here: +# https://ghc.haskell.org/trac/ghc/wiki/Commentary/Compiler/Backends/LLVM/Installing +# +# GHC 8.0 requires LLVM 3.7 tools (specifically, llc-3.7 and opt-3.7). +update-alternatives --install "/usr/bin/llc" "llc" "/usr/bin/llc-3.7" 50 +update-alternatives --install "/usr/bin/opt" "opt" "/usr/bin/opt-3.7" 50