Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1200750

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

From John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Newsgroups linux.debian.bugs.dist, linux.debian.ports.powerpc
Subject Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault)
Date 2024-06-13 09:50 +0200
Message-ID <IONnz-2Ap3-1@gated-at.bofh.it> (permalink)
References (4 earlier) <HnJ0t-f7Fi-3@gated-at.bofh.it> <HnJ0t-f7Fi-1@gated-at.bofh.it> <IONnz-2Ap3-5@gated-at.bofh.it> <FprZT-2f5q-1@gated-at.bofh.it> <IONnz-2Ap3-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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

Back to linux.debian.bugs.dist | Previous | NextNext in thread | Find similar


Thread

Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault) John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-06-13 09:50 +0200
  Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault) Jeffrey Walton <noloader@gmail.com> - 2024-06-13 10:00 +0200
    Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault) John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-06-13 10:20 +0200
      Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault) Ilias Tsitsimpis <iliastsi@debian.org> - 2024-06-13 20:40 +0200
        Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault) John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-06-13 21:00 +0200
          Bug#1023649: ghc: FTBFS haskell-random powerpc (ghc Segmentation fault) John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> - 2024-06-14 10:40 +0200

csiph-web