[Mono-list] assertion error in mcs (OS-X with boehmgc)

Dave Morford david@morford.org
Thu, 27 Nov 2003 11:59:15 -0800

> When executing mcs, I'll get the following error:
> ---
> mww% mcs hello.cs
> ** ERROR **: file interp.c: line 297 (get_virtual_method): assertion  
> failed: (res)
> aborting...
> /opt/local/bin/mcs: line 2:  2078 Abort trap               
> /opt/local/bin/mint /opt/local/bin/mcs.exe "$@"
> mww%
> ---
> mono 0.28, on MacOS-X 10.3.1, compiled with boehmgc 6.2, glib 2.2.3,  
> ./configure --disable-shared
> The problem seems to be the garbage collector - when compiled w/o  
> boehmgc, mcs works;
> Is mcs using the gc? (I suppose that the vm does which won't run with  
> or w/o gc here)
> mint works fine with & w/o boehmgc (I assume it doesn't use it?)

I have some URLs that helped building for OS X if your interested,  
mostly for building from CVS. There is a good set of general directions  


These have also helped out:

I use DarwinPorts rather than Fink and built with glib 2.2.3, boehm 6.2  
and pkgconfig 0.15. From CVS, everything builds and mcs via mint works.  
mcs via mono usually dies in the JITter at this point. The default  
build config for the darwin profile is w/o the gc, in that case mono  
does not use internal or external gc. mcs does not use the gc and I do  
not believe mint uses it either, definitely not in the default profile  
from CVS. Problems may still exist with boehmgc 6.2 as an external lib,  
I could never get it working under FreeBSD 5.x.


david [at] morford [dot] org
"Computation is about insight, not numbers." - Richard Hamming