Raspberry pi 4 with debian 11 bullseye and ghc-8.4.4

Hi all,

i am trying to install ghc version 8.4.4 with ghcup on raspberry pi 4 with debian 11.

ghcup comes back with an error:

$ ghcup install ghc 8.4.4
[ Error ] Unable to find a download for the requested version/distro.
[ Error ] Also check the logs in /home/pi/.ghcup/logs
pi@raspberrypi:~/stack $

i need version 8.4.4 because stack built always terminates with an error:

$ stack build --stack-yaml=stack-ghc-84.yaml --system-ghc
No setup information found for ghc-8.4.4 on your platform.
This probably means a GHC bindist has not yet been added for OS key β€˜linux-aarch64’, β€˜linux-aarch64-ncurses6’, β€˜linux-aarch64-tinfo6’.
Supported versions: ghc-8.2.1, ghc-8.2.2, ghc-8.4.1, ghc-8.4.2, ghc-8.6.2, ghc-8.6.5, ghc-8.8.1, ghc-8.8.2, ghc-8.8.3, ghc-8.10.1, ghc-8.10.2, ghc-8.10.3, ghc-8.10.4, ghc-8.10.5, ghc-8.10.6, ghc-8.10.7, ghc-9.0.1, ghc-9.0.2, ghc-9.2.1
pi@raspberrypi:~/stack $

Versions:

stack $ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.10.7

ghcup --version
The GHCup Haskell installer, version v0.1.17.4

log file ghcup:

cat ghcup.log
Debug: Identified Platform as: Linux Debian, 11
Debug: last access was 206.280266452s ago, cache interval is 300s
Debug: Decoding yaml at: /home/pi/.ghcup/cache/ghcup-0.0.6.yaml
Error: Unable to find a download for the requested version/distro.
Error: Also check the logs in /home/pi/.ghcup/logs
pi@raspberrypi:~/.ghcup/logs $

Thanks in advance for your help !
kind regards thomas

What is stack --version?

I seriously doubt you’ll be able to get good mileage from GHC 8.4 on ARM. Is there anything special in your stack-ghc-84.yaml? Can you switch to a newer Stackage snapshot or use Cabal instead of Stack?

hi bodigrim, thx for your answer, unfortunately I have little idea about this topic. I am trying to compile embassy os (from start9; https://start9.com) and follow this step by step instruction:

embassy-os BuildGuide

At step 4 I can’t get any further:

P.S. Stack Version:

stack --version
Version 2.7.3, Git revision c2402f3d559e29a1d671ac82e09692ecfca3e467 (dirty) (78 commits) aarch64

thx

For ghcup, see https://github.com/haskell/ghcup-metadata/blob/master/ghcup-0.0.6.yaml and then search for ARM to get an overview of what GHCs support these architectures via official bindists.

Or simply run ghcup list.

hi hasufell,

this is the output of ghcup list:

$ ghcup list
[ Info ] downloading: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.6.yaml as file /home/pi/.ghcup/cache/ghcup-0.0.6.yaml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
Tool Version Tags Notes
βœ— ghc 7.10.3 base-4.8.2.0 no-bindist
βœ— ghc 8.0.2 base-4.9.1.0 no-bindist
βœ— ghc 8.2.2 base-4.10.1.0 no-bindist
βœ— ghc 8.4.1 base-4.11.0.0 no-bindist
βœ— ghc 8.4.2 base-4.11.1.0 no-bindist
βœ— ghc 8.4.3 base-4.11.1.0 no-bindist
βœ— ghc 8.4.4 base-4.11.1.0 no-bindist
βœ— ghc 8.6.1 base-4.12.0.0 no-bindist
βœ— ghc 8.6.2 base-4.12.0.0 no-bindist
βœ— ghc 8.6.3 base-4.12.0.0 no-bindist
βœ— ghc 8.6.4 base-4.12.0.0 no-bindist
βœ— ghc 8.6.5 base-4.12.0.0
βœ— ghc 8.8.1 base-4.13.0.0 no-bindist
βœ— ghc 8.8.2 base-4.13.0.0 no-bindist
βœ— ghc 8.8.3 base-4.13.0.0
βœ— ghc 8.8.4 base-4.13.0.0 no-bindist
βœ— ghc 8.10.1 base-4.14.0.0
βœ— ghc 8.10.2 base-4.14.1.0
βœ— ghc 8.10.3 base-4.14.1.0
βœ— ghc 8.10.4 base-4.14.1.0
βœ— ghc 8.10.5 base-4.14.2.0
βœ— ghc 8.10.6 base-4.14.3.0
:heavy_check_mark::heavy_check_mark: ghc 8.10.7 recommended,base-4.14.3.0
βœ— ghc 9.0.1 base-4.15.0.0
βœ— ghc 9.0.2 base-4.15.1.0
βœ“ ghc 9.2.1 latest,base-4.16.0.0
βœ— cabal 2.4.1.0 no-bindist
βœ— cabal 3.0.0.0 no-bindist
βœ— cabal 3.2.0.0 no-bindist
βœ— cabal 3.4.0.0
βœ— cabal 3.4.1.0
βœ— cabal 3.6.0.0
:heavy_check_mark::heavy_check_mark: cabal 3.6.2.0 latest,recommended
βœ— hls 1.1.0 no-bindist
βœ— hls 1.2.0 no-bindist
βœ— hls 1.3.0 no-bindist
βœ— hls 1.4.0
βœ— hls 1.5.0
βœ— hls 1.5.1
βœ— hls 1.6.0.0
βœ— hls 1.6.1.0 latest,recommended
βœ— stack 2.5.1 no-bindist
βœ— stack 2.7.1 no-bindist
:heavy_check_mark::heavy_check_mark: stack 2.7.3 latest,recommended
:heavy_check_mark::heavy_check_mark: ghcup 0.1.17.4 latest,recommended

like i said i before, i am following a step by step guide and i’m stuck at point 4 and i don’t know why. I followed it exactly. Thank you
regards thomas

Yes:

βœ— ghc 8.4.4 base-4.11.1.0 no-bindist

There is no bindist for it. See Index of /ghc/8.4.4/

The first bindist that might work, appears to be 8.6.5.

should i install ghc 8.6.5 and try to compile it?

You do not need Step 4. Step 4 bootstraps Stack 2.5.1 using Stack 2.1.3, but you already got Stack 2.7.3 from ghcup. Just proceed with Step 5.

thank you @Bodigrim @hasufell it has worked now!

Please don’t use anything prior to 8.10.3 on AArch64. 8.10.3 is the first release that has the first known to know be outright busted RTS for weak memory models.

1 Like