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  
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   
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   
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
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe






___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
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  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  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
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>>
>>
>> ___
>> Haskell-Cafe mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
>
>
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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, 2009 at 1:52 AM, Dmitri Sosnik   
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
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe



___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  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
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
> ___
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 not include the relevant patch. You have to use
HEAD directly, at least until the next packaged source release shows
up in that directory.

Once you have the source code from HEAD, you can add those flags to
SRC_HC_OPTS in your mk/build.mk and it should work. Disclaimer: I
haven't actually tried this yet.

Cheers,
Max

2009/8/29 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
>> currently outputs rubbish?
>>
>> Bob
>> ___
>> Haskell-Cafe mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
> ___
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 currently outputs rubbish?


Bob
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  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'
> 
> /var/folders/1J/1JKije6yHpm78qqdjF5N2U+++TI/-Tmp-/ghc7743_0/
> ghc7743_0.s:1401:0:
> suffix or operands invalid for `push'
> ...
> 
> 
> I've tried to build ghc from svn, but build process failed, cause it
> requires working version of GHC. I've tried to cross build from Ubuntu, 
> but
> it failed too.
> There is a ticket - http://hackage.haskell.org/trac/ghc/ticket/3400, but
> it's not helpful for me.
> 
> 
> There is a closed ticket for this bug, but it doesn't exactly tell us how or
> when we'll see a fix :-)
> 
> Maybe the answer is "run windows" or "linux" :-)
> 

If it is closed, it is fixed in the HEAD.

-- Don
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Snow Leopard Breaks GHC

2009-08-28 Thread David Leimbach
On Fri, Aug 28, 2009 at 5:28 PM, Dmitri Sosnik  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'
>
>
> /var/folders/1J/1JKije6yHpm78qqdjF5N2U+++TI/-Tmp-/ghc7743_0/ghc7743_0.s:1401:0:
> suffix or operands invalid for `push'
> ...
>
>
> I've tried to build ghc from svn, but build process failed, cause it
> requires working version of GHC. I've tried to cross build from Ubuntu, but
> it failed too.
> There is a ticket - http://hackage.haskell.org/trac/ghc/ticket/3400, but
> it's not helpful for me.
>

There is a closed ticket for this bug, but it doesn't exactly tell us how or
when we'll see a fix :-)

Maybe the answer is "run windows" or "linux" :-)




>
> D
>
>
>
> On 29/08/2009, at 10:06 AM, David Leimbach wrote:
>
> The compilation failed.
>
> On Fri, Aug 28, 2009 at 4:58 PM, Ross Mellgren 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, at 7:57 PM, David Leimbach wrote:
>>
>> 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 wrote:
>>
>>> 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
 ___
 Haskell-Cafe mailing list
 [email protected]
 http://www.haskell.org/mailman/listinfo/haskell-cafe

>>>
>>>
>>
>>
> ___
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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 build ghc from svn, but build process failed, cause it  
requires working version of GHC. I've tried to cross build from  
Ubuntu, but it failed too.
There is a ticket - http://hackage.haskell.org/trac/ghc/ticket/3400,  
but it's not helpful for me.


D



On 29/08/2009, at 10:06 AM, David Leimbach wrote:


The compilation failed.

On Fri, Aug 28, 2009 at 4:58 PM, Ross Mellgren [email protected]> 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, at 7:57 PM, David Leimbach wrote:

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 [email protected]> wrote:
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
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe





___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  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, at 7:57 PM, David Leimbach wrote:
>
> 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 wrote:
>
>> 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
>>> ___
>>> Haskell-Cafe mailing list
>>> [email protected]
>>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>>
>>
>>
>
>
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  
correct assembly code (it looks like).


Dave

On Fri, Aug 28, 2009 at 4:55 PM, Ross Mellgren [email protected]> wrote:
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
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe




___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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  wrote:

> 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
>> ___
>> Haskell-Cafe mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>
>
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


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
___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe


___
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe