Tried building on a debian 11 shell in my Arm(aarch64) chromebook with crouton(kind of chroot) to upload here and close this issue.
got errored:- ghc: could not execute: hspec-discover
when i poked it a bit, a more specific error was: cabal: Failed to build ghcup-0.1.15.2-inplace-ghcup-test.
full prompt output:- -----------------------(debi)arjun@localhost:~/Documents/repos/ghcup-hs$ cabal build -w ghc-${GHC_VERSION} -ftuiBuild profile: -w ghc-8.10.5 -O2In order, the following will be built (use -v for more details): - ghcup-0.1.15.2 (test:ghcup-test) (first run)Preprocessing test suite 'ghcup-test' for ghcup-0.1.15.2..Building test suite 'ghcup-test' for ghcup-0.1.15.2..ghc: could not execute: hspec-discover
yea, it probably wont, since i have Debian 11(testing) on my machine and the glibc version would be ahead. Version 2.31 however, should cover much more devices than the previous 2.33, since 2.31 seems to be the version for ubuntu 20.04 LTS.
we should just use a CI build from an older debian version for dist tbh.
I don't think we should use debian 11. GHC builds run on debian 10 and I use our internal docker images for debian 10 that have GHC and llvm preinstalled. It's good to synchronize with GHC CI.
So we need:
Armv7 debian 10 ghcup binary
Aarch64 debian 10 ghcup binary
You can build those via a docker container. Armv7 docker image runs on aarch64 I believe.
Alright, i've tried, but docker wont run on this machine (chromebook with crouton) as it need some grub tweaks to return to cgroups-v1, but there is no grub here so that can't be done.
some posts suggest compiling your own chromium-os kernel and then keep it sync with all future updates, after which docker also may or maynot work.
That's more work than i am willing to put in for this machine tbh :/