Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

Set of core libraries/tools installed with GHC shouldn't vary between native and cross compilation
## Summary In general, it is preferrable that GHC always install the same core libraries and tools. Of course some of those are platform specific, so exceptions are permissible. However, it is unnecessarily confusing that the set of core libraries and tools varies for one and the same target platform depending on `CrossCompiling` as produced by `configure`. - `haddock` is disabled when cross compiling. Before hadrian, it was possible to force building/installing haddock (though I remember it being broken for cross in some way). - `terminfo` is disabled when cross compiling. Before hadrian, it was possible to force building/installing terminfo via `ghc.mk` (`WITH_TERMINFO`). - (Historically, xhtml would only be built if natively compiling for GHC < 9.4) - `libiserv` is only built if natively compiling. This is directly related to `CrossCompiling`, but forcing the internal interpreter to be built even if building a cross compiler is interesting for some applications, e.g. when the host platform can execute the code of the target platform (x86_64->i686, for example) or when cross compiling GHC (building a Stage 2 compiler with `CrossCompiling` true). ## Steps to reproduce Build a GHC cross compiler: - `${prefix}-ghc-pkg list | grep terminfo` will yield no results - `${prefix}-haddock` won't exist This is even the case when the user passes configure flags that are directly related to the component in question, e.g. `--with-curses-includes` and `--with-curses-libraries`. ## Expected behavior - GHC should always install the same set of core libraries and tools across configurations if possible. - It shouldn't matter whether `CrossCompiling` is true or not. - If a certain component needs to be gated on configuration, users should be able to manually enable or disable said component. If it is not possible to respect such settings, the build should fail rather than silently changing them. ## Environment * GHC version used: >= 9.6 Optional: * Operating System: NixOS * System Architecture: x86_64-linux
issue