Explicitly set locations of tool locations

We now expose the following environment variables to ensure that tools
are specified explicitly:

 * CABAL
 * GHC
 * OPT
 * LLC
 * HAPPY
 * ALEX
 * HSCOLOUR

`configure` will pick these up.
12 jobs for wip/explicit-tools in 14 minutes and 47 seconds
latest
Name Stage Failure
failed
build-x86_64-linux-ubuntu2004 Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-armv7-linux-deb10 Build
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload Upload Total Spent Left Speed
0 0 0
0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 673 100 673 0 0 1939 0 --:--:-- --:--:-- --:--:-- 1939
0 399M 0 1581k 0 0 2205k 0 0:03:05 --:--:-- 0:03:05 2205k 2 399M 2 9741k 0 0 5676k 0 0:01:12 0:00:01 0:01:11 8167k 4 399M 4 17.4M 0 0 6559k 0 0:01:02 0:00:02 0:01:00 8119k 6 399M 6 25.0M 0 0 6908k 0 0:00:59 0:00:03 0:00:56 8031k 8 399M 8 32.5M 0 0 7069k 0 0:00:57 0:00:04 0:00:53 7941k 10 399M 10 40.3M 0 0 7222k 0 0:00:56 0:00:05 0:00:51 7942k 12 399M 12 48.2M 0 0 7348k 0 0:00:55 0:00:06 0:00:49 7921k 14 399M 14 56.4M 0 0 7487k 0 0:00:54 0:00:07 0:00:47 7990k 16 399M 16 64.2M 0 0 7542k 0 0:00:54 0:00:08 0:00:46 8012k 18 399M 18 72.6M 0 0 7653k 0 0:00:53 0:00:09 0:00:44 8204k 19 399M 19 79.8M 0 0 7630k 0 0:00:53 0:00:10 0:00:43 8095k 21 399M 21 87.1M 0 0 7612k 0 0:00:53 0:00:11 0:00:42 7968k 23 399M 23 94.3M 0 0 7599k 0 0:00:53 0:00:12 0:00:41 7772k 25 399M 25 101M 0 0 7611k 0 0:00:53 0:00:13 0:00:40 7732k 27 399M 27 110M 0 0 7669k 0 0:00:53 0:00:14 0:00:39 7700k 29 399M 29 117M 0 0 7682k 0 0:00:53 0:00:15 0:00:38 7795k 31 399M 31 126M 0 0 7729k 0 0:00:52 0:00:16 0:00:36 8004k 33 399M 33 133M 0 0 7742k 0 0:00:52 0:00:17 0:00:35 8108k 35 399M 35 142M 0 0 7787k 0 0:00:52 0:00:18 0:00:34 8268k 37 399M 37 149M 0 0 7782k 0 0:00:52 0:00:19 0:00:33 8115k 39 399M 39 157M 0 0 7782k 0 0:00:52 0:00:20 0:00:32 8095k 41 399M 41 165M 0 0 7790k 0 0:00:52 0:00:21 0:00:31 7993k 43 399M 43 173M 0 0 7810k 0 0:00:52 0:00:22 0:00:30 8051k 45 399M 45 181M 0 0 7848k 0 0:00:52 0:00:23 0:00:29 8076k 47 399M 47 189M 0 0 7843k 0 0:00:52 0:00:24 0:00:28 8083k 49 399M 49 197M 0 0 7861k 0 0:00:52 0:00:25 0:00:27 8190k 51 399M 51 205M 0 0 7876k 0 0:00:51 0:00:26 0:00:25 8249k 53 399M 53 212M 0 0 7869k 0 0:00:52 0:00:27 0:00:25 8136k 55 399M 55 220M 0 0 7875k 0 0:00:51 0:00:28 0:00:23 8003k 57 399M 57 228M 0 0 7879k 0 0:00:51 0:00:29 0:00:22 8054k 59 399M 59 236M 0 0 7894k 0 0:00:51 0:00:30 0:00:21 8062k 61 399M 61 244M 0 0 7907k 0 0:00:51 0:00:31 0:00:20 8072k 63 399M 63 252M 0 0 7912k 0 0:00:51 0:00:32 0:00:19 8152k 65 399M 65 261M 0 0 7930k 0 0:00:51 0:00:33 0:00:18 8246k 67 399M 67 269M 0 0 7957k 0 0:00:51 0:00:34 0:00:17 8422k 69 399M 69 278M 0 0 7972k 0 0:00:51 0:00:35 0:00:16 8451k 71 399M 71 285M 0 0 7962k 0 0:00:51 0:00:36 0:00:15 8316k 73 399M 73 293M 0 0 7973k 0 0:00:51 0:00:37 0:00:14 8374k 75 399M 75 300M 0 0 7959k 0 0:00:51 0:00:38 0:00:13 8156k 77 399M 77 309M 0 0 7978k 0 0:00:51 0:00:39 0:00:12 8124k 79 399M 79 317M 0 0 7977k 0 0:00:51 0:00:40 0:00:11 8017k 81 399M 81 325M 0 0 7981k 0 0:00:51 0:00:41 0:00:10 8121k 83 399M 83 333M 0 0 8000k 0 0:00:51 0:00:42 0:00:09 8201k 85 399M 85 341M 0 0 7998k 0 0:00:51 0:00:43 0:00:08 8297k 87 399M 87 349M 0 0 7997k 0 0:00:51 0:00:44 0:00:07 8150k 89 399M 89 357M 0 0 8007k 0 0:00:51 0:00:45 0:00:06 8252k 91 399M 91 365M 0 0 8014k 0 0:00:51 0:00:46 0:00:05 8284k 93 399M 93 373M 0 0 8017k 0 0:00:51 0:00:47 0:00:04 8160k 95 399M 95 381M 0 0 8027k 0 0:00:50 0:00:48 0:00:02 8281k 97 399M 97 390M 0 0 8039k 0 0:00:50 0:00:49 0:00:01 8414k 99 399M 99 398M 0 0 8037k 0 0:00:50 0:00:50 --:--:-- 8313k 100 399M 100 399M 0 0 8036k 0 0:00:50 0:00:50 --:--:-- 8287k
/bin/bash: llc: command not found
The command '/bin/bash -o pipefail -c curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-armv7a-linux-gnueabihf.tar.xz | tar -xJC . && mkdir $LLVM_DIR && cp -R clang+llvm*/* $LLVM_DIR && rm -R clang+llvm* && llc --version' returned a non-zero code: 127
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 127
failed
build-x86_64-linux-fedora27 Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-i386-linux-deb9 Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-aarch64-linux-deb10 Build
Step 21/33 : RUN curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-aarch64-linux-gnu.tar.xz       | tar -xJC . &&     mkdir $LLVM_DIR &&     cp -R clang+llvm*/* $LLVM_DIR &&     rm -R clang+llvm* &&     llc --version
---> Running in b6559c5b1191
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total S
pent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 668 100 668 0 0 1953 0 --:--:-- --:--:-- --:--:-- 1953
1 372M 1 4945k 0 0 5061k 0 0:01:15 --:--:-- 0:01:15 5061k 3 372M 3 14.5M 0 0 7518k 0 0:00:50 0:00:01 0:00:49 9911k 6 372M 6 23.8M 0 0 8216k 0 0:00:46 0:00:02 0:00:44 9754k 9 372M 9 34.8M 0 0 8965k 0 0:00:42 0:00:03 0:00:39 9.9M 12 372M 12 45.2M 0 0 9311k 0 0:00:40 0:00:04 0:00:36 10.1M 14 372M 14 55.0M 0 0 9437k 0 0:00:40 0:00:05 0:00:35 10.0M 17 372M 17 64.9M 0 0 9530k 0 0:00:40 0:00:06 0:00:34 10.0M 19 372M 19 74.1M 0 0 9520k 0 0:00:40 0:00:07 0:00:33 10.0M 22 372M 22 82.7M 0 0 9444k 0 0:00:40 0:00:08 0:00:32 9824k 25 372M 25 93.2M 0 0 9577k 0 0:00:39 0:00:09 0:00:30 9843k 27 372M 27 103M 0 0 9691k 0 0:00:39 0:00:10 0:00:29 9996k 30 372M 30 114M 0 0 9833k 0 0:00:38 0:00:11 0:00:27 10.0M 33 372M 33 125M 0 0 9872k 0 0:00:38 0:00:12 0:00:26 10.1M 36 372M 36 135M 0 0 9899k 0 0:00:38 0:00:13 0:00:25 10.4M 39 372M 39 146M 0 0 9.7M 0 0:00:38 0:00:14 0:00:24 10.5M 41 372M 41 156M 0 0 9.7M 0 0:00:38 0:00:15 0:00:23 10.4M 44 372M 44 166M 0 0 9.8M 0 0:00:37 0:00:16 0:00:21 10.3M 47 372M 47 177M 0 0 9.8M 0 0:00:37 0:00:17 0:00:20 10.5M 50 372M 50 187M 0 0 9.9M 0 0:00:37 0:00:18 0:00:19 10.5M 53 372M 53 199M 0 0 9.9M 0 0:00:37 0:00:19 0:00:18 10.5M 56 372M 56 209M 0 0 9.9M 0 0:00:37 0:00:20 0:00:17 10.5M 58 372M 58 219M 0 0 9.9M 0 0:00:37 0:00:21 0:00:16 10.5M 61 372M 61 230M 0 0 10.0M 0 0:00:37 0:00:22 0:00:15 10.5M 64 372M 64 240M 0 0 10.0M 0 0:00:37 0:00:23 0:00:14 10.5M 67 372M 67 250M 0 0 10.0M 0 0:00:37 0:00:24 0:00:13 10.3M 70 372M 70 262M 0 0 10.0M 0 0:00:36 0:00:25 0:00:11 10.5M 73 372M 73 273M 0 0 10.1M 0 0:00:36 0:00:26 0:00:10 10.7M 75 372M 75 282M 0 0 10.1M 0 0:00:36 0:00:27 0:00:09 10.5M 78 372M 78 293M 0 0 10.1M 0 0:00:36 0:00:28 0:00:08 10.6M 81 372M 81 304M 0 0 10.1M 0 0:00:36 0:00:29 0:00:07 10.7M 84 372M 84 314M 0 0 10.1M 0 0:00:36 0:00:30 0:00:06 10.5M 87 372M 87 325M 0 0 10.1M 0 0:00:36 0:00:31 0:00:05 10.3M 90 372M 90 336M 0 0 10.1M 0 0:00:36 0:00:32 0:00:04 10.6M 93 372M 93 346M 0 0 10.1M 0 0:00:36 0:00:33 0:00:03 10.5M 95 372M 95 357M 0 0 10.2M 0 0:00:36 0:00:34 0:00:02 10.5M 98 372M 98 368M 0 0 10.2M 0 0:00:36 0:00:35 0:00:01 10.7M 100 372M 100 372M 0 0 10.2M 0 0:00:36 0:00:36 --:--:-- 10.8M
/bin/bash: llc: command not found
The command '/bin/bash -o pipefail -c curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/clang+llvm-10.0.0-aarch64-linux-gnu.tar.xz | tar -xJC . && mkdir $LLVM_DIR && cp -R clang+llvm*/* $LLVM_DIR && rm -R clang+llvm* && llc --version' returned a non-zero code: 127
ERROR: Job failed: exit code 127
failed
build-x86_64-linux-deb8 Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-x86_64-linux-alpine Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/ash -eo pipefail -c $CABAL user-config update && $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-x86_64-linux-deb9 Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-x86_64-linux-centos7 Build
Completed    hscolour-1.24.4 (all, legacy fallback)
Installing alex-3.2.5 (exe:alex)
Completed alex-3.2.5 (exe:alex)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-x86_64-linux-deb10 Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1
failed
build-linters Build
Completed    alex-3.2.5 (exe:alex)
Installing hscolour-1.24.4 (all, legacy fallback)
Completed hscolour-1.24.4 (all, legacy fallback)
Installing happy-1.20.0 (exe:happy)
Completed happy-1.20.0 (exe:happy)
Copying 'alex'
/usr/local/bin: copyFile:atomicCopyFileContents:withReplacementFile:openBinaryTempFile: permission denied (Permission denied)
The command '/bin/bash -o pipefail -c $CABAL v2-update && $CABAL v2-install hscolour happy alex --with-compiler=$GHC --constraint 'happy ^>= 1.20.0' --enable-static --install-method=copy --installdir=/usr/local/bin' returned a non-zero code: 1
ERROR: Job failed: exit code 1