[mono-vb] VBNC internal compiler error

Plombo plombex342 at gmail.com
Mon Mar 22 23:41:02 EDT 2010


I am porting a Winforms application from .NET under Windows to Mono under
Linux (Ubuntu 9.10).  When I compile it, MonoDevelop (version 2.2) reports a
VBNC internal compiler error:


Building: Level Editor (Debug)
Performing main compilation...
vbnc "-out:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/bin/Debug/BORed - Beats of Rage Level Editor.exe" -nologo -utf8output
-quiet -debug:full -optionstrict- -optionexplicit+ -optioncompare:binary
-optioninfer- -define:_MYTYPE=\"WindowsForms\"
"-win32icon:/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Icon
Entry_2.ico" -rootnamespace:Level_Editor -define:DEBUG=-1 -define:TRACE=-1
-nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
"-doc:BORed - Beats of Rage Level Editor.xml"
-main:Level_Editor.My.MyApplication -target:winexe 
"-r:/usr/lib/mono/2.0/System.dll" "-r:/usr/lib/mono/2.0/System.Data.dll"
"-r:/usr/lib/mono/2.0/System.Drawing.dll"
"-r:/usr/lib/mono/2.0/System.Windows.Forms.dll"
"-r:/usr/lib/mono/2.0/System.Xml.dll" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/Display Options.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Display Options.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Debug.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Debug.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Form1.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Form1.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Form2.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Form2.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Kill_Spawn.Designer.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/Kill_Spawn.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/Selected_Item.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Selected_Item.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/SimMode.Designer.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/SimMode.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/Main Windows.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/Main Windows.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Command
Window.Designer.vb" "/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Command Window.vb" "/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Level Window.Designer.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/Level Window.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/My Project/AssemblyInfo.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/My
Project/Application.Designer.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/My Project/Resources.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/My
Project/Settings.Designer.vb" "/home/ubuntu/Downloads/Levels/Level
Editor/Level Editor/SplashScreen.Designer.vb"
"/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/SplashScreen.vb"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Debug.resources,Level_Editor.Debug.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Display
Options.resources,Level_Editor.DOptions.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Form1.resources,Level_Editor.Form1.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Form2.resources,Level_Editor.frmHoleWall.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Kill_Spawn.resources,Level_Editor.frmKill.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/Selected_Item.resources,Level_Editor.frmInfo.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/SimMode.resources,Level_Editor.SimMode.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Main
Windows.resources,Level_Editor.frmMain.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Command
Window.resources,Level_Editor.frmCommand.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/Level
Window.resources,Level_Editor.Form3.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/My
Project/Resources.resources,Level_Editor.My_Project.Resources.resources"
"-resource:/home/ubuntu/Downloads/Levels/Level Editor/Level
Editor/SplashScreen.resources,Level_Editor.SplashScreen.resources"
-imports:Microsoft.VisualBasic -imports:System -imports:System.Collections
-imports:System.Collections.Generic -imports:System.Data
-imports:System.Drawing -imports:System.Diagnostics
-imports:System.Windows.Forms
Warning: Option Strict Off will probably fail.
Warning : VBNC2009: the option optioninfer- was not recognized - ignored

Warning : VBNC2009: the option doc was not recognized - ignored

A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
A warning message should have been shown: 'Variable type should be
specified.'
Missed option: Int32_Boolean

/home/ubuntu/Downloads/Levels/Level Editor/Level Editor/<MyGenerator> (1,1)
: Error VBNC99999: Unexpected error: There has been an internal error in the
compiler: 

  at vbnc.Helper.Stop (System.String Message) [0x00000] 
  at vbnc.Emitter.EmitConversion (System.Type FromType, System.Type ToType,
vbnc.EmitInfo Info) [0x00000] 
  at vbnc.DoStatement.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.CodeBlock.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.DoStatement.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.CodeBlock.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.CodeBlock.GenerateCode (IMethod Method) [0x00000] 
  at vbnc.MethodBaseDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.MethodDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.SubDeclaration.GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.Helper.GenerateCodeCollection (IEnumerable Collection,
vbnc.EmitInfo Info) [0x00000] 
  at vbnc.BaseObjects`1[T].GenerateCode (vbnc.EmitInfo Info) [0x00000] 
  at vbnc.AssemblyDeclaration.Emit (vbnc.TypeDeclaration Type) [0x00000] 
  at vbnc.AssemblyDeclaration.Emit () [0x00000] 
  at vbnc.Compiler.Compile () [0x00000] 
Compilation took 00:00:04.9933030

Build complete -- 26 errors, 1 warning

---------------------- Done ----------------------

Build: 26 errors, 1 warning

If it is helpful, a complete copy of the project that causes this to occur
can be downloaded from:
http://assortedtools.pbworks.com/f/Level%20Editor%20Source.zip
-- 
View this message in context: http://n4.nabble.com/VBNC-internal-compiler-error-tp1678639p1678639.html
Sent from the Mono - VB mailing list archive at Nabble.com.


More information about the Mono-vb mailing list