mini-ghc
Motivation
static linked minimum GHC compiler.. and cabal...
IE SBC's ./bootstrap --with mini-ghc...
just enough tiny ghc-bin to to build the stage 1 and 2 targets .... wget mini-ghc and or haddock(arch$?-bin) else even a ghc-docker-builder.... container to mount the src tree etc.. or cross-mini-ghc-bin for cross building..
Motivation 2
ubuntu host , chroot gentoo .... or chopping a deb to tarball just might or likely wont work...
(however its an SBC... ie rock64.. rock64pro... (RPI3 meh... RPi4 has 4 gigs and more power.. but soon) LLVM is bleeding on gentoo often ie llvm-8 9 etc.. a docker could probe system , apt get @docker-ctr... llvm8/9 etc to match host targets as best possible.
with these in hand , as a static binary bootstrapping would be less of a pain , as the mini-ghc has all the libs etc compiled in to do just thus.. once stage 1 builds, reconfig to it keep going... on target system.. with proper liniking etc..