Skip to content

Failure to install old versions or integer-simple bindist with 0.1.18.0

On an alpine:3.16 container I'm trying to use GHCup to install the bindist for the integer-simple version of GHC (since GHCup installs the GMP version by default for 8.10.7 on Alpine). I get an error about failing to merge the file tree. The same thing happens when trying to install GHC 8.10.4 and 8.10.5 (neither with a custom bindist), but not 8.10.6 or 8.10.7.

/ # ghcup install ghc -u 'https://downloads.haskell.org/~ghc/8.10.7/ghc-8.10.7-x86_64-alpine3.10-linux-integer-simple.tar.xz' 8.10.7
[ Info  ] downloading: https://downloads.haskell.org/~ghc/8.10.7/ghc-8.10.7-x86_64-alpine3.10-linux-integer-simple.tar.xz as file /root/.ghcup/tmp/ghcup-cc6f536bf2072c93/ghc-8.10.7-x86_64-alpine3.10-linux-integer-simple.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  101M  100  101M    0     0  6402k      0  0:00:16  0:00:16 --:--:-- 6491k
[ Info  ] Unpacking: ghc-8.10.7-x86_64-alpine3.10-linux-integer-simple.tar.xz to /root/.ghcup/tmp/ghcup-d3206c824c814cc3
[ Info  ] Installing GHC (this may take a while)
[ Info  ] Merging file tree from "/root/.ghcup/tmp/ghcup-fbd7ba2384ba44af/root/.ghcup/ghc/8.10.7" to "/root/.ghcup/ghc/8.10.7"
[ Error ] Failed to merge file tree from /root/.ghcup/tmp/ghcup-fbd7ba2384ba44af/root/.ghcup/ghc/8.10.7 to /root/.ghcup/ghc/8.10.7 
[ ...   ] exception was: user error (mergeFileTree: source base directory /root/.ghcup/tmp/ghcup-fbd7ba2384ba44af/root/.ghcup/ghc/8.10.7 does not exist!) 
[ ...   ] ...you may need to delete /root/.ghcup/ghc/8.10.7 manually. Make sure it's gone.
[ Error ] Also check the logs in /root/.ghcup/logs
/ # ghcup debug-info
Debug Info
==========
GHCup base dir: /root/.ghcup
GHCup bin dir: /root/.ghcup/bin
GHCup GHC directory: /root/.ghcup/ghc
GHCup cache directory: /root/.ghcup/cache
Architecture: x86_64
Platform: Linux Alpine, 3.16.1
Version: v0.1.18.0
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information