Re: Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault)

Jeffrey Walton <[email protected]>
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <CAH8yC8mj=JdRNcdDzDdACUHGqMB+Mstk9CqBaht6iKP=34uD=w@mail.gmail.com>
On Thu, Jun 13, 2024 at 3:41 AM John Paul Adrian Glaubitz
<[email protected]> wrote:
>
> I finally figured out what the problem is.
>
> After realizing that the two-stage build of GHC works without problems,
> I realized it can be a configuration issue only and, indeed, it is.
>
> Looking at /usr/lib/ghc/lib/settings, the default linker is set to gold:
>
>         "C compiler link flags", "-fuse-ld=gold"
>
> Since gold is broken on powerpc and shouldn't really be used anymore since
> it's basically unmaintained upstream, we must use bfd on powerpc by default.
>
> Editing the file and switching back to bfd fixes the problem for me.
>
> Now we just need to figure out how to actually set the default linker back
> to bfd as it was actually explicitly supposed to happen according to
> debian/rules.
>
> This will most likely also unbreak GHC on m68k.

Good job, Adrian. That's quite a bit of work to track down the issue.

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.