Re: [Q] CMM error (cross-powerpc-linux backend)

2012-01-09 Thread Gabor Greif
On 1/9/12, Simon Marlow wrote: > On 04/01/2012 15:48, Gabor Greif wrote: >> Hi hackers, >> >> I got my cross-ghc so far that it compiles its own libraries, now onto the >> rts! > > BTW, if you're working on cross compilation, are you aware of Stephen > Blackheath's work? > > http://www.haskell.org

Re: [Q] CMM error (cross-powerpc-linux backend)

2012-01-09 Thread Simon Marlow
On 04/01/2012 15:48, Gabor Greif wrote: Hi hackers, I got my cross-ghc so far that it compiles its own libraries, now onto the rts! BTW, if you're working on cross compilation, are you aware of Stephen Blackheath's work? http://www.haskell.org/pipermail/iphone/2011-November/94.html Ste

Re: [Q] CMM error (cross-powerpc-linux backend)

2012-01-05 Thread Gabor Greif
On 1/5/12, Simon Marlow wrote: > On 05/01/2012 12:33, Gabor Greif wrote: >> Okay, mystery solved. The STG registers obtain the size of a host >> pointer (which in my case is 64 bits) even for the target >> architectures that are 32 bits. >> >> ... >> >> So StgUnion has size of 8 (in my --host=x86_

Re: [Q] CMM error (cross-powerpc-linux backend)

2012-01-05 Thread Simon Marlow
On 05/01/2012 12:33, Gabor Greif wrote: Okay, mystery solved. The STG registers obtain the size of a host pointer (which in my case is 64 bits) even for the target architectures that are 32 bits. include/Types.h takes care to check target pointer size here: #if SIZEOF_VOID_P == 4 but goes on

Re: [Q] CMM error (cross-powerpc-linux backend)

2012-01-05 Thread Gabor Greif
Okay, mystery solved. The STG registers obtain the size of a host pointer (which in my case is 64 bits) even for the target architectures that are 32 bits. include/Types.h takes care to check target pointer size here: > #if SIZEOF_VOID_P == 4 but goes on to define > typedef StgWord* Stg

[Q] CMM error (cross-powerpc-linux backend)

2012-01-04 Thread Gabor Greif
Hi hackers, I got my cross-ghc so far that it compiles its own libraries, now onto the rts! All goes right, until I get: "inplace/bin/ghc-stage1" -H64m -O0 -fasm -Iincludes -Irts -Irts/dist/build -DCOMPILING_RTS -package-name rts -dcmm-lint -i -irts -irts/dist/build -irts/dist/build/auto