Snow Leopard Problems with GLWF

Mark Fine mark.fine at gmail.com
Thu Sep 24 22:22:17 EDT 2009


Hi!

I'm running into issues trying to install GLWF. Initially, I get:

# runhaskell Setup configure
Configuring GLFW-0.4.1...

/tmp/3301.c:1:0:
     error: CPU you selected does not support x86-64 instruction set
#

Then, I pass in the flags "-optc-m32 -opta-m32 -optl-m32" into ghc and
ghci, and then run into the following

# sudo runhaskell Setup configure
Configuring GLFW-0.4.1...
# sudo runhaskell Setup build
Preprocessing library GLFW-0.4.1...
Building GLFW-0.4.1...

glfw/lib/macosx/macosx_enable.c:1:0:
     error: bad value (native) for -march= switch

glfw/lib/macosx/macosx_enable.c:1:0:
     error: bad value (native) for -mtune= switch
#

OR

# sudo runhaskell Setup build
Preprocessing library GLFW-0.4.1...
Building GLFW-0.4.1...

glfw/lib/macosx/macosx_enable.c:1:0:
     error: bad value (apple) for -march= switch

glfw/lib/macosx/macosx_enable.c:1:0:
     error: bad value (apple) for -mtune= switch
#

These are my first forays with cabal, so if there's something I can do
to provide more information, please let me know. Here's my machine:

Darwin yoho.local 10.0.0 Darwin Kernel Version 10.0.0: Fri Jul 31
22:47:34 PDT 2009; root:xnu-1456.1.25~1/RELEASE_I386 i386



More information about the GLFW mailing list