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">&lt;<a href="mailto:kahl@cas.mcmaster.ca">kahl@cas.mcmaster.ca</a>&gt;</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>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m getting the same error as Alexy below in some 64bit linux system. What<br>
&gt; can I do? Adding -fPIC and also -dynamic does not seem to solve the problem.<br>
&gt; Also, this only happens with a perf build; devel1 works fine.<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Pedro<br>
&gt;<br>
&gt; On Sat, Jun 26, 2010 at 05:56, braver &lt;<a href="mailto:deliverable@gmail.com">deliverable@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; An attempt to build the trunk gets me this:<br>
&gt; &gt;<br>
&gt; &gt; /opt/portage/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.4/../../../../x86_64-<br>
&gt; &gt; pc-linux-gnu/bin/ld: rts/dist/build/RtsStartup.dyn_o: relocation<br>
&gt; &gt; R_X86_64_PC32 against symbol `StgRun&#39; can not be used when making a<br>
&gt; &gt; shared object; recompile with -fPIC<br>
&gt; &gt;<br>
&gt; &gt; -- I use prefix portage on a CentOS box, admittedly a non-standard<br>
&gt; &gt; setup.  Its gcc is found first and it wants -fPIC...  Should I just<br>
&gt; &gt; add it to CFLAGS or what?<br>
&gt; &gt;<br>
&gt; &gt; -- Alexy<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Haskell-Cafe mailing list<br>
&gt; &gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; &gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; !DSPAM:4d5e4b2789541804284693!<br>
<br>
&gt; _______________________________________________<br>
&gt; Glasgow-haskell-users mailing list<br>
&gt; <a href="mailto:Glasgow-haskell-users@haskell.org">Glasgow-haskell-users@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/glasgow-haskell-users" target="_blank">http://www.haskell.org/mailman/listinfo/glasgow-haskell-users</a><br>
&gt;<br>
&gt;<br>
&gt; !DSPAM:4d5e4b2789541804284693!<br>
<br>
</blockquote></div><br>