Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault)
John Paul Adrian Glaubitz
glaubitz at physik.fu-berlin.de
Thu Jun 13 08:41:07 BST 2024
Hi,
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.
Adrian
--
.''`. 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