Bug#1060196: ghc: Please build unregisterised compiler with --param ggc-min-expand=10 -O3 on powerpc

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sun Jan 7 11:23:16 GMT 2024


Source: ghc
Version: 9.4.7-2
Severity: normal
User: debian-powerpc at lists.debian.org
Usertags: powerpc
X-Debbugs-Cc: debian-powerpc at lists.debian.org

Hello!

Due to the current regression in the native code generator for PowerPC on
32-bit targets [1], GHC can only be built as an unregisterised compiler
on the target.

Thus, please configure GHC with --enable-unregisterised on powerpc.

Also, since building an unregisterised GHC generates very large intermediate
C sources, we additionally have to pass both "--param ggc-min-expand=10" and
"-O3" to reduce the memory footprint and the size of the generated assembly
code respectively [2].

Thus, please pass -optc--param -optcggc-min-expand=10 and -optc-O3 to the GHC
build flags.

With these changes, GHC should build successfully on powerpc.

Thanks,
Adrian

> [1] https://gitlab.haskell.org/ghc/ghc/-/issues/23969
> [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108208

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-haskell-maintainers mailing list