Thanks for the tip. I cannot easily update binutils. I am with version 2.17.50.0.6-14.el5 20061020. On another machine (32bit) it works fine...<br><br><br>Cheers,<br>Pedro<br><br><div class="gmail_quote">2011/2/18 Wolfram Kahl <span dir="ltr"><<a href="mailto:kahl@cas.mcmaster.ca">kahl@cas.mcmaster.ca</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I am not certain, but this may be the same problem that I once had,<br>
and that was solved by updating to binutils-2.20.<br>
<br>
ld --version<br>
GNU ld (GNU Binutils) 2.20.1.20100303<br>
<br>
<br>
Wolfram<br>
<div><div></div><div class="h5"><br>
<br>
On Fri, Feb 18, 2011 at 11:34:03AM +0100, José Pedro Magalhães wrote:<br>
> Hi all,<br>
><br>
> I'm getting the same error as Alexy below in some 64bit linux system. What<br>
> can I do? Adding -fPIC and also -dynamic does not seem to solve the problem.<br>
> Also, this only happens with a perf build; devel1 works fine.<br>
><br>
><br>
> Thanks,<br>
> Pedro<br>
><br>
> On Sat, Jun 26, 2010 at 05:56, braver <<a href="mailto:deliverable@gmail.com">deliverable@gmail.com</a>> wrote:<br>
><br>
> > An attempt to build the trunk gets me this:<br>
> ><br>
> > /opt/portage/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-<br>
> > pc-linux-gnu/bin/ld: rts/dist/build/RtsStartup.dyn_o: relocation<br>
> > R_X86_64_PC32 against symbol `StgRun' can not be used when making a<br>
> > shared object; recompile with -fPIC<br>
> ><br>
> > -- I use prefix portage on a CentOS box, admittedly a non-standard<br>
> > setup. Its gcc is found first and it wants -fPIC... Should I just<br>
> > add it to CFLAGS or what?<br>
> ><br>
> > -- Alexy<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>
> ><br>
><br>
><br>
</div></div>> !DSPAM:4d5e4b2789541804284693!<br>
<br>
> _______________________________________________<br>
> Glasgow-haskell-users mailing list<br>
> <a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
><br>
><br>
> !DSPAM:4d5e4b2789541804284693!<br>
<br>
</blockquote></div><br>