Hi Gaby,

here you go:

https://github.com/ggreif/ghc

But in 2 places you will still need some manual intervention:

$TOP/settings (check word size)
the other settings file 'find $TOP -name settings'

$ find . -name settings
./inplace/lib/settings
./settings


And be sure to check

./includes/ghcautoconf.h

because it is currently filled with host configury, so you'll have to
edit it. Making this automatic is on my list after the binary starts
to run on target. I had to adjust the UL and L sizes (and alignments)
from 8 to 4 for my PPC target.

Then you have to

$ perl boot
$ ./configure --host=<triple> --target=<triple>
--with-target-gcc=<path-to-cross-cc>

Cheers,

   Gabor


PS: What are you trying to target?
PPS: Crossing fingers that you run into the same problem and that you
can help me debugging it ;-)

On 1/15/12, Gabriel Dos Reis <[email protected]> wrote:
> On Sat, Jan 14, 2012 at 6:07 PM, Gabor Greif <[email protected]> wrote:
>> Hello hackers,
>>
>> my "hello world" program compiles and links, but when running on the
>> embedded PowerPC board it crashes like this:
>>
>
> Hi Gabor,
>
> where can I find links to your patches enabling
> cross-compilation/cross-building?
>

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to