[Mono-list] Regarding Recompiling mono/gmcs
Ashish Jindal
jindal.ashish at gmail.com
Thu Apr 10 12:01:52 EDT 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080410/4a18408f/attachment.html
More information about the Mono-list
mailing list