<div dir="ltr">i think the fix for this, or a related problem is merged into cabal/cabal-install head, and will be in 1.22<div><br></div><div>does your problem go away if you dont enable profiled builds? (is so, its likely the same problem)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 19, 2014 at 1:32 PM, David Turner <span dir="ltr"><<a href="mailto:dct25-561bs@mythic-beasts.com" target="_blank">dct25-561bs@mythic-beasts.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm having trouble making a HPC build of a Yesod application. It fails with:<br>
<br>
/usr/bin/ld: dist/build/StreamReading/Config.dyn_o: relocation<br>
R_X86_64_PC32 against undefined symbol<br>
`_hpc_tickboxes_tracszmenterprisezm0zi0zi0_Settings_hpc' can not be<br>
used when making a shared object; recompile with -fPIC<br>
<br>
I've narrowed it down to a call to ghc and posted the output in all<br>
its gory detail at <a href="http://lpaste.net/116872" target="_blank">http://lpaste.net/116872</a> if that's any help.<br>
<br>
Of note is that dist/build/Settings.dyn_o is unexpectedly missing from<br>
the list of parameters to the last call to gcc, and the missing symbol<br>
is defined in the same. There are, in fact, quite a number of missing<br>
.dyn_o files in that list.<br>
<br>
Slightly weirdly, when I run the same command line again, it seems to<br>
work. At least, there are no errors reported and the exit code is 0.<br>
<br>
Any ideas?<br>
<br>
Cheers,<br>
<br>
David<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br></div>