Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

0 views
Skip to first unread message

John Paul Adrian Glaubitz

unread,
Jan 7, 2024, 6:30:05 AMJan 7
to
Source: ghc
Version: 9.4.7-2
Severity: normal
User: debian-...@lists.debian.org
Usertags: powerpc
X-Debbugs-Cc: debian-...@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
0 new messages