[HOpenGL] Prologue junk?

Simon Marlow simonmar@microsoft.com
Thu, 9 Jan 2003 10:03:40 -0000


> ...
> > make all - --no-print-directory;
> > in /root/fuentes/HOpenGL-1.03/examples/misc
> > -------------------------------------------------
> > "/usr/bin/ghc" -i../../lib -I../../lib -syslib util
> -> fglasgow-exts
> >  -I/usr/X11R6/include "-#include <GL/glut.h>" -O  =20
> >  -c Info.hs -o Info.o
> >
> > Prologue junk?: .globl __stginit_Main
> > __stginit_Main:
> >         pushl   %ebp
> >         movl    %esp, %ebp
>=20
> I get this error making redbook examples on Mandrake
> 9.0. What does it mean?

This is a conflict between the way gcc is configured on Mandrake and the
way we need to use it for GHC.  There is a proper fix in CVS for the
problem, but a workaround is to add the flag=20

   -optc-mno-omit-leaf-frame-pointer=20

to the GHC command line.  (I haven't actually tested this, but it
*should* work - please let me know).

Cheers,
	Simon