Skip to content

Building ghc-internal in stage1 and bumping bootstrap compiler #112

Description

@hasufell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions