Bug#908998: ghc: Please build with --disable-ld-override on sparc64

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Mon Sep 17 09:27:57 BST 2018


Source: ghc
Version: 8.2.2-6
Severity: normal
User: debian-sparc at lists.debian.org
Usertags: sparc64

Hi!

Like on powerpcspe in #904915, the gold linker has issues on sparc64
when building GHC:

/usr/bin/ar: creating compiler/stage2/build/libHSghc-8.2.2.a
Warning: -rtsopts and -with-rtsopts have no effect with -shared.
    Call hs_init_ghc() from your main() function to set these options.
collect2: fatal error: ld terminated with signal 11 [Segmentation fault]
compilation terminated.
`gcc' failed in phase `Linker'. (Exit code: 1)
<<ghc: 35673096 bytes, 10 GCs, 406596/698536 avg/max bytes residency (2 samples), 29M in use, 0.002 INIT (0.002 elapsed), 1.380 MUT (69.116 elapsed), 0.180 GC (0.180 elapsed) :ghc>>
make[3]: *** [compiler/ghc.mk:588: compiler/stage2/build/libHSghc-8.2.2-ghc8.2.2.so] Error 1
make[3]: *** Deleting file 'compiler/stage2/build/libHSghc-8.2.2-ghc8.2.2.so'
make[3]: *** Waiting for unfinished jobs....

To work around this issue, we can just switch to the bfd linker for
the time being. Hence, please add "sparc64" to the --disable-ld-override
list in debian/rules.

PS: I'm doing a final test with the gold linker now just to be sure
    we can't use gold at the moment. I will report back within the
    next hours or days (doing an unregisterised build is slow).

Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the Pkg-haskell-maintainers mailing list