Bug#913878: /usr/lib/ghc/rts/libHSrts.a(TopHandler.o):function exitTopHandler: error: relocation overflow

Mathieu Malaterre malat at debian.org
Fri Nov 16 10:26:43 GMT 2018


Source: ghc
Version: 8.4.3+dfsg1-4
Severity: normal
Tags: patch
User: debian-powerpc at lists.debian.org
Usertags: powerpc

It would be nice to make ghc compile on powerpc, current failure:

Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main.
    Call hs_init_ghc() from your main() function to set these options.
/usr/lib/ghc/rts/libHSrts.a(TopHandler.o):function exitTopHandler:
error: relocation overflow
/usr/lib/ghc/rts/libHSrts.a(Stable.o):function exitStableTables:
error: relocation overflow
/usr/lib/ghc/rts/libHSrts.a(Stable.o):function exitStableTables:
error: relocation overflow
/usr/lib/ghc/rts/libHSrts.a(Stable.o):function exitStableTables:
error: relocation overflow
/usr/lib/ghc/rts/libHSrts.a(Stable.o):function exitStableTables:
error: relocation overflow
/usr/lib/ghc/rts/libHSrts.a(RtsStartup.o):function hs_exit_: error:
relocation overflow
/usr/lib/ghc/rts/libHSrts.a(RtsStartup.o):function hs_exit_: error:
relocation overflow
...

Maybe related to:
https://lists.gnu.org/archive/html/bug-binutils/2015-03/msg00109.html

But documentation states otherwise:
$ grep -1 -r unresolved-symbols *
libraries/Cabal/Cabal/Distribution/Simple/GHC.hs-resolve these
symbols_. We can tell the static linker not to report these
libraries/Cabal/Cabal/Distribution/Simple/GHC.hs:errors by using
`--unresolved-symbols=ignore-all` and all will be fine when we
libraries/Cabal/Cabal/Distribution/Simple/GHC.hs-run the program
([(indeed, this is what the gold linker


ref:
https://buildd.debian.org/status/fetch.php?pkg=ghc&arch=powerpc&ver=8.4.3%2Bdfsg1-4&stamp=1540679666&raw=0



More information about the Pkg-haskell-maintainers mailing list