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].
Have you started on a registerised port? 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 <<a href="mailto:martinwguy@yahoo.it">martinwguy@yahoo.it</a>> 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">> I've been working on porting GHC to armel for the Nokia N810.<br>> Unfortunately, I can't use the packages you made because the OS<br>> (<a href="http://maemo.org" target="_blank">maemo.org</a>) is based on Debian Sarge and uses libc-2.5. I'm using<br>
> scratchbox (<a href="http://scratchbox.org" target="_blank">scratchbox.org</a>) and qemu and following the instructions at<br>> <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>
> been unsuccessful. The stage1 compiler compiles fine, but then crashes<br>> when building the stage2 compiler on qemu. I've tried GHC 6.4.2, 6.6.1,<br>> and 6.8.2, but 6.6.1 is the version I get furthest with. Is there any<br>
> tips you can give me? Do you still have the intermediate .hc files from<br>> your builds? (The .hc files built on a ARM might work better.) Did you<br>> 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'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> M<br></font></blockquote></div><br>