[Mono-bugs] [Bug 79894][Nor] New - Error compiling using gmcs

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Nov 10 11:43:53 EST 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by eskil at letterboxes.org.


--- shadow/79894	2006-11-10 11:43:53.000000000 -0500
+++ shadow/79894.tmp.10088	2006-11-10 11:43:53.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 79894
+Product: Mono: Compilers
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: eskil at letterboxes.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: Error compiling using gmcs
+Description of Problem:
+Using Mono 1.2, I get the following error when compiling any program using
+gmcs and scons:
+$ scons
+scons: Reading SConscript files ...
+scons: done reading SConscript files.
+scons: Building targets ...
+gmcs -out:/home/test/test.exe test.cs
+Unhandled Exception: System.TypeInitializationException: An exception was
+thrown by the type initializer for Mono.CSharp.Report --->
+System.TypeInitializationException: An exception was thrown by the type
+initializer for System.Console ---> System.NullReferenceException: Object
+reference not set to an instance of an object
+  at System.TermInfoDriver.Init () [0x00000] 
+  at System.ConsoleDriver.Init () [0x00000] 
+  at System.Console..cctor () [0x00000] --- End of inner exception stack
+trace ---
+  at <0x00000> <unknown method>
+  at Mono.CSharp.Report..cctor () [0x00000] --- End of inner exception
+stack trace ---
+scons: *** [test.exe] Error 1
+scons: building terminated because of errors.
+Steps to reproduce the problem:
+1. Use the builder at
+http://www.scons.org/cgi-sys/cgiwrap/scons/moin.cgi/CsharpBuilder with
+scons to build a program. Use the gmcs compiler.
+Actual Results:
+Compiling fails with the exception above.
+Expected Results:
+How often does this happen? 
+Additional Information:
+Compiling using mcs works.

More information about the mono-bugs mailing list