[Mono-list] Exception in gmcs.exe when compiling NUnit 2.5.5

Markus Ewald cygon at nuclex.org
Tue Apr 27 16:20:00 EDT 2010


Hi!

I'm trying to compile NUnit 2.5.5 on my x64 Linux system (kernel 2.6.32) 
with Mono 2.4.2.3 and NAnt 0.86-beta1. The build runs through fine, but 
near the end, gmcs.exe fails due to some kind of compiler-internal 
exception:

    build:

       Compiling 4 files to
    '/root/nunit/NUnit-2.5.5.10112/build/mono/2.0/release/tests/nunit-gui.tests.dll'.

       ** (/usr/lib/mono/2.0/gmcs.exe:18442): WARNING **: The class
    NUnit.Core.ProcessModel could not be loaded, used in
    nunit.core.interfaces, Version=2.5.5.10117, Culture=neutral,
    PublicKeyToken=96d09a1eb7f44a77
       Exception caught by the compiler while compiling:
          Block that caused the problem begin at:
    /root/nunit/NUnit-2.5.5.10112/src/GuiRunner/tests/ProjectEditorTests.cs(25,29):
                            Block being compiled:
    [/root/nunit/NUnit-2.5.5.10112/src/GuiRunner/tests/ProjectEditorTests.cs(26,17):,/root/nunit/NUnit-2.5.5.10112/src/GuiRunner/tests/ProjectEditorTests.cs(34,17):]
       System.TypeLoadException: Could not load type
    'NUnit.Util.NUnitProject' from assembly 'nunit.util,
    Version=2.5.5.10117, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'.
       Internal compiler error at
    /root/nunit/NUnit-2.5.5.10112/src/GuiRunner/tests/ProjectEditorTests.cs(25,29)::
    exception caught while emitting MethodBuilder
    [ProjectEditorTests::CreateFixtureObjects]

       Unhandled Exception: System.TypeLoadException: Could not load
    type 'NUnit.Util.NUnitProject' from assembly 'nunit.util,
    Version=2.5.5.10117, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77'.
         at (wrapper managed-to-native) System.MonoType:GetMethodsByName
    (string,System.Reflection.BindingFlags,bool,System.Type)
         at System.MonoType.GetMethods (BindingFlags bindingAttr) [0x00000]
         at Mono.CSharp.MemberCache.AddMethods (BindingFlags bf,
    System.Type type) [0x00000]
         at Mono.CSharp.MemberCache.AddMethods (System.Type type) [0x00000]
         at Mono.CSharp.MemberCache..ctor (IMemberContainer container)
    [0x00000]
         at Mono.CSharp.TypeHandle..ctor (System.Type type) [0x00000]
         at Mono.CSharp.TypeHandle.GetTypeHandle (System.Type t) [0x00000]
         at Mono.CSharp.TypeHandle.GetMemberCache (System.Type t) [0x00000]
         at Mono.CSharp.TypeManager.MemberLookup_FindMembers
    (System.Type t, MemberTypes mt, BindingFlags bf, System.String name,
    System.Boolean& used_cache) [0x00000]
         at Mono.CSharp.TypeManager.RealMemberLookup (System.Type
    invocation_type, System.Type qualifier_type, System.Type
    queried_type, MemberTypes mt, BindingFlags original_bf,
    System.String name, IList almost_match) [0x00000]
         at Mono.CSharp.TypeManager.MemberLookup (System.Type
    invocation_type, System.Type qualifier_type, System.Type
    queried_type, MemberTypes mt, BindingFlags original_bf,
    System.String name, IList almost_match) [0x00000]
         at Mono.CSharp.Expression.MemberLookup (System.Type
    container_type, System.Type qualifier_type, System.Type
    queried_type, System.String name, MemberTypes mt, BindingFlags bf,
    Location loc) [0x00000]
         at Mono.CSharp.Expression.MemberLookupFinal
    (Mono.CSharp.EmitContext ec, System.Type qualifier_type, System.Type
    queried_type, System.String name, MemberTypes mt, BindingFlags bf,
    Location loc) [0x00000]
         at Mono.CSharp.New.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.Assign.DoResolve (Mono.CSharp.EmitContext ec)
    [0x00000]
         at Mono.CSharp.SimpleAssign.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.ExpressionStatement.ResolveStatement
    (Mono.CSharp.EmitContext ec) [0x00000]
         at Mono.CSharp.StatementExpression.Resolve
    (Mono.CSharp.EmitContext ec) [0x00000]
         at Mono.CSharp.Block.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]


Anyone with Mono 2.6 or trunk interested in giving it a try?
I just downloaded the 2.5.5 source zip from nunit.org and ran "nant 
mono-2.0 release build" in bash.

-Markus-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100427/83261e2c/attachment.html 


More information about the Mono-list mailing list