x86_64 ghc on Mac OS
Ben.Lippmeier at anu.edu.au
Mon Feb 23 20:05:58 EST 2009
On 24/02/2009, at 11:37 AM, Daniel Peebles wrote:
> 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.
That'll be my fault. In the Cabal file the Platform.hs module is only
compiled when the NCG is included, but it's also used by Dynflags.
I'll patch it.
> ... 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.
I'm not sure what you mean by "seems to assume that __GNUC__ implies
In rts/sm/GCThread.h, with the line:
extern __thread gc_thread* gct
The __thread attribute is supposed to make the "global" variable gct
into thread-local-storage, so each thread has its own private version
of it. The GCC manual page for it is here: http://gcc.gnu.org/onlinedocs/gcc/Thread_002dLocal.html#Thread_002dLocal
More information about the Cvs-ghc