Subject: Re: Can't compile Mono
To: None <>
From: Radek Kujawa <>
List: tech-pkg
Date: 04/08/2005 18:56:59
  I tried compiling mono too. Pkgsrc updated yesterday on a box running
NetBSD 2.0.2 i386.

It prints this error:

[build/deps/basic-profile-check.exe] Error 127 gmake[6]: Leaving directory `/usr/pkgsrc/lang/mono/work/mono-1.1.6/mcs'
*** The compiler 'mcs' doesn't appear to be usable.*** Falling back to using pre-compiled binaries.  Be warned, this may not work.
gmake[6]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-1.1.6/mcs/jay'

Then it compiles fine for some time, and finally bails out with:

gmake[7]: Entering directory `/usr/pkgsrc/lang/mono/work/mono-1.1.6/mcs/mcs'
MONO_PATH="../class/lib/basic:$MONO_PATH" /usr/pkgsrc/lang/mono/work/mono-1.1.6/runtime/mono-wrapper ../class/lib/basic/mcs.exe   -d:NET_1_1 -d:ONLY_1_1 -debug /target:exe /out:mcs.exe cs-parser.cs  @mcs.exe.sources
** ERROR **: Thread 0x6ed calling into managed code is not registered with the GC. On UNIX, this can be fixed by #include-ing <gc.h> before <pthread.h> in the file containing the thread creation code.
[1]   Abort trap (core dumped) MONO_PATH="../cl...
((... gmake leaving directories))
*** Error code 2

Any ideas?
Is mono still broken or am I doing something wrong?

Greets, Radek.