[MacRuby-devel] Miniruby Causing Trouble with SVN Edge

Maxwell Hawkins maxhawkins at gmail.com
Mon Aug 3 11:58:20 PDT 2009


I've been trying to compile 0.5 from SVN with no luck. I installed  
LLVM revision 72741 as outlined in the readme but when I ran MacRuby's  
rake file I got the following error:

> ../../miniruby -I../.. -I../../lib -r rbconfig -e  
> "RbConfig::CONFIG['libdir'] = '../..'; require './extconf.rb'"
> Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal  
> BitCast"), function BitCastInst, file Instructions.cpp, line 2493.

Thinking my environment might be the problem, I installed a fresh copy  
of Leopard and reinstalled LLVM. I still get the same error message.

Further investigation reveals that the problem occurs when rbconfig is  
required by miniruby in line 325 of builder.rake. It throws the error  
when when it encounters the "==" in "RUBY_VERSION == "1.9.0"" at the  
top of rbconfig.rb. I encounter similar problems (and the same error  
message) concatenating strings (-e "'string' + 'string'") with miniruby.

Both experiments share a similar gdb backtrace:

> #0  0x9309de42 in __kill ()
> #1  0x9309de34 in kill$UNIX2003 ()
> #2  0x9311023a in raise ()
> #3  0x9311c679 in abort ()
> #4  0x931113db in __assert_rtn ()
> #5  0x00969cff in llvm::BitCastInst::BitCastInst () at vm.h:582
> #6  0x0012efa9 in RoxorCompiler::compile_double_coercion  
> (this=0xa029200, val=0xe6578c, mask=0xe65fe8, fallback_bb=0xe65ee0,  
> f=0xe641f0) at compiler.cpp:1929
> #7  0x00138231 in RoxorCompiler::compile_optimized_dispatch_call  
> (this=0xa029200, sel=<value temporarily unavailable, due to  
> optimizations>, argc=1, params=@0xbfffcb4c) at compiler.cpp:2254
> #8  0x00149276 in RoxorCompiler::compile_node (this=0xa029200,  
> node=0x181a150) at compiler.cpp:3813
> #9  0x0013f5e6 in RoxorCompiler::compile_node (this=0xa029200,  
> node=0x181a070) at compiler.cpp:4029
> #10 0x001427f0 in RoxorCompiler::compile_node (this=0xa029200,  
> node=0x1811fe0) at compiler.cpp:3598
> #11 0x00146833 in RoxorCompiler::compile_node (this=0xa029200,  
> node=0x1859c00) at compiler.cpp:2876
> #12 0x0014f770 in RoxorCompiler::compile_main_function  
> (this=0xa029200, node=0x1859c00) at compiler.cpp:4717
> #13 0x0017ca65 in rb_vm_run (fname=0x0, node=0x0, binding=0x0,  
> inside_eval=false) at vm.cpp:4132
> #14 0x00040a01 in rb_load (fname=<value temporarily unavailable, due  
> to optimizations>, wrap=0) at load.c:293
> #15 0x000415c3 in rb_require_safe (fname=25483856, safe=0) at load.c: 
> 488
> #16 0x001701a8 in rb_vm_dispatch (cache=0xe61b30, self=25258368,  
> sel=0x3cbf, block=0x0, opt=0 '\0', argc=<value temporarily  
> unavailable, due to optimizations>) at vm.cpp:2026
> #17 0x0a880062 in ?? ()
> #18 0x0003879b in ruby_run_node (n=0x1816980) at eval.c:198
> #19 0x0011d2a8 in main (argc=3, argv=0xe04c30, envp=0xbffff724) at  
> main.cpp:38

Is there any way I can get this edge release working?

I'm on a MacBook Pro with a 2.16GHz Core Duo running 10.5.7.

Thank you,
Max Hawkins


More information about the MacRuby-devel mailing list