Prologue junk? - compiling lambdabot:Plugin.Pl.Transform

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Prologue junk? - compiling lambdabot:Plugin.Pl.Transform

Iain Alexander
I'm trying to build lambdabot 4.0 with ghc-6.4.1 (gcc (GCC) 3.4.2 (mingw-
special)) and Cabal-1.1.6.1 on WinXP SP2.  I've got as far as
Plugin.Pl.Transform.hs, and I get

*** Mangler
g:\ghc\ghc-6.4.1\perl g:\ghc\ghc-6.4.1\ghc-asm
C:\DOCUME~1\IAINAL~1\LOCALS~1\Tem
p\ghc2736.raw_s C:\DOCUME~1\IAINAL~1\LOCALS~1\Temp\ghc2736.s 4
Prologue junk?: _s7f7_ret:
        xorl    %ecx, %ecx
        xorl    %eax, %eax
        movl    %ecx, 8(%esp)
        movl    %eax, 12(%esp)
/APP

Transform.hs uses
{-# OPTIONS -fvia-C -O2 -optc-O3 #-}

I've tried and failed to make sense of why the mangler's failing.  I don't know
if this is a known problem with 6.4.1 on XP.

I'm not sure what to try next.  I could turn off the aggressive optimisation,
but I don't know how much that would cost me.  I've got 6.4.2 installed, so I
could try that, although I'd need to rebuild all the prerequisites.  Anything
else?
--
Iain Alexander      [hidden email]


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Prologue junk? - compiling lambdabot:Plugin.Pl.Transform

Ian Lynagh
On Mon, Mar 26, 2007 at 05:29:39PM +0100, Iain Alexander wrote:

> I'm trying to build lambdabot 4.0 with ghc-6.4.1 (gcc (GCC) 3.4.2 (mingw-
> special)) and Cabal-1.1.6.1 on WinXP SP2.  I've got as far as
> Plugin.Pl.Transform.hs, and I get
>
> *** Mangler
> g:\ghc\ghc-6.4.1\perl g:\ghc\ghc-6.4.1\ghc-asm
> C:\DOCUME~1\IAINAL~1\LOCALS~1\Tem
> p\ghc2736.raw_s C:\DOCUME~1\IAINAL~1\LOCALS~1\Temp\ghc2736.s 4
> Prologue junk?: _s7f7_ret:
>         xorl    %ecx, %ecx
>         xorl    %eax, %eax
>         movl    %ecx, 8(%esp)
>         movl    %eax, 12(%esp)
> /APP
>
> Transform.hs uses
> {-# OPTIONS -fvia-C -O2 -optc-O3 #-}

The mangler probably isn't expecting the sort of output gcc -O3
generates on Windows. I don't think we do any testing at that level of
gcc optimisation.

I'd recommend just using -O2, or lower if necessary, instead.


Thanks
Ian

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