https://bugzilla.novell.com/show_bug.cgi?id=378827
Summary: Unable to compile mono/gmcs - OverflowException Product: Mono: Compilers Version: 1.9.0 Platform: i686 OS/Version: Windows XP Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: mono-bugs@lists.ximian.com ReportedBy: [EMAIL PROTECTED] QAContact: mono-bugs@lists.ximian.com Found By: --- Created an attachment (id=207274) --> (https://bugzilla.novell.com/attachment.cgi?id=207274) Code to compile Description of Problem: 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 error. Steps to reproduce the problem: 1. Install cygwin without glib2 2. Install glib2 from gtk.org 3. Build gmcs 4. Try compiling the code given in the attachment (simple Hello-World code). Actual Results: 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 Expected Results: The code should compile without any problem. How often does this happen? Always Additional Information: -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs