GHC can't bootstrap on a musl-based system probably because the provided binaries used to bootstrap are not compatible. Reproducible: Always Steps to Reproduce: 1. emerge -1 =dev-lang/ghc-8.10.4-r1 Actual Results: * Relocating 'lib64' to 'lib' (bug #476998) /tmp/portage/dev-lang/ghc-8.10.4-r1/temp/ghc-pkg-8.10.4-orig: line 11: /tmp/portage/dev-lang/ghc-8.10.4-r1/work/usr/lib/ghc-8.10.4/bin/ghc-pkg: No such file or directory (although the file exists in the workdir)
I see this behavior as well on 9.0.2-r1. It seems strange that the mv command would fail because there was something wrong with the haskell binaries?
Pleasse include the full build.log & emerge --info for completneess. It's helpful in particular if debugging from a non-musl system.
Created attachment 800671 [details] ghc musl emerge --info
Created attachment 800673 [details] ghc musl build.log
I'm running into this on a musl+clang system profile trying to emerge ghc-9.0.2 with default USE flags. The same thing happens even when following the post-fail message instructions to USE=ghcbootstrap. What's the correct way to bootstrap ghc on a musl+clang profile?