-O doesn't work with gcc-3.2?

ghc fails with this message: Prologue junk?: .globl __stginit_Main __stginit_Main: pushl %ebp movl %esp, %ebp It works without -O. I'm on stock Mandrake 9.0 system. How do I overcome this? tia -- anatoli

On Sat, 23 Nov 2002 06:32:11 +0200
Anatoli Tubman
It works without -O. I'm on stock Mandrake 9.0 system.
How do I overcome this?
You can recompile ghc from source to use gcc-2.96 which still comes with MDK9. That's what I did. It does take a while however and I havn't been able to get it to configure so that it build ghci - but that's another matter. Duncan

Hi, Anatoli Tubman (by way of Anatoli Tubma) wrote:
ghc fails with this message:
Prologue junk?: .globl __stginit_Main __stginit_Main: pushl %ebp movl %esp, %ebp
It works without -O. I'm on stock Mandrake 9.0 system.
It appears that the version of GCC 3.2 supplied with Mandrake 9.0 ignores the -fomit-frame-pointer flag, and this confuses GHC's mangler. The version of GCC supplied with RedHat 8.0 (gcc version 3.2 20020903) does not seem to have this problem... Thomas H

Hi, Thomas Hallgren wrote:
Anatoli Tubman (by way of Anatoli Tubma) wrote:
ghc fails with this message:
Prologue junk?: .globl __stginit_Main __stginit_Main: pushl %ebp movl %esp, %ebp
It works without -O. I'm on stock Mandrake 9.0 system.
It appears that the version of GCC 3.2 supplied with Mandrake 9.0 ignores the -fomit-frame-pointer flag, and this confuses GHC's mangler. The version of GCC supplied with RedHat 8.0 (gcc version 3.2 20020903) does not seem to have this problem...
Upgrading from the Mandrake 9.0 default gcc-3.2-1mdk to gcc-3.2-4mdk from Mandrake cooker appears to solve the problem. http://speakeasy.rpmfind.net//linux/RPM/cooker/cooker/i586/Mandrake/RPMS/gcc... Thomas H
participants (3)
-
Anatoli Tubman
-
Duncan Coutts
-
Thomas Hallgren