
#10402: powerpc: unhandled ELF relocation(RelA) type 252 -----------------------------------+----------------------------------- Reporter: cjwatson | Owner: simonmar Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Runtime System | Version: 7.8.4 Resolution: | Keywords: Operating System: Linux | Architecture: powerpc Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -----------------------------------+----------------------------------- Comment (by slyfox): Replying to [comment:13 nomeata]:
Do I do something incorrectly? (or the test was on non-powerpc?)
Sorry, was on non-powerpc. I only checked on arm64 and checked that we did not change any settings per architecture here, but it seems that ghc by default builds GHC without dynamic libraries?
Yeah, there is a blacklist of bad platforms: {{{ # apt-get source ghc # grep -A10 NoSharedLibsPlatformList ghc-7.8.4/mk/config.mk.in NoSharedLibsPlatformList = powerpc-unknown-linux \ x86_64-unknown-mingw32 \ i386-unknown-mingw32 \ sparc-sun-solaris2 \ sparc-unknown-linux \ mips-unknown-linux \ mipsel-unknown-linux }}} On 7.10 it does not contain linux targets. I've completely forgot that upstream ghc was released before PPC -fPIC fix went upstream fa31e8f4a0f853848d96549a429083941877bf8d after 7.8.4 release :( You might like to apply this as well 78863edbb0751f5c9694ea10c6132a87cfd0ee10 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10402#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler