[Mono-list] Latest DLR/IronPython under Mono 2.4

Doug Blank doug.blank at gmail.com
Thu May 21 10:05:29 EDT 2009


I have built the nightly source #23898 of the Dynamic Language Runtime (DLR)
from:

http://www.codeplex.com/dlr/SourceControl/ListDownloadableCommits.aspx

I built this under Vista, and marked the Configuration for Release. I then
copied all of the Bin directory over to Linux, and tried running the
IronPython console program, and got the following error under Mono 2.4:

$ mono ipy.exe
IronPython 2.6 Beta (2.6.0.1) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
>>> 1 + 1
Unhandled exception:

Unhandled Exception: System.ArgumentException: method arguments are
incompatible
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method, Boolean
throwOnBindFailure) [0x00000]
  at System.Delegate.CreateDelegate (System.Type type, System.Object
firstArgument, System.Reflection.MethodInfo method) [0x00000]
  at Microsoft.Scripting.Actions.Calls.SimpleArgBuilder.ToDelegate
(Microsoft.Scripting.Actions.Calls.OverloadResolver resolver, IList`1
knownTypes, System.Boolean[] hasBeenUsed) [0x00000]
  at Microsoft.Scripting.Actions.Calls.MethodCandidate.MakeDelegate
(Microsoft.Scripting.Actions.Calls.RestrictionInfo restrictionInfo)
[0x00000]
  at Microsoft.Scripting.Actions.Calls.BindingTarget.MakeDelegate ()
[0x00000]
  at
IronPython.Runtime.Types.BuiltinFunction+<>c__DisplayClass17`1[Microsoft.Func`4[Microsoft.Runtime.CompilerServices.CallSite,Microsoft.Scripting.Runtime.CodeContext,System.Object,System.Object]].<MakeCall>b__13
(Microsoft.Scripting.DynamicMetaObject[] newArgs) [0x00000]
  at IronPython.Runtime.Types.BuiltinFunction.MakeBuiltinFunctionDelegate
(Microsoft.Scripting.DynamicMetaObjectBinder call,
Microsoft.Linq.Expressions.Expression codeContext,
Microsoft.Scripting.DynamicMetaObject[] args, Boolean hasSelf,
Microsoft.Func`2 bind) [0x00000]
  at IronPython.Runtime.Types.BuiltinFunction.MakeCall[Func`4]
(IronPython.Runtime.Binding.PythonInvokeBinder binder, System.Object[] args)
[0x00000]
  at
IronPython.Runtime.Types.BuiltinFunction.IronPython.Runtime.Binding.IFastInvokable.MakeInvokeBinding[Func`4]
(Microsoft.Runtime.CompilerServices.CallSite`1 site,
IronPython.Runtime.Binding.PythonInvokeBinder binder,
Microsoft.Scripting.Runtime.CodeContext state, System.Object[] args)
[0x00000]
  at (wrapper static-rgctx-invoke)
IronPython.Runtime.Types.BuiltinFunction:static_rgctx_invoke_FastBindResult`1<Func`4<CallSite,
CodeContext, object, object>>__this___CallSite`1<Func`4<CallSite,
CodeContext, object, object>>_PythonInvokeBinder_CodeContext_object[]
(Microsoft.Runtime.CompilerServices.CallSite`1<Microsoft.Func`4<Microsoft.Runtime.CompilerServices.CallSite,
Microsoft.Scripting.Runtime.CodeContext, object,
object>>,IronPython.Runtime.Binding.PythonInvokeBinder,Microsoft.Scripting.Runtime.CodeContext,object[])
  at IronPython.Runtime.Binding.PythonInvokeBinder.BindDelegate[Func`4]
(Microsoft.Runtime.CompilerServices.CallSite`1 site, System.Object[] args)
[0x00000]
  at (wrapper static-rgctx-invoke)
IronPython.Runtime.Binding.PythonInvokeBinder:static_rgctx_invoke_Func`4<CallSite,
CodeContext, object, object>__this___CallSite`1<Func`4<CallSite,
CodeContext, object, object>>_object[]
(Microsoft.Runtime.CompilerServices.CallSite`1<Microsoft.Func`4<Microsoft.Runtime.CompilerServices.CallSite,
Microsoft.Scripting.Runtime.CodeContext, object, object>>,object[])
  at
Microsoft.Scripting.UpdateDelegates.UpdateAndExecute2[CodeContext,Object,Object]
(Microsoft.Runtime.CompilerServices.CallSite site,
Microsoft.Scripting.Runtime.CodeContext arg0, System.Object arg1) [0x00000]
  at (wrapper static-rgctx-invoke)
Microsoft.Scripting.UpdateDelegates:static_rgctx_invoke_object_CallSite_CodeContext_object
(Microsoft.Runtime.CompilerServices.CallSite,Microsoft.Scripting.Runtime.CodeContext,object)
  at IronPython.Runtime.PythonContext.InvokeOperatorWorker
(Microsoft.Scripting.Runtime.CodeContext context, UnaryOperators oper,
System.Object target, System.Object& result) [0x00000]
  at IronPython.Runtime.PythonContext.InvokeUnaryOperator
(Microsoft.Scripting.Runtime.CodeContext context, UnaryOperators oper,
System.Object target) [0x00000]
  at IronPython.Runtime.Operations.PythonOps.ToString
(Microsoft.Scripting.Runtime.CodeContext context, System.Object o) [0x00000]

  at IronPython.Runtime.Operations.PythonOps.ToString (System.Object o)
[0x00000]
  at IronPython.Runtime.PythonContext.FormatPythonException (System.Object
pythonException) [0x00000]
  at IronPython.Runtime.PythonContext.FormatException (System.Exception
exception) [0x00000]
  at Microsoft.Scripting.Hosting.ExceptionOperations.FormatException
(System.Exception exception) [0x00000]
  at (wrapper remoting-invoke-with-check)
Microsoft.Scripting.Hosting.ExceptionOperations:FormatException
(System.Exception)
  at Microsoft.Scripting.Hosting.Shell.ConsoleHost.UnhandledException
(Microsoft.Scripting.Hosting.ScriptEngine engine, System.Exception e)
[0x00000]
  at Microsoft.Scripting.Hosting.Shell.ConsoleHost.RunCommandLine ()
[0x00000]
  at Microsoft.Scripting.Hosting.Shell.ConsoleHost.ExecuteInternal ()
[0x00000]
  at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Execute () [0x00000]
  at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Run (System.String[]
args) [0x00000]

I am not 100% sure that I have built the DLLs correctly for mono, but I've
tried a few times, and this does work on Vista with .NET. This has worked
with earlier builds, at least with the ones that Microsoft has built (for
the example, the DLR release 0.9.0). I also get the same error in my own
hosting app.

Is this a known issue? Is it fixed in 2.6? Am I doing something wrong?

Any hints would be appreciated!

-Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090521/753d578c/attachment.html 


More information about the Mono-list mailing list