[HOpenGL] problems compiling

Sven Panne Sven_Panne@BetaResearch.de
Tue, 15 Oct 2002 15:19:26 +0200


Juan Ignacio Garcia Garcia wrote:
> [...] after executing "make" I obtain the following lines:
> [...]
> Prologue junk?: .globl __stginit_GLzuBinaryIO
> __stginit_GLzuBinaryIO:
>     pushl    %ebp
>     movl    %esp, %ebp

Hmmm, this looks like a GCC/GHC incompatibility and has probably
nothing to do with HOpenGL. What versions of GCC/GHC are you
using, i.e. what is the output of

   gcc -v
   ghc --version

If it is GCC 3.x and not the latest GHC (5.04.1), there can be some
problems like the one you have. In that case you should probably
upgrade your GHC. Other quick workarounds just for testing what's
going on are:

   * Use GCC 2.9x if you have one on your disk

   * Build HOpenGL with GHC's native code generator (make OPT="-O -fasm")

Cheers,
   S.