It seems upstream GHC now requires ghc-internals to be built in stage 1:
And the minimum GHC version now is 9.10.x.
Our own ghc-internal configure deviates and has the following code:
|
AC_MSG_CHECKING([for GHC/Internal/Prim.hs]) |
|
if mkdir -p GHC/Internal && $GHC --print-prim-module > GHC/Internal/Prim.hs; then |
|
AC_MSG_RESULT([created]) |
|
else |
|
AC_MSG_RESULT([failed to create]) |
|
AC_MSG_ERROR([Failed to run $GHC --print-prim-module > GHC/Internal/Prim.hs]) |
|
fi |
|
|
|
AC_MSG_CHECKING([for GHC/Internal/PrimopWrappers.hs]) |
|
if mkdir -p GHC/Internal && $GHC --print-prim-wrappers-module > GHC/Internal/PrimopWrappers.hs; then |
|
AC_MSG_RESULT([created]) |
|
else |
|
AC_MSG_RESULT([failed to create]) |
|
AC_MSG_ERROR([Failed to run $GHC --print-prim-wrappers-module > GHC/Internal/PrimopWrappers.hs]) |
|
fi |
--print-prim-module and --print-prim-wrappers-module only exist in our stable-haskell GHC. That means we can't really build ghc-internal in stage 1 with upstream 9.10.
It seems upstream GHC now requires ghc-internals to be built in stage 1:
And the minimum GHC version now is 9.10.x.
Our own ghc-internal configure deviates and has the following code:
ghc/libraries/ghc-internal/configure.ac
Lines 418 to 432 in e97506d
--print-prim-moduleand--print-prim-wrappers-moduleonly exist in our stable-haskell GHC. That means we can't really buildghc-internalin stage 1 with upstream 9.10.