Link failure

Simon Peyton Jones simonpj at
Thu Apr 17 07:12:03 UTC 2014

sorry, ignore me - I assume it's #8696 and my tree is fairly old.  I'll update.


From: ghc-devs [mailto:ghc-devs-bounces at] On Behalf Of Simon Peyton Jones
Sent: 17 April 2014 08:07
To: ghc-devs at
Subject: Link failure

On 64-bit Linux I'm getting this in the link step for the template-haskell library:

/usr/bin/ld: libraries/template-haskell/dist-install/build/Language/Haskell/TH/Syntax.dyn_o: relocation R_X86_64_PC32 against undefined symbol `templatezmhaskell_LanguageziHaskellziTHziSyntax_OccName_closure' can not be used when making a shared object; recompile with -fPIC

/usr/bin/ld: final link failed: Bad value

collect2: ld returned 1 exit status

make[2]: *** [libraries/template-haskell/dist-install/build/] Error 1

make[1]: *** [all_libraries/template-haskell] Error 2

make[1]: Leaving directory `/5playpen/simonpj/HEAD-1'
My compiler is not vanilla HEAD, but I have changed only stuff in the Core simplifier, nothing in the back end.
Does anyone have the faintest idea what is going on? It's extremely annoying because I can't make progress without working around it somehow.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list