# IronRuby + Mono 2.6.3

**URL:** <https://www.ruby-forum.com/t/ironruby-mono-2-6-3/186518>\
**Category:** IronRuby\
**Created:** [April 8, 2010, 7:10am UTC](https://www.ruby-forum.com/t/ironruby-mono-2-6-3/186518 "2010-04-08T07:10:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zachary\_Brown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a3d4f5/32.png) [@Zachary\_Brown](https://www.ruby-forum.com/u/Zachary_Brown)\
**Post date:** [April 8, 2010, 7:10am UTC](https://www.ruby-forum.com/t/ironruby-mono-2-6-3/186518/1 "2010-04-08T07:10:25Z")

</div>

Hi again 🙂

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 zbrown@riemann: ~/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 variable`site’ 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 variable`setIndex’ 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 variable`invoke’ 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 variable`getIndex’ 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 variable`deleteIndex’ 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 variable`create’ 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 variable`p’ 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 variable`knownType’ 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 variable`instance’ 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 variable`tryStackDepth’ 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 variable`coreAssemblyLocations’ 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 variable`siteType’  
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

---

<div class="post-metadata">

**Author:** ![Zachary\_Brown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a3d4f5/32.png) [@Zachary\_Brown](https://www.ruby-forum.com/u/Zachary_Brown)\
**Post date:** [April 8, 2010, 7:23am UTC](https://www.ruby-forum.com/t/ironruby-mono-2-6-3/186518/2 "2010-04-08T07:23:18Z")

</div>

## you can’t. you need mono trunk

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

---

<div class="post-metadata">

**Author:** ![Zachary\_Brown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a3d4f5/32.png) [@Zachary\_Brown](https://www.ruby-forum.com/u/Zachary_Brown)\
**Post date:** [April 15, 2010, 5:50pm UTC](https://www.ruby-forum.com/t/ironruby-mono-2-6-3/186518/3 "2010-04-15T17:50:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Zachary\_Brown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/a3d4f5/32.png) [@Zachary\_Brown](https://www.ruby-forum.com/u/Zachary_Brown)\
**Post date:** [April 16, 2010, 12:10pm UTC](https://www.ruby-forum.com/t/ironruby-mono-2-6-3/186518/4 "2010-04-16T12:10:40Z")

</div>

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](http://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://whiterabbitconsulting.eu) - [http://flanders.co.nz](http://flanders.co.nz)  
Twitter: [http://twitter.com/casualjim](http://twitter.com/casualjim)  
Author of IronRuby in Action ([IronRuby in Action - Ivan Porto Carrero and Adam Burmister | Manning](http://manning.com/carrero))  
Microsoft IronRuby/C# MVP
