External `hadrian` fails on ghc installation
I am working on switching ghc on Gentoo Linux to the new hadrian system. Instead of using ./hadrian/build
, which requires cabal-install
, I have extracted hadrian from the ghc sources and made it into it's own package. This is installed on my system and hadrian
lives in /usr/bin/
.
I am currently testing this approach with ghc-9.2.6
, but I cannot seem to get past this error, which happens after a successful build when I try to get hadrian
to install ghc:
>>> Install dev-lang/ghc-9.2.6 into /var/tmp/portage/dev-lang/ghc-9.2.6/image
* Running: hadrian install --prefix=/var/tmp/portage/dev-lang/ghc-9.2.6/image/usr/
Error when running Shake build system:
at want, called at src/Main.hs:104:30 in main:Main
* Depends on: install
at apply1, called at src/Development/Shake/Internal/Rules/Rerun.hs:41:5 in shake-0.19.7-9t7XEblDBvFJ0y835r3cyF:Development.Shake.Internal.Rules.Rerun
* Depends on: binary-dist-dir
at need, called at src/Rules/BinaryDist.hs:130:9 in main:Rules.BinaryDist
* Depends on: _build/stage1/lib/bin/ghc-iserv-prof
at need, called at src/Rules/Register.hs:79:5 in main:Rules.Register
* Depends on: _build/stage1/lib/x86_64-linux-ghc-9.2.6/ghc-prim-0.8.0/libHSghc-prim-0.8.0_p.a
at error, called at src/Development/Shake/Internal/Rules/File.hs:179:58 in shake-0.19.7-9t7XEblDBvFJ0y835r3cyF:Development.Shake.Internal.Rules.File
* Raised the exception:
Error, rule finished running but did not produce file:
_build/stage1/lib/x86_64-linux-ghc-9.2.6/ghc-prim-0.8.0/libHSghc-prim-0.8.0_p.a
-
GHC ebuild (build script): https://github.com/hololeap/gentoo-haskell/blob/459fa1577f710fd8d79b3ed1a55aeda173fc58f9/dev-lang/ghc/ghc-9.2.6.ebuild
-
hadrian ebuild: https://github.com/hololeap/gentoo-haskell/blob/459fa1577f710fd8d79b3ed1a55aeda173fc58f9/dev-haskell/hadrian/hadrian-9.2.6.ebuild
-
Full build log: ghc-9.2.6-full-build.log