Anyway, attempts to build it without the LLVM flag fail:
Code: Select all
# emerge --ask dev-lang/ghc
[ebuild N ] dev-lang/ghc-9.2.8
[ebuild N ] app-admin/haskell-updater-1.4.1.0
Code: Select all
* ERROR: dev-lang/ghc-9.2.8::haskell failed (setup phase):
* No binary available for 'arm64' arch yet, USE=ghcbootstrap
Code: Select all
* ghc not found
* ERROR: dev-lang/ghc-9.2.8::haskell failed (pretend phase):
Code: Select all
LLVM_MAX_SLOT="14"
What I've learned so far:
- The ghcbootstrap keyword isn't an option to build GHC from a C compiler as one might expect.
- If I understand correctly, with the llvm flag enabled GHC should build but it requires a version of LLVM <=14 in order to do that.
Code: Select all
# emerge --ask --autounmask =dev-lang/ghc-9.4.7
[ebuild N ] dev-lang/ghc-9.4.7
[ebuild N ] app-admin/haskell-updater-1.4.1.0
Code: Select all
* Please try emerging with USE=ghcbootstrap and report build
* success or failure to the haskell team (haskell@gentoo.org)
* ERROR: dev-lang/ghc-9.4.7::haskell failed (setup phase):
* No binary available for 'arm64' arch yet, USE=ghcbootstrap
*
* Call stack:
* ebuild.sh, line 136: Called pkg_setup
* ghc-9.4.7.ebuild, line 475: Called die
* The specific snippet of code:
* die "No binary available for '${ARCH}' arch yet, USE=ghcbootstrap"
*
* If you need support, post the output of `emerge --info '=dev-lang/ghc-9.4.7::haskell'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/ghc-9.4.7::haskell'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/ghc-9.4.7/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-9.4.7/temp/die.env'.
* Working directory: '/var/tmp/portage/dev-lang/ghc-9.4.7/empty'
* S: '/var/tmp/portage/dev-lang/ghc-9.4.7/work/ghc-9.4.7'



