[MacRuby-devel] LLVM 3.0 and MacRuby
Hi all, use any of you LLVM 3.0 and MacRuby or can compile MacRuby with LLVM 3.0 ? Or is currently only LLVM 2.9 supported? Just getting 'Invalid ALLOCA record' if i try to compile MacRuby. MacRuby/MacRuby - [master✔]» rake /usr/bin/bison -o y.tab.c parse.y parse.y: conflicts: 1 shift/reduce /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c > parse.c.new mv parse.c.new parse.c rm -f .objs/parse.o cp lex.c.blt lex.c /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc echo '' > .objs/kernel_data.c /Developer/usr/bin/llvm-gcc -arch x86_64 -fexceptions -fno-stack-protector -fwrapv -I. -I./include -I./icu-1060 --emit-llvm -c kernel.c -o .objs/kernel-x86_64.bc /usr/local/bin/opt -O3 .objs/kernel-x86_64.bc -o=.objs/kernel-x86_64.bc /usr/local/bin/opt: .objs/kernel-x86_64.bc: Invalid ALLOCA record rake aborted! Command failed with status (1): [/usr/local/bin/opt -O3 .objs/kernel-x86_64...] Thanks a lot. Maik ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
[MacRuby-devel] Framework name restrictions?
I had a problem using one of my own frameworks in MacRuby. gen_bridge_metadata was giving me the following: Received exception: can't convert nil into String: /usr/bin/gen_bridge_metadata:573:in `+' /usr/bin/gen_bridge_metadata:573:in `encode_includes' /usr/bin/gen_bridge_metadata:2091:in `handle_framework' /usr/bin/gen_bridge_metadata:882:in `prepare' /usr/bin/gen_bridge_metadata:882:in `each' /usr/bin/gen_bridge_metadata:882:in `prepare' /usr/bin/gen_bridge_metadata:721:in `parse' /usr/bin/gen_bridge_metadata:2321 /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:791:in `initialize' /usr/bin/gen_bridge_metadata:2252:in `new' /usr/bin/gen_bridge_metadata:2252 can't convert nil into String After some debugging, I found out it was because my framework was named "audio-utilities" and the code in handle_framework expects the framework name to match the regular expression (\w+) which doesn't support the dash character. Xcode doesn't complain about that name. Are frameworks supposed to conform to a particular naming convention or is gen_bridge_metadata being too restrictive? Thanks ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Re: [MacRuby-devel] LLVM 3.0 and MacRuby
As indicated in the readme, you have to compile MacRuby with a specific version of LLVM (prior 3.0) -m Sent from my iPhone On Dec 11, 2011, at 16:50, Maik Kempe wrote: > Hi all, > > use any of you LLVM 3.0 and MacRuby or can compile MacRuby with LLVM 3.0 ? Or > is currently only LLVM 2.9 supported? > > Just getting 'Invalid ALLOCA record' if i try to compile MacRuby. > > MacRuby/MacRuby - [master✔]» rake > /usr/bin/bison -o y.tab.c parse.y > parse.y: conflicts: 1 shift/reduce > /usr/bin/sed -f ./tool/ytab.sed -e "/^#/s!y.tab.c!parse.c!" y.tab.c > > parse.c.new > mv parse.c.new parse.c > rm -f .objs/parse.o > cp lex.c.blt lex.c > /usr/bin/ruby -n tool/node_name.rb include/ruby/node.h > node_name.inc > echo '' > .objs/kernel_data.c > /Developer/usr/bin/llvm-gcc -arch x86_64 -fexceptions -fno-stack-protector > -fwrapv -I. -I./include -I./icu-1060 --emit-llvm -c kernel.c -o > .objs/kernel-x86_64.bc > /usr/local/bin/opt -O3 .objs/kernel-x86_64.bc -o=.objs/kernel-x86_64.bc > /usr/local/bin/opt: .objs/kernel-x86_64.bc: Invalid ALLOCA record > rake aborted! > Command failed with status (1): [/usr/local/bin/opt -O3 > .objs/kernel-x86_64...] > > Thanks a lot. > > Maik > ___ > MacRuby-devel mailing list > [email protected] > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
