[Mono-list] "Exception caught by the compiler while compiling" & DbLinq

Adam Tauno Williams awilliam at whitemice.org
Fri Jan 2 15:37:04 EST 2009


In trying to build the latest version of DbLinq
<http://code.google.com/p/dblinq2007/> in Monodevelop Mono
(openSUSE11/mono-core-2.0.1-18.1) crashes with:


Building: DbMetal (Release)
Performing main compilation...
Exception caught by the compiler while compiling:
   Block that caused the problem begin
at: /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,101):
                     Block being compiled:
[/home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,104):,/home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,118):]
System.Exception: Expression Mono.CSharp.LocalVariableReference did not
set its type after Resolve
called from: Mono.CSharp.LocalVariableReference
Exception caught by the compiler while compiling:
   Block that caused the problem begin
at: /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,66):
                     Block being compiled:
[/home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,66):,Internal(1,1):]
Mono.CSharp.InternalErrorException: /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,101):
Exception caught by the compiler while compiling:
   Block that caused the problem begin
at: /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(473,32):
                     Block being compiled:
[/home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,25):,Internal(1,1):]
Mono.CSharp.InternalErrorException: /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,101):
Internal compiler error
at /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(473,32):: exception caught while emitting MethodBuilder [CodeGenerator::WriteClassParent]


Unhandled Exception:
Mono.CSharp.InternalErrorException: /home/awilliam/Works/DbLinq/dblinq2007-read-only/src/DbMetal/Generator/Implementation/CodeTextGenerator/CodeGenerator.Class.cs(588,101): ---> System.Exception: Expression Mono.CSharp.LocalVariableReference did not set its type after Resolve
called from: Mono.CSharp.LocalVariableReference
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
ResolveFlags flags) [0x00000] 
  at Mono.CSharp.SimpleName.DoSimpleNameResolve (Mono.CSharp.EmitContext
ec, Mono.CSharp.Expression right_side, Boolean intermediate) [0x00000] 
  at Mono.CSharp.SimpleName.SimpleNameResolve (Mono.CSharp.EmitContext
ec, Mono.CSharp.Expression right_side, Boolean intermediate) [0x00000] 
  at Mono.CSharp.SimpleName.DoResolve (Mono.CSharp.EmitContext ec,
Boolean intermediate) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
ResolveFlags flags) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Binary.DoResolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
ResolveFlags flags) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Return.DoResolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.ContextualReturn.DoResolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.ExitStatement.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
anonymous_method_host, Mono.CSharp.ToplevelBlock block,
Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable)
[0x00000] 
  --- End of inner exception stack trace ---
  at Mono.CSharp.AnonymousMethodExpression.Compatible
(Mono.CSharp.EmitContext ec, System.Type type) [0x00000] 
  at
Mono.CSharp.AnonymousMethodExpression.ImplicitStandardConversionExists
(Mono.CSharp.EmitContext ec, System.Type delegate_type) [0x00000] 
  at Mono.CSharp.Convert.ImplicitConversionExists
(Mono.CSharp.EmitContext ec, Mono.CSharp.Expression expr, System.Type
target_type) [0x00000] 
  at Mono.CSharp.MethodGroupExpr.IsArgumentCompatible
(Mono.CSharp.EmitContext ec, Modifier arg_mod, Mono.CSharp.Argument
argument, Modifier param_mod, System.Type parameter) [0x00000] 
  at Mono.CSharp.MethodGroupExpr.IsApplicable (Mono.CSharp.EmitContext
ec, System.Collections.ArrayList arguments, Int32 arg_count,
System.Reflection.MethodBase& method, System.Boolean&
params_expanded_form) [0x00000] 
  at Mono.CSharp.MethodGroupExpr.OverloadResolve
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList& Arguments,
Boolean may_fail, Location loc) [0x00000] 
  at Mono.CSharp.ExtensionMethodGroupExpr.ResolveOverloadExtensions
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,
Mono.CSharp.NamespaceEntry ns, Location loc) [0x00000] 
  at Mono.CSharp.ExtensionMethodGroupExpr.OverloadResolve
(Mono.CSharp.EmitContext ec, System.Collections.ArrayList& arguments,
Boolean may_fail, Location loc) [0x00000] 
  at Mono.CSharp.Invocation.DoResolveOverload (Mono.CSharp.EmitContext
ec) [0x00000] 
  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,
ResolveFlags flags) [0x00000] 
  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Return.DoResolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.ContextualReturn.DoResolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.ExitStatement.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000] 
  at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec)
[0x00000] 
  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext
anonymous_method_host, Mono.CSharp.ToplevelBlock block,
Mono.CSharp.Parameters ip, IMethodData md, System.Boolean& unreachable)
[0x00000] 


Build complete -- 1 error, 0 warnings

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

Also see
<http://lists.ximian.com/pipermail/monodevelop-list/2008-December/008757.html> and <http://groups.google.com/group/dblinq/browse_thread/thread/2cf7cbb1e00cbb97?hl=en>



More information about the Mono-list mailing list