Martin,<br><br>I was able to make an unregisterised port of GHC 6.8.2 to the N810 by using Scratchbox with the qemu-arm-eabi patch[1].&nbsp;
Have you started on a registerised port?&nbsp; I have been reading the ARM
Architecture Reference Manual and other documents about the ARM ABI,
and I am working on a registerised port of GHC for the N810.<br><br>[1] <a href="http://maemogeek.blogspot.com/2007/11/installing-qemu-arm-eabi-patch-into.html">http://maemogeek.blogspot.com/2007/11/installing-qemu-arm-eabi-patch-into.html</a><br>
<br><div class="gmail_quote">On Jan 23, 2008 7:32 AM, Martin Guy &lt;<a href="mailto:martinwguy@yahoo.it">martinwguy@yahoo.it</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">&gt; I&#39;ve been working on porting GHC to armel for the Nokia N810.<br>&gt; Unfortunately, I can&#39;t use the packages you made because the OS<br>&gt; (<a href="http://maemo.org" target="_blank">maemo.org</a>) is based on Debian Sarge and uses libc-2.5. &nbsp;I&#39;m using<br>
&gt; scratchbox (<a href="http://scratchbox.org" target="_blank">scratchbox.org</a>) and qemu and following the instructions at<br>&gt; <a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Porting" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Building/Porting</a> , but have<br>
&gt; been unsuccessful. &nbsp;The stage1 compiler compiles fine, but then crashes<br>&gt; when building the stage2 compiler on qemu. &nbsp;I&#39;ve tried GHC 6.4.2, 6.6.1,<br>&gt; and 6.8.2, but 6.6.1 is the version I get furthest with. &nbsp;Is there any<br>
&gt; tips you can give me? &nbsp;Do you still have the intermediate .hc files from<br>&gt; your builds? (The .hc files built on a ARM might work better.) &nbsp;Did you<br>&gt; have similar problems with qemu?<br><br></div></div>I used a fast x86 to make the .hc files, as documented in the URL you cite,<br>
then did the final build on a lot of real ARMs. The problem is it<br>needs over 128MB RAM (yes, RAM) to compile some of the files - I did<br>these few under QEMU. My personal notes are attached - these are not a<br>product, they are my own personal notes, so please don&#39;t expect them<br>
to be a how-to. Porting GHC was difficult and not straightforward,<br>dying at many stages for many different reasons.<br><br>The real answer is for Maemo to update its software to versions from<br>this century.<br>I did this in 2006 trying to bootstrap the Debian arm EABI port and my<br>
notes are at<br><a href="http://cluster.aleph1.co.uk/%7Emartin/maemo-fixes.txt" target="_blank">http://cluster.aleph1.co.uk/~martin/maemo-fixes.txt</a><br><br>For further help with this, I suggest we find a mailing list where<br>
others can give their expertise and experience, and where in future<br>people will find the outcome of our discussion. How about<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>Good luck!<br><font color="#888888"><br> &nbsp; &nbsp;M<br></font></blockquote></div><br>