[Mono-dev] Mono 2.11.1 compilation error

Rob Wilkens robwilkens at gmail.com
Wed May 2 21:40:38 UTC 2012


I remember reading an odd sort of requirement in one of the mono pages, 
where it suggested that to build mono, having mono pre-installed for 
your system helps (i.e. building a new version of mono using tools from 
the older version, like gmcs which i believe is the mono compiler).  
This struck me as an odd sort of requirement when i read it.  However, 
here it seems like it's looking for a runnable mono or mcs which is part 
of the mono installation (one is the runtime, the other the compiler).

The mcs stacktrace gives an interesting sort of error:   
System.OutOfMemoryException -- I know little about the machine you're 
compiling on, but perhaps if it's a low memory machine by design, then 
creating a larger swapfile would help get past that particular error.  
I'm not sure how you'd do that for each particular platform, though.

As per the mono-ximian-com site being unavailable: I noticed if i go to 
ximian.com in a web browser, it redirects me to suse.com or something 
like that.  Leads me to believe that it's pointing to a server that has 
either moved or been taken down.  Someone else could probably answer 
that better than me.

If this helps, great-- if it doesn't - well, i tried and again am not an 
expert.  There are experts here though.

-Rob


On 05/02/2012 05:24 PM, snamds wrote:
> Thanks Rob for the hints.
>
> I've change the configuration using "--enable-minimal=profiler" and now the
> problem is other.
>
> Now I get this:
>
> ---------------------------------------------------------------------------------------------
>
> make[3]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> make profile-do--net_2_0--all profile-do--net_3_5--all
> profile-do--net_4_0--all
> profile-do--net_4_5--all
> make[4]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> make PROFILE=basic all
> make[5]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> /bin/sh .//mkinstalldirs build/deps
> mkdir -p -- build/deps
> touch build/deps/.stamp
> make[6]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> /share/Apps/local/bin/gmcs: line 2:
> /opt/sybhttpd/localhost.drives/SATA_DISK/mon
> o-2.10.8/runtime/_tmpinst/bin/mono: No such file or directory
> /share/Apps/local/bin/gmcs: line 2: exec:
> /opt/sybhttpd/localhost.drives/SATA_DI
> SK/mono-2.10.8/runtime/_tmpinst/bin/mono: cannot execute: No such file or
> direct
> ory
> make[6]: *** [build/deps/basic-profile-check.exe] Error 126
> make[6]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[6]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> *** The compiler 'gmcs' doesn't appear to be usable.
> *** Trying the 'monolite' directory.
> make[7]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> make[8]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> Stacktrace:
>
>    at<unknown>  <0xffffffff>
>    at System.OutOfMemoryException..ctor (string)<0x00028>
>    at (wrapper runtime-invoke)<Module>.runtime_invoke_void__this___object
> (objec
> t,intptr,intptr,intptr)<0xffffffff>
> make[8]: *** [build/deps/basic-profile-check.exe] Aborted
> make[8]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[8]: Entering directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.
> 1/mcs'
> *** The contents of your 'monolite' directory may be out-of-date
> *** You may want to try 'make get-monolite-latest'
> make[8]: *** [do-profile-check-monolite] Error 1
> make[8]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[7]: *** [do-profile-check] Error 2
> make[7]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[6]: *** [do-profile-check-monolite] Error 2
> make[6]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[5]: *** [do-profile-check] Error 2
> make[5]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[4]: *** [profile-do--basic--all] Error 2
> make[4]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[3]: *** [profiles-do--all] Error 2
> make[3]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /mcs'
> make[2]: *** [all-local] Error 2
> make[2]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> /runtime'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/opt/sybhttpd/localhost.drives/SATA_DISK/mono-2.11.1
> '
> make: *** [all] Error 2
>
> ---------------------------------------------------------------------------------------------
>
> I've tried to run "make get-monolite-latest" but "mono-ximian-com" seems to
> be down.
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-11-1-compilation-error-tp4594576p4604489.html
> Sent from the Mono - Dev mailing list archive at Nabble.com.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



More information about the Mono-devel-list mailing list