[Mono-devel-list] runtime build got broken under windows

Marek Safar marek.safar at seznam.cz
Sat Sep 4 06:24:36 EDT 2004


Hello Atsushi,

I updated mono one week ago and it works *almost* fine on my box.

>Hi Marek,
>
>I think the latest gc.dll was from Gonzalo, but not sure if he can
>build mono on windows now ;-)  Anyways, gc.dll shouldn't matter.
>I had been able to build mono without specifying --with-gc option
>(that is the same as with-gc=boehm on windows).
>  
>
Ouch, you are lucky guy, I have to define --with-gc=none because without
it compilation is OK but any mono.exe start leads to crash.

>I looked around commits on runtime, but could not find any suspects.
>So I think I would have done something wrong.
>  
>

Here is the suspect

2004-08-18 Zoltan Varga <vargaz at freemail.hu>

* appdomain.c threads.c: Call GC_CreateThread on windows.

* Makefile.am (libmetadata_la_LIBADD): Avoid linking libmonoos into
multiple libraries since this don't work on windows.

>I had also made local fix (that was dirty than yours) for with-gc=none.
>I will ask some of runtime guys.
>
>
>  
>
Marek

>>In file appdomain.c you have to make this change
>>
>>#ifdef PLATFORM_WIN32
>>#if HAVE_BOEHM_GC
>>thread_handle = GC_CreateThread (NULL, 0, unload_thread_main,
>>&thread_data, CREATE_SUSPENDED, &tid);
>>#else
>>thread_handle = CreateThread (NULL, 0, unload_thread_main, &thread_data,
>>CREATE_SUSPENDED, &tid);
>>#endif
>>#else
>>thread_handle = CreateThread (NULL, 0, unload_thread_main, &thread_data,
>>CREATE_SUSPENDED, &tid);
>>#endif
>>ResumeThread (thread_handle);
>>#endif
>>
>>I added the inner #if. But the same problem is also in thread.c.
>>Unfortunately I don't have write access to mono to commit this change.
>>    
>>
>
>
>
>
>
>
>
>  
>





More information about the Mono-devel-list mailing list