Hi all,

I'm looking to get a 64-bit build of ghc (one that produces 64-bit
code, that is) for Mac OS, and was wondering if anyone on this list
knew what specific things are preventing such a build? According to
the Apple documentation (http://is.gd/kBLv) Mac OS's 64-bit calling
conventions are pretty standard. I've tried a regular (registered)
build from source of the ghc head and the result produces 32-bit code.
Given that x86_64 seems to work on other platforms, I thought I'd try
getting it to work on Mac OS, but the ghc source tree is rather
daunting, and the docs on the trac wiki seem out of date (the Mac OS
build page still talks about 6.6).

I was told in #ghc on freenode to start with an unregistered build,
but that seems to fail in compiler/main/DynFlags.hs, as the Platform
module doesn't work in an unregistered build. I #ifndef
OMIT_NATIVE_CODEGEN 'ed the parts that seemed to use Platform, and the
compile went further, but eventually got stuck on rts/sm/GCThread.h,
which seems to assume that __GNUC__ implies __thread working, which
isn't true on Mac OS. I tried a few things to get around this but none
seemed to work.

Any suggestions on where to get started are welcome!

Thanks,
Daniel Peebles

_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to