[Mono-dev] problem building mono, can't get monolite to work

Andreas Färber andreas.faerber at web.de
Thu Oct 2 16:22:59 EDT 2008


Hi Pablo,

Am 02.10.2008 um 17:43 schrieb pablosantosluac at terra.es:

> First mistake I had is I was using packages from sunfreeware instead  
> of
> blastwave. Getting rid of the first ones (gcc, automake, autogen,
> libtool, glib, glib2) and using the ones from blastwave seems to be  
> much
> better.

I'd recommend the ones from Solaris' Companion CD, they worked fine.  
Blastwave pulls in its own 'parallel' tree of dependencies.

>  Making all in runtime
>  gmake[2]: Entering directory `/home/pablo/mono/trunk/mono/runtime'
>  if test -w ../../mcs; then :; else chmod -R +w ../../mcs; fi
>  cd ../../mcs && gmake NO_DIR_CHECK=1 PROFILES='default net_2_0
> net_3_5net_2_1' CC='gcc' all-profiles
>  gmake[3]: Entering directory `/home/pablo/mono/trunk/mcs'
>  gmake profile-do--default--all profile-do--net_2_0--all
> profile-do--net_3_5--all profile-do--net_2_1--all
>  gmake[4]: Entering directory `/home/pablo/mono/trunk/mcs'
>  gmake PROFILE=basic all
>  gmake[5]: Entering directory `/home/pablo/mono/trunk/mcs'
>  usage: mcs [-cdpVz] [-a string] [-n name] file ...

This probably means you still have Sun's mcs tool in the PATH.

>  gmake[6]: *** [build/deps/basic-profile-check.exe] Error 1
>  gmake[6]: Entering directory `/home/pablo/mono/trunk/mcs'
>  *** The compiler 'mcs' doesn't appear to be usable.
>  *** Trying the 'monolite' directory.
>  gmake[7]: Entering directory `/home/pablo/mono/trunk/mcs'
>  GC Warning: Large stack limit(133464064): only scanning 8 MB

Don't use Mono's libgc. Use a recent Boehm GC. Cf. http://www.mono-project.com/Mono:Solaris

And make sure sigaltstack is disabled, it will crash, too.

>  gmake[8]: *** [build/deps/basic-profile-check.exe] Error 1
>  gmake[8]: Entering directory `/home/pablo/mono/trunk/mcs'
>  *** The contents of your 'monolite' directory may be out-of-date
>  *** You may want to try 'make get-monolite-latest'
>  gmake[8]: *** [do-profile-check-monolite] Error 1
>  gmake[8]: Leaving directory `/home/pablo/mono/trunk/mcs'
>  gmake[7]: *** [do-profile-check] Error 2
>  gmake[7]: Leaving directory `/home/pablo/mono/trunk/mcs'
>  gmake[6]: *** [do-profile-check-monolite] Error 2
>  gmake[6]: Leaving directory `/home/pablo/mono/trunk/mcs'
>  gmake[5]: *** [do-profile-check] Error 2
>  gmake[5]: Leaving directory `/home/pablo/mono/trunk/mcs'
>  gmake[4]: *** [profile-do--basic--all] Error 2
>  gmake[4]: Leaving directory `/home/pablo/mono/trunk/mcs'
>  gmake[3]: *** [profiles-do--all] Error 2
>  gmake[3]: Leaving directory `/home/pablo/mono/trunk/mcs'
>  gmake[2]: *** [all-local] Error 2
>  gmake[2]: Leaving directory `/home/pablo/mono/trunk/mono/runtime'
>  gmake[1]: *** [all-recursive] Error 1
>  gmake[1]: Leaving directory `/home/pablo/mono/trunk/mono'
>  *** Error code 2
>  make: Fatal error: Command failed for target `all'

> I can't find this basic-profile-check.exe anywhere...

mcs is trying to build it and failing! ;-)

Regards,
Andreas



More information about the Mono-devel-list mailing list