IronRuby + Mono 2.6.3

Hi again :slight_smile:

Trying to build IR on Mono 2.6.3 on my Macbook (10.6.3). Followed basic
instructions and get it to start building but I’m running into the
following error on both CasualJim’s Linux branch as well as mainline
ironruby git:

21:56:18 [email protected]: ~/Code/ironruby.git/Merlin/Main/Languages/Ruby

rake compile mono=1
(in /Users/zbrown/Code/ironruby.git/Merlin/Main/Languages/Ruby)


dlr_extension


dlr_core

Actions/CallSiteBinder.cs(169,18): warning CS0219: The variable
targetType' is assigned but its value is never used Actions/CallSite.cs(317,17): warning CS0168: The variablesite’ is
declared but never used
Ast/ExpressionStringBuilder.cs(165,28): warning CS0219: The variable
getIndex' is assigned but its value is never used Ast/ExpressionStringBuilder.cs(166,28): warning CS0219: The variablesetIndex’ is assigned but its value is never used
Ast/ExpressionStringBuilder.cs(167,31): warning CS0219: The variable
deleteIndex' is assigned but its value is never used Ast/ExpressionStringBuilder.cs(169,26): warning CS0219: The variableinvoke’ is assigned but its value is never used
Ast/ExpressionStringBuilder.cs(170,34): warning CS0219: The variable
create' is assigned but its value is never used Ast/DebugViewWriter.cs(232,28): warning CS0219: The variablegetIndex’
is assigned but its value is never used
Ast/DebugViewWriter.cs(233,28): warning CS0219: The variable setIndex' is assigned but its value is never used Ast/DebugViewWriter.cs(234,31): warning CS0219: The variabledeleteIndex’ is assigned but its value is never used
Ast/DebugViewWriter.cs(236,26): warning CS0219: The variable invoke' is assigned but its value is never used Ast/DebugViewWriter.cs(237,34): warning CS0219: The variablecreate’ is
assigned but its value is never used
Ast/DebugViewWriter.cs(869,18): warning CS0219: The variable
parenthesize' is assigned but its value is never used Compiler/LambdaCompiler.Logical.cs(178,33): warning CS0219: The variablep’ is assigned but its value is never used
Compiler/LambdaCompiler.Unary.cs(111,35): warning CS0219: The variable
`labIfNull’ is assigned but its value is never used
Compilation succeeded - 15 warning(s)

dlr_libs


dlr_com

Actions/ActionBinder.cs(131,18): warning CS0219: The variable visType' is assigned but its value is never used Actions/DefaultBinder.Conversions.cs(48,18): warning CS0219: The variableknownType’ is assigned but its value is never used
Actions/DefaultBinder.GetMember.cs(215,26): warning CS0219: The variable
x' is assigned but its value is never used Actions/DefaultBinder.Invoke.cs(261,24): warning CS0219: The variableinstance’ is assigned but its value is never used
Interpreter/LightCompiler.cs(915,21): warning CS0219: The variable
handlerContinuationDepth' is assigned but its value is never used Interpreter/LightCompiler.cs(895,17): warning CS0219: The variabletryStackDepth’ is assigned but its value is never used
Generation/ILGen.cs(1188,18): warning CS0219: The variable
isFromFloatingPoint' is assigned but its value is never used Generation/Snippets.cs(115,30): warning CS0219: The variablecoreAssemblyLocations’ is assigned but its value is never used
Runtime/DelegateInfo.cs(102,26): warning CS0219: The variable
convertSiteType' is assigned but its value is never used Runtime/DelegateInfo.cs(100,26): warning CS0219: The variablesiteType’
is assigned but its value is never used

Unhandled Exception: System.ArgumentException: The field handle and the
type handle are incompatible.
at System.Reflection.FieldInfo.GetFieldFromHandle (RuntimeFieldHandle
handle, RuntimeTypeHandle declaringType) [0x00000] in :0
at Mono.CSharp.AnonymousMethodStorey.MutateField
(System.Reflection.FieldInfo field) [0x00000] in :0
at Mono.CSharp.FieldExpr.MutateHoistedGenericType
(Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0
at Mono.CSharp.TypeCast.MutateHoistedGenericType
(Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0
at Mono.CSharp.Binary.MutateHoistedGenericType
(Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0
at Mono.CSharp.If.MutateHoistedGenericType
(Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0
at Mono.CSharp.Block.MutateHoistedGenericType
(Mono.CSharp.AnonymousMethodStorey storey) [0x00000] in :0
at Mono.CSharp.AnonymousExpression+AnonymousMethodMethod.Emit ()
[0x00000] in :0
at Mono.CSharp.TypeContainer.EmitType () [0x00000] in :0
at Mono.CSharp.AnonymousMethodStorey.EmitType () [0x00000] in
:0
at Mono.CSharp.TypeContainer.EmitType () [0x00000] in :0
at Mono.CSharp.RootContext.EmitCode () [0x00000] in :0
at Mono.CSharp.Driver.Compile () [0x00000] in :0
at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
:0
rake aborted!
Command failed with status (1): [gmcs /noconfig
@/var/folders/v1/v1QIwFBJFh…]

(See full trace by running task with --trace)

Thanks,

– Zac

you can’t. you need mono trunk

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Web: http://whiterabbitconsulting.eu - http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Microsoft IronRuby/C# MVP

I rather have IronRuby working out of the 2.6 tree since there are going
to
be a few more 2.6 bugfix releases
before 2.8 is out. Do you know what bugs from trunk needs to be
backported?

I’m not sure which bug it is but there is a difference between using
ironruby and building ironruby on mono.
You should be able to use the ms.net binaries with mono 2.6.3

It’s a compiler bug that had been closed once but regressed.

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto C.
Web: http://whiterabbitconsulting.eu - http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
Microsoft IronRuby/C# MVP

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs