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 Letterle <
michael.lette...@gmail.com> wrote:

> as an aside, I noticed that you put 2.0 in the mono variable, the actually
> value of the mono env variable is immaterial, it just needs to be not nil :)
>
>
> On Tue, Dec 30, 2008 at 12:30 AM, jirapong.na...@gmail.com <
> jirapong.na...@gmail.com> wrote:
>
>> Hello Sidu,
>>
>> quick fix to open Rakefile then change 'rake\xxx' to 'rake/xxx'.
>>
>> however, you will get another error.
>>
>> Macintosh-2:ironruby-r180 Jirapong$ rake compile mono=2.0
>> (in /Users/Jirapong/ironruby-r180)
>>
>> -------------------------------------------------------------------------------
>> dlr_core
>>
>> -------------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------------
>> 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]
>>
>>
>> Hope this helps,
>> -Jirapong
>>
>>
>>
>> On Dec 30, 2008, at 11:46 AM, C. K. Ponnappa wrote:
>>
>>  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@rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>>
>>
>> _______________________________________________
>> Ironruby-core mailing list
>> Ironruby-core@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/ironruby-core
>>
>
>
>
> --
> Michael Letterle
> [Polymath Prokrammer]
> http://blog.prokrams.com
>
>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to