Skip to content

ghc-8.6.5 fails to build gtk2hs-buildtools on ppc64le

Summary

See https://bugzilla.redhat.com/show_bug.cgi?id=1737587

On ppc64le ghc-8.6.5 fails to link gtk2hsC2hs from gtk2hs-buildtools (0.13.5).

Preprocessing executable 'gtk2hsC2hs' for gtk2hs-buildtools-0.13.5.0..
Building executable 'gtk2hsC2hs' for gtk2hs-buildtools-0.13.5.0..
[1 of 1] Compiling Main             ( exe/gtk2hsC2hsMain.hs, dist/build/gtk2hsC2hs/gtk2hsC2hs-tmp/Main.o )
Linking dist/build/gtk2hsC2hs/gtk2hsC2hs ...
BUILDSTDERR: /builddir/build/BUILD/gtk2hs-buildtools-0.13.5.0/dist/build/libHSgtk2hs-buildtools-0.13.5.0-KQlf14Qb9I4Aj3qfo8QuZi.a(Binary.o)(.data+0x1798): error: undefined reference to 'crcF_closure'
BUILDSTDERR: /builddir/build/BUILD/gtk2hs-buildtools-0.13.5.0/dist/build/libHSgtk2hs-buildtools-0.13.5.0-KQlf14Qb9I4Aj3qfo8QuZi.a(Binary.o)(.data.rel.ro+0x4720): error: undefined reference to 'crcF_closure'
BUILDSTDERR: /builddir/build/BUILD/gtk2hs-buildtools-0.13.5.0/dist/build/libHSgtk2hs-buildtools-0.13.5.0-KQlf14Qb9I4Aj3qfo8QuZi.a(Binary.o)(.data.rel.ro+0x4740): error: undefined reference to 'crcF_closure'
BUILDSTDERR: /builddir/build/BUILD/gtk2hs-buildtools-0.13.5.0/dist/build/libHSgtk2hs-buildtools-0.13.5.0-KQlf14Qb9I4Aj3qfo8QuZi.a(Binary.o)(.data.rel.ro+0x4760): error: undefined reference to 'crcF_closure'
BUILDSTDERR: collect2: error: ld returned 1 exit status
BUILDSTDERR: `gcc' failed in phase `Linker'. (Exit code: 1)

Steps to reproduce

Roughly:

  1. login to ppc64le with ghc-8.6.5 (eg Fedora 31 devel)
  2. cabal install gtk2hs-buildtools

(On fedora more preciously:

$ sudo dnf install fedpkg
$ fedpkg clone -a gtk2hs-buildtools
$ cd gtk2hs-buildtools
$ sudo dnf builddep ./gtk2hs-buildtools.spec
$ fedpkg local

)

gtk2hs-buildtools fine on ppc64le with ghc-8.4.4 (Fedora 30). I haven't tried building with Fedora ghc:8.6 module on Fedora 30.

Expected behavior

Finish building normally

Environment

  • GHC version used: 8.6.5

Optional:

  • Operating System: Linux (Fedora 31)
  • System Architecture: ppc64le
Edited by Jens Petersen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information