https://bugzilla.novell.com/show_bug.cgi?id=676049
https://bugzilla.novell.com/show_bug.cgi?id=676049#c0 Summary: "Internal compiler error: Method not found" in ecore when referencing class that references Autofac 2.4.4 Classification: Mono Product: Mono: Compilers Version: 2.10.x Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=416899) --> (http://bugzilla.novell.com/attachment.cgi?id=416899) the failing solution User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13 When compiling the attached Kistl.Server.Service32 project, gmcs aborts with this error: /srv/.../fail/Kistl.Server.Service32/Kistl.Server.Service32.csproj (default targets) -> /srv/.../lib/mono/4.0/Microsoft.CSharp.targets (CoreCompile target) -> Program.cs(7,42): error CS0584: Internal compiler error: Method not found: 'Kistl.Server.Service.Program.CreateMasterContainer'. Program.cs(7,42): error CS0201: Only assignment, call, increment, decrement, and new object expressions can be used as a statement I've added debug output to gather this stack trace: Program.cs(7,42): error CS0584: Internal compiler error (ecore): Method not found: 'Kistl.Server.Service.Program.CreateMasterContainer'. at (wrapper managed-to-native) System.Reflection.MonoMethodInfo:get_parameter_info (intptr,System.Reflection.MemberInfo) at System.Reflection.MonoMethodInfo.GetParametersInfo (IntPtr handle, System.Reflection.MemberInfo member) [0x00000] in <filename unknown>:0 at System.Reflection.MonoMethod.GetParameters () [0x00000] in <filename unknown>:0 at Mono.CSharp.MetadataImporter.CreateMethod (System.Reflection.MethodBase mb, Mono.CSharp.TypeSpec declaringType) [0x00000] in <filename unknown>:0 at Mono.CSharp.ImportedTypeDefinition.LoadMembers (Mono.CSharp.TypeSpec declaringType, Boolean onlyTypes, Mono.CSharp.MemberCache& cache) [0x00000] in <filename unknown>:0 at Mono.CSharp.TypeSpec.InitializeMemberCache (Boolean onlyTypes) [0x00000] in <filename unknown>:0 at Mono.CSharp.TypeSpec.get_MemberCache () [0x00000] in <filename unknown>:0 at Mono.CSharp.MemberCache.FindMembers (Mono.CSharp.TypeSpec container, System.String name, Boolean declaredOnly) [0x00000] in <filename unknown>:0 at Mono.CSharp.Expression.MemberLookup (Mono.CSharp.ResolveContext rc, Mono.CSharp.TypeSpec currentType, Mono.CSharp.TypeSpec queried_type, System.String name, Int32 arity, MemberLookupRestrictions restrictions, Location loc) [0x00000] in <filename unknown>:0 at Mono.CSharp.MemberAccess.LookupNameExpression (Mono.CSharp.ResolveContext rc, MemberLookupRestrictions restrictions) [0x00000] in <filename unknown>:0 at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.ResolveContext ec) [0x00000] in <filename unknown>:0 at Mono.CSharp.Expression.Resolve (Mono.CSharp.ResolveContext ec, ResolveFlags flags) [0x00000] in <filename unknown>:0 The error vanishes when changing the Kistl.Server.Service/Program.cs "internal static IContainer CreateMasterContainer()" method to return void. Reproducible: Always Steps to Reproduce: 1. xbuild /nologo /v:n /p:Configuration=Linux.Debug Kistl.Server.Service32/Kistl.Server.Service32.csproj Actual Results: Program.cs(7,42): error CS0584: Internal compiler error: Method not found: 'Kistl.Server.Service.Program.CreateMasterContainer'. from Kistl.Server.Service32.csproj Expected Results: clean compile. Please see the attached project for full reproducing source. The contained Autofac.dll was downloaded from http://code.google.com/p/autofac/downloads/list The attached source is pared down from a bigger project, so please ignore the funny naming stuff. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
