[Mono-osx] Building mono-1.1.18 20061018

Diane Trout diane at ghic.org
Tue Oct 31 01:46:16 EST 2006

On Oct 18, 2006, at 17:18, Allan Hsu wrote:

> One thing to note is that current Mono SVN will not build properly  
> under XCode 2.4 for Intel due to changes to the value of  
> MACHINE_THREAD_STATE in the new 10.4u SDK. Mono will compile under  
> 2.4, but the resulting binaries will not work properly. The headers  
> that come with XCode 2.3 should work fine.

Ok I spent some time trying to figure out what was going on with this.

It appears that in MachOSX10.4u.sdk/usr/include/mach/i386/ 

MACHINE_THREAD_STATE is defined to be x86_THREAD_STATE (7) which  
seems strangely unrelated to x86_THREAD_STATE32 (1) or  
x86_THREAD_STATE64 (4). I tried running mono with the  
MACHINE_THREAD_STATE set to 5 but that didn't seem to work.

I made an alternate patch that is only triggered on darwin/x86. I  
hope its a bit closer to being acceptable for SVN. Basically in mono/ 
libgc/include/private/darwin_stop_world.h I set MACHINE_THREAD_STATE  
to x86_THREAD_STATE32 if x86_THREAD_STATE32 and __i386__ were defined.

Hopefully the test for x86_THREAD_STATE32 will make the include a non- 
op on the 10.3.9 SDK

I tested the patch on intel/os x by managing to finish my build  
without hanging and by running the ironpython interpreter.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mono-1.1.18.osx.x86.patch
Type: application/octet-stream
Size: 463 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20061030/e501b262/attachment.obj 
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20061030/e501b262/attachment.bin 

More information about the Mono-osx mailing list