[Mono-list] Regarding Recompiling mono/gmcs

Rodrigo Kumpera kumpera at gmail.com
Thu Apr 10 12:07:05 EDT 2008


Hi Ashish,

What version or revision of mono are you using? Please fill a bug report and
we will take a look at it.

Thanks,
Rodrigo

On Thu, Apr 10, 2008 at 1:01 PM, Ashish Jindal <jindal.ashish at gmail.com>
wrote:

> Hi,
>
> I tried to recompile mono/mcs on Windows under cygwin. I'm really stuck...
> I land into only one of the following three scenarios:
>
> 1. glib2-dev installed: Compilation stops, not compatible with glib2-dev
> 2. glib2 not installation: Compilation stops, glib2 required
> 3. glib2 installed (not thru cygwin but thru direct installation from
> gtk.org) -- I am able to compile gmcs but when I try to run it, it gives
> the following error:
>
>
> ---------------------------------------------------------------------
> Unhandled Exception: System.TypeInitializationException: The type
> initializer for 'Mono.CSharp.Tokenizer' threw an exception. --->
> System.OverflowException: Arithmetic operation resulted in an overflow.
>    at Mono.CSharp.CharArrayHashtable.GetHash(Object key) in
> E:\Projects\mcs-1.9\mcs\mcs\support.cs:line 385
>    at System.Collections.Hashtable.Insert(Object key, Object nvalue,
> Boolean add)
>    at System.Collections.Hashtable.set_Item(Object key, Object value)
>    at Mono.CSharp.Tokenizer.AddKeyword(String kw, Int32 token) in
> E:\Projects\mcs-1.9\mcs\mcs\cs-tokenizer.cs:line 294
>    at Mono.CSharp.Tokenizer.InitTokens() in
> E:\Projects\mcs-1.9\mcs\mcs\cs-tokenizer.cs:line 303
>    at Mono.CSharp.Tokenizer.Reset() in
> E:\Projects\mcs-1.9\mcs\mcs\cs-tokenizer.cs:line 413
>    at Mono.CSharp.Tokenizer..cctor() in
> E:\Projects\mcs-1.9\mcs\mcs\cs-tokenizer.cs:line 408
>    --- End of inner exception stack trace ---
>    at Mono.CSharp.Tokenizer..ctor(SeekableStreamReader input, SourceFile
> file, ArrayList defs)
>    at Mono.CSharp.CSharpParser..ctor(SeekableStreamReader reader,
> SourceFile file, ArrayList defines) in
> e:\Projects\mcs-1.9\mcs\mcs\cs-parser.jay:line 5939
>    at Mono.CSharp.Driver.parse(SourceFile file) in
> E:\Projects\mcs-1.9\mcs\mcs\driver.cs:line 197
>    at Mono.CSharp.Driver.ProcessFiles() in
> E:\Projects\mcs-1.9\mcs\mcs\driver.cs:line 592
>    at Mono.CSharp.Driver.MainDriver(String[] args) in
> E:\Projects\mcs-1.9\mcs\mcs\driver.cs:line 1592
>    at Mono.CSharp.Driver.Main(String[] args) in
> E:\Projects\mcs-1.9\mcs\mcs\driver.cs:line 295
> ---------------------------------------------------------------------
>
> The program that I'm trying to compile is the traditional HelloWorld:
>
>
> ---------------------------------------------------------------------
> public class HelloWorld
> {
>     public static void Main()
>     {
>         System.Console.WriteLine("Hello, World!");
>     }
> }
> ---------------------------------------------------------------------
>
>
> Any help would be appreciated....
>
>
> -Ashish
>
>
>
>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080410/dce394a2/attachment-0001.html 


More information about the Mono-list mailing list