That works here just fine. Thanks!<br><br><div class="gmail_quote">On Mon, Aug 31, 2009 at 4:02 AM, Christian Maeder <span dir="ltr"><<a href="mailto:Christian.Maeder@dfki.de">Christian.Maeder@dfki.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">Dmitri Sosnik wrote:<br>
> How I can tell gcc to generate 32 bit code? I've tried to set<br>
> CFLAGS=-m32, but it doesn't work.<br>
<br>
</div>(Flags do not work -- without Makefile) Pass<br>
<br>
-optc-m32 -opta-m32 -optl-m32<br>
<br>
through ghc (as pointed out before) for gcc, the assembler "as" and the<br>
linker "ld" resp. (I think, gcc is only used for -via-C)<br>
<br>
These options can be added to the script "/usr/local/bin/ghc" (if it was<br>
installed there).<br>
<br>
HTH Christian<br>
<div class="im"><br>
><br>
> Cheers,<br>
> D<br>
><br>
><br>
> On 31/08/2009, at 12:06 AM, David Leimbach wrote:<br>
><br>
>> Well the old binaries for Leopard already work on Snow Leopard. The<br>
>> problem is the code generated by the GHC compiler doesn't create<br>
>> correct 64bit code when invoking gcc, and gcc on Snow Leopard defaults<br>
>> to 64bit code now. The solution is to use -m32 in the invocation of<br>
>> gcc by default for Snow Leopard, or to make it emit correct 64bit code.<br>
>><br>
>> Given all of the above, I don't think there's any "porting" work to be<br>
>> done.<br>
>><br>
>> On Sun, Aug 30, 2009 at 2:22 AM, Dmitri Sosnik <<a href="mailto:dimavs@gmail.com">dimavs@gmail.com</a><br>
</div><div class="im">>> <mailto:<a href="mailto:dimavs@gmail.com">dimavs@gmail.com</a>>> wrote:<br>
>><br>
>> Hm, don't think so, you have to build for a new platform<br>
>> - <a href="http://hackage.haskell.org/trac/ghc/wiki/Building/Porting" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Building/Porting</a><br>
>><br>
>> D<br>
>><br>
>><br>
>> On 30/08/2009, at 2:10 AM, David Leimbach wrote:<br>
>><br>
>>> Well if I build GHC on Leopard from HEAD and then copy it to Snow<br>
>>> Leopard would that not work?<br>
>>><br>
>>> Dave<br>
>>><br>
>>> On Sat, Aug 29, 2009 at 1:52 AM, Dmitri Sosnik <<a href="mailto:dimavs@gmail.com">dimavs@gmail.com</a><br>
</div><div class="im">>>> <mailto:<a href="mailto:dimavs@gmail.com">dimavs@gmail.com</a>>> wrote:<br>
>>><br>
>>> Here - <a href="http://hackage.haskell.org/trac/ghc/wiki/Building" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/Building</a>, but<br>
>>> it won't help, cause you need working ghc to build ghc.<br>
>>><br>
>>> D<br>
>>><br>
>>><br>
>>> On 29/08/2009, at 6:33 PM, Thomas Davie wrote:<br>
>>><br>
>>><br>
>>> If it is closed, it is fixed in the HEAD.<br>
>>><br>
>>><br>
>>> Any ideas how to get hold of a copy of HEAD, when my<br>
>>> Haskell compiler currently outputs rubbish?<br>
>>><br>
>>> Bob<br>
>>> _______________________________________________<br>
>>> Haskell-Cafe mailing list<br>
</div>>>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a> <mailto:<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>><br>
<div class="im">>>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Haskell-Cafe mailing list<br>
</div>>>> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a> <mailto:<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>><br>
<div><div></div><div class="h5">>>> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br>