[IronPython] Errors compiling IronPython with Mono

Nicholas Riley njriley at uiuc.edu
Thu Feb 15 07:54:10 CET 2007


Hi,

I'm trying to compile IronPython with Mono, using the IPCE build
script.  With Mono 1.2.3 I get:

IronPython/Modules/Builtin.cs(40,37): error CS0103: The name `Ops' does not exist in the context of `IronPython.Modules.Builtin'
[... repeats many times ...]
IronPython/Runtime/Operations/ComplexOps.cs(502,41): error CS0246: The type or namespace name `OpsReflectedField`2' could not be found. Are you missing a using directive or an assembly reference?
IronPython/Runtime/Operations/ComplexOps.cs(503,41): error CS0246: The type or namespace name `OpsReflectedField`2' could not be found. Are you missing a using directive or an assembly reference?
IronPython/Runtime/Operations/Ops.cs(62,125): error CS0246: The type or namespace name `MethodInfo' could not be found. Are you missing a using directive or an assembly reference?

It seems that the last error is at the root of the problem -
IronPython is using methods of MethodInfo that were only recently
implemented in Mono (e.g. GetGenericArguments).  I upgraded to SVN
Mono, but now I get a different set of errors:

IronPython/CodeDom/Compiler.cs(35,19): error CS0534: `IronPython.CodeDom.PythonGenerator' does not implement inherited abstract member `System.CodeDom.Compiler.CodeGenerator.CreateEscapedIdentifier(string)'
IronPython/CodeDom/Compiler.cs(35,19): error CS0534: `IronPython.CodeDom.PythonGenerator' does not implement inherited abstract member `System.CodeDom.Compiler.CodeGenerator.CreateValidIdentifier(string)'
IronPython/CodeDom/Compiler.cs(35,19): error CS0534: `IronPython.CodeDom.PythonGenerator' does not implement inherited abstract member `System.CodeDom.Compiler.CodeGenerator.GetTypeOutput(System.CodeDom.CodeTypeReference)'
IronPython/CodeDom/Compiler.cs(35,19): error CS0534: `IronPython.CodeDom.PythonGenerator' does not implement inherited abstract member `System.CodeDom.Compiler.CodeGenerator.IsValidIdentifier(string)'
IronPython/CodeDom/Compiler.cs(35,19): error CS0534: `IronPython.CodeDom.PythonGenerator' does not implement inherited abstract member `System.CodeDom.Compiler.CodeGenerator.Supports(System.CodeDom.Compiler.GeneratorSupport)'

I am not terribly familiar with C# but it seems that these methods are
defined in Generator.cs.  Is this a problem with the Mono compiler not
seeing the rest of this class, or ...?

I would think that because IPCE uses IronPython 1.1a1 and comes with
Mono it should be possible to compile it with that version, so maybe I
am doing something wrong?

Thanks,

-- 
Nicholas Riley <njriley at uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>



More information about the Ironpython-users mailing list