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