[Ironruby-core] Need help building IronRuby on Mono 2 + OS X

jirapong.nanta at gmail.com jirapong.nanta at gmail.com
Tue Dec 30 06:31:15 EST 2008


Yes, I install mono by MacPort. going to get mono source to try out.

Thank you,
-Jirapong

On Dec 30, 2008, at 1:19 PM, Michael Letterle wrote:

> There are some bugs in mono 2.0 that will prevent you from compiling  
> IronRuby, your best bet is to use the SVN trunk, though I believe  
> 2.2 works as well.  Also, my github linux branch includes various  
> fixes for linux that may be necessairy for OSX as well.
>
> On Tue, Dec 30, 2008 at 1:11 AM, jirapong.nanta at gmail.com <jirapong.nanta at gmail.com 
> > wrote:
> Hi JD,
>        yes. but follow error was throw.
>
> Macintosh-2:ironruby Jirapong$ rake compile mono=1 --trace
> (in /Users/Jirapong/ironruby)
> ** Invoke compile (first_time)
> ** Invoke happy (first_time)
> ** Execute happy
> ** Invoke clean_build (first_time)
> ** Invoke happy
> ** Execute clean_build
> ** Invoke compile_dlr (first_time)
> ** Invoke compile_extension_attributes (first_time)
> ** Invoke clean_build
> ** Execute compile_extension_attributes
> -------------------------------------------------------------------------------
> dlr_core
> -------------------------------------------------------------------------------
> ** Execute compile_dlr
>
> -------------------------------------------------------------------------------
> dlr_core
> -------------------------------------------------------------------------------
> Exception caught by the compiler while compiling:
>   Block that caused the problem begin at: ast/ 
> LambdaExpression.cs(121,38):
>                     Block being compiled: [ast/ 
> LambdaExpression.cs(121,72):,ast/LambdaExpression.cs(123,9):]
> System.NullReferenceException: Object reference not set to an  
> instance of an object
> Internal compiler error at ast/LambdaExpression.cs(121,38)::  
> exception caught while emitting MethodBuilder [Expression`1::Accept]
>
> Unhandled Exception: System.NullReferenceException: Object reference  
> not set to an instance of an object
>  at Mono.CSharp.TypeInferenceContext.FixIndependentTypeArguments  
> (ParameterData methodParameters, System.Boolean& fixed_any) [0x00000]
>  at Mono.CSharp.TypeInferenceV3.InferInPhases  
> (Mono.CSharp.EmitContext ec, Mono.CSharp.TypeInferenceContext tic,  
> ParameterData methodParameters) [0x00000]
>  at Mono.CSharp.TypeInferenceV3.InferMethodArguments  
> (Mono.CSharp.EmitContext ec, System.Reflection.MethodBase method)  
> [0x00000]
>  at Mono.CSharp.TypeManager.InferTypeArguments  
> (Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,  
> System.Reflection.MethodBase& method) [0x00000]
>  at Mono.CSharp.MethodGroupExpr.IsApplicable  
> (Mono.CSharp.EmitContext ec, System.Collections.ArrayList arguments,  
> Int32 arg_count, System.Reflection.MethodBase& method,  
> System.Boolean& params_expanded_form) [0x00000]
>  at Mono.CSharp.MethodGroupExpr.OverloadResolve  
> (Mono.CSharp.EmitContext ec, System.Collections.ArrayList&  
> Arguments, Boolean may_fail, Location loc) [0x00000]
>  at Mono.CSharp.Invocation.DoResolveOverload  
> (Mono.CSharp.EmitContext ec) [0x00000]
>  at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext ec)  
> [0x00000]
>  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec,  
> ResolveFlags flags) [0x00000]
>  at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext ec)  
> [0x00000]
>  at Mono.CSharp.Return.DoResolve (Mono.CSharp.EmitContext ec)  
> [0x00000]
>  at Mono.CSharp.ExitStatement.Resolve (Mono.CSharp.EmitContext ec)  
> [0x00000]
>  at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext ec) [0x00000]
>  at Mono.CSharp.ExplicitBlock.Resolve (Mono.CSharp.EmitContext ec)  
> [0x00000]
>  at Mono.CSharp.EmitContext.ResolveTopBlock (Mono.CSharp.EmitContext  
> anonymous_method_host, Mono.CSharp.ToplevelBlock block,  
> Mono.CSharp.Parameters ip, IMethodData md, System.Boolean&  
> unreachable) [0x00000]
> rake aborted!
> Command failed with status (1): [gmcs /noconfig @/var/folders/yx/yx- 
> i1r2PFU...]
>
>
> Thank you,
> -Jirapong
>
>
> On Dec 30, 2008, at 12:37 PM, Jim Deville wrote:
>
> That would be a mistake on my part it looks like. If you switch the  
> "\" in the Rakefile imports with "/", does it work? If so, I'll make  
> the change and push it out tonight or tomorrow.
>
> JD
>
> -----Original Message-----
> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org 
> ] On Behalf Of C. K. Ponnappa
> Sent: Monday, December 29, 2008 8:46 PM
> To: ironruby-core at rubyforge.org
> Subject: [Ironruby-core] Need help building IronRuby on Mono 2 + OS X
>
> Hey guys,
>
> I'm running on OS X 10.5.5 with Mono 2.0 (installed via Ports). I ran
>
> rake compile mono=1
>
> I do have pathname2 installed and am using IronRuby trunk revision  
> 180.
>
> I get the following error:
> ~/Work/ruby/ironruby$ rake compile mono=1  --trace
> (in /Users/schonira/Work/ruby/ironruby)
> rake aborted!
> no such file to load -- /Users/schonira/Work/ruby/ironruby/rake 
> \test.rake
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1598:in `load'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2413:in  
> `load_imports'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2356:in
> `raw_load_rakefile'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1985:in  
> `load_rakefile'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1984:in  
> `load_rakefile'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1969:in `run'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
> `standard_exception_handling'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
> /Library/Ruby/Gems/1.8/gems/rake-0.8.3/bin/rake:31
> /usr/bin/rake:19:in `load'
> /usr/bin/rake:19
>
> Can someone help me out please?
>
> Thanks!
> Sidu.
> http://blog.sidu.in
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
>
> -- 
> Michael Letterle
> [Polymath Prokrammer]
> http://blog.prokrams.com
>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20081230/0cbafe98/attachment.html>


More information about the Ironruby-core mailing list