<html><head></head><body><div>Hi Sven,</div><div><br></div><div>On Mon, 2016-02-22 at 17:44 +0100, Abou Al Montacir wrote:</div><blockquote type="cite"><div>Hi Sven</div><div><br></div><div>On Mon, 2016-02-22 at 07:58 +0100, Sven Barth wrote:</div><blockquote type="cite"><p>>  Looks like PIC code was broken in 3.0. Is there anyone aware of that? How can we fix that?<br>
></p>
<p>Would you please try the current development version of FPC (3.1.1) to check whether the issue persists there?</p></blockquote><div>Yes, sure I'll do and let you know.</div></blockquote><div>I've tested the FPC trunk and it works well. Here is the log of both wersions:</div><pre>(sid_armel-dchroot)<a href="mailto:abou@abel">abou@abel</a>:~/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabi/hedgewars$ fpc -fPIC test2 && ./test2</pre><pre>Free Pascal Compiler version 3.0.0+dfsg-2 [2016/01/28] for arm</pre><pre>Copyright (c) 1993-2015 by Florian Klaempfl and others</pre><pre>Target OS: Linux for ARMEL</pre><pre>Compiling test2.pas</pre><pre>Assembling test</pre><pre>Linking test2</pre><pre>/usr/bin/ld.bfd: warning: link.res contains output sections; did you forget -T?</pre><pre>4 lines compiled, 0.3 sec</pre><pre>Runtime error 103 at $000101D8</pre><pre>  $000101D8</pre><pre>  $00010124</pre><pre><br></pre><pre>(sid_armel-dchroot)<a href="mailto:abou@abel">abou@abel</a>:~/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabi/hedgewars$ /home/abou/fpc-3.1.1/fpc-3.1.1/build/fpc-3.1.1/fpcsrc/compiler/ppcarm -Fu/home/abou/fpc-3.1.1/fpc-3.1.1/build/fpc-3.1.1/fpcsrc/ -Fu/home/abou/fpc-3.1.1/fpc-3.1.1/build/fpc-3.1.1/fpcsrc/rtl/units/arm-linux -fPIC test2 && ./test2</pre><pre>Free Pascal Compiler version 3.1.1-0 [2016/02/24] for arm</pre><pre>Copyright (c) 1993-2015 by Florian Klaempfl and others</pre><pre>Target OS: Linux for ARMEL</pre><pre>Compiling test2.pas</pre><pre>Linking test2</pre><pre>4 lines compiled, 0.2 sec</pre><pre>Hello</pre><pre>(sid_armel-dchroot)<a href="mailto:abou@abel">abou@abel</a>:~/hedgewars-0.9.22-dfsg/obj-arm-linux-gnueabi/hedgewars$ </pre><div><div><br></div><div>This shows that the issue was fixed in trunk. Can you please help finding the revision that may fixed that so we can extract a patch and fix 3.0.0?</div><div><br></div><div>As long as this bug is open, fpc transition to testing is blocked and this is quite unpleasing for many of our users.</div><pre>-- 
Cheers,
Abou Al Montacir</pre></div></body></html>