I’ve tried to build from source on OSX too… with the latest trunk from
mono
but it won’t compile I get the same error.
to make the Rakefile work I had to make 2 minor changes.
In Rakefile I had to change the paths to the other rake files from \ to
/
In rake/misc.rake I had to change line 107 to: commands += (!mono? ?
[‘svn.exe’] : [‘svn’] ) if IronRuby.is_merlin?
» rake compile mono=1 --trace
(in /Users/ivan/src/ironruby/merlin/main/Languages/Ruby)
** 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
(System.Type[] methodParameters, System.Boolean& fixed_any) [0x00000]
at Mono.CSharp.TypeInferenceV3.InferInPhases (Mono.CSharp.EmitContext
ec,
Mono.CSharp.TypeInferenceContext tic, Mono.CSharp.AParametersCollection
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/-x/-xQjxc2kHg…]
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:971:in sh' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in
call’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:984:in sh' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1072:in
sh’
./context.rb:256:in exec' ./context.rb:554:in
compile’
./context.rb:531:in chdir' ./context.rb:531:in
compile’
/Users/ivan/src/ironruby/merlin/main/Languages/Ruby/rake/compile.rake:35
./context.rb:711:in instance_eval' ./context.rb:711:in
source_context’
/Users/ivan/src/ironruby/merlin/main/Languages/Ruby/rake/compile.rake:34
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in call' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
execute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
execute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
invoke_with_call_chain' /opt/local/lib/ruby/1.8/monitor.rb:242:in
synchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_chain' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in
invoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in
invoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in
invoke_with_call_chain' /opt/local/lib/ruby/1.8/monitor.rb:242:in
synchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_chain' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in
invoke’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
invoke_task' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
top_level’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in
top_level’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31 /opt/local/bin/rake:19:in
load’
/opt/local/bin/rake:19
On Tue, Dec 30, 2008 at 7:21 AM, Michael L. <