Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-30 Thread Dmitri Sosnik
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,

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-30 Thread David Leimbach
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

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-30 Thread Dmitri Sosnik
How I can tell gcc to generate 32 bit code? I've tried to set CFLAGS=- m32, but it doesn't work. 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

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread Thomas Davie
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

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread Dmitri Sosnik
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

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread Max Bolingbroke
Hi, If you compile with: -opta -m32 -optl -m32 Then you can get GHC to produce binaries again. WARNING: currently you cannot use this trick to build a Snow Leopard compatible GHC using the HEAD snapshot at http://www.haskell.org/ghc/dist/current/d ist/, because the most recent (20090828) does

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-29 Thread David Leimbach
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 wrote: Here - http://hackage.haskell.org/trac/ghc/wiki/Building, but it won't help, cause you need working ghc to build ghc. D

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread Ross Mellgren
My 6.10.1 install still works alright after upgrade to 10.6/Snow Leopard. What version did you have? -Ross On Aug 28, 2009, at 7:15 PM, David Leimbach wrote: Just thought I'd point out that my old GHC install is now broken by the update to Snow Leopard. Dave

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
6.10.4. Did you try to build any binaries? It doesn't produce correct assembly code (it looks like). Dave On Fri, Aug 28, 2009 at 4:55 PM, Ross Mellgren rmm-hask...@z.odi.ac wrote: My 6.10.1 install still works alright after upgrade to 10.6/Snow Leopard. What version did you have? -Ross

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread Ross Mellgren
I did a trivial compile and it worked yes (the binary it produced was alright, also). Did the binary it generate have problems, or was it the compilation that failed? -Ross On Aug 28, 2009, at 7:57 PM, David Leimbach wrote: 6.10.4. Did you try to build any binaries? It doesn't produce

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
The compilation failed. On Fri, Aug 28, 2009 at 4:58 PM, Ross Mellgren rmm-hask...@z.odi.ac wrote: I did a trivial compile and it worked yes (the binary it produced was alright, also). Did the binary it generate have problems, or was it the compilation that failed? -Ross On Aug 28, 2009,

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread Dmitri Sosnik
The same here: $ghc hw.hs /var/folders/1J/1JKije6yHpm78qqdjF5N2U+++TI/-Tmp-/ghc7743_0/ ghc7743_0.s:1357:0: suffix or operands invalid for `push' /var/folders/1J/1JKije6yHpm78qqdjF5N2U+++TI/-Tmp-/ghc7743_0/ ghc7743_0.s:1401:0: suffix or operands invalid for `push' ... I've tried to

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
On Fri, Aug 28, 2009 at 5:28 PM, Dmitri Sosnik dim...@gmail.com wrote: The same here:$ghc hw.hs /var/folders/1J/1JKije6yHpm78qqdjF5N2U+++TI/-Tmp-/ghc7743_0/ghc7743_0.s:1357:0: suffix or operands invalid for `push'

Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread Don Stewart
leimy2k: On Fri, Aug 28, 2009 at 5:28 PM, Dmitri Sosnik dim...@gmail.com wrote: The same here: $ghc hw.hs /var/folders/1J/1JKije6yHpm78qqdjF5N2U+++TI/-Tmp-/ghc7743_0/ ghc7743_0.s:1357:0: suffix or operands invalid for `push'