[MacRuby] #766: Problems building "any" revision of trunk
#766: Problems building "any" revision of trunk -----------------------------------+---------------------------------------- Reporter: kennylovrin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Been trying to build trunk for several weeks, but always end up with "Assertion failed". Even after reinstalling llvm several times, trying several revisions (including those indicated in README). Following README with cut n paste doesn't build. I have the same problem on two separate machines, one iMac 24" 3.06ghz and one 2.53ghz Macbook Pro. Both running 10.6.4 and have XCode 3.2.3 installed. Console output when trying to build: $ rake echo '' > .objs/kernel_data.c /Developer/usr/bin/llvm-gcc -arch i386 -fexceptions -fno-stack-protector -I. -I./include -I./icu-1060 --emit-llvm -c kernel.c -o .objs/kernel-i386.bc /usr/local/bin/opt -O3 .objs/kernel-i386.bc -o=.objs/kernel-i386.bc /bin/dd if=/dev/zero count=1 bs=1 conv=notrunc >> .objs/kernel-i386.bc 2>/dev/null /usr/bin/xxd -i .objs/kernel-i386.bc >> .objs/kernel_data.c /Developer/usr/bin/llvm-gcc -arch x86_64 -fexceptions -fno-stack-protector -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 /bin/dd if=/dev/zero count=1 bs=1 conv=notrunc >> .objs/kernel-x86_64.bc 2>/dev/null /usr/bin/xxd -i .objs/kernel-x86_64.bc >> .objs/kernel_data.c /usr/bin/gcc-4.2 -std=c99 -I. -I./include -fno-common -pipe -g -Wall -fexceptions -O3 -Wno-deprecated-declarations -Werror -arch i386 -arch x86_64 -I./icu-1060 -c array.c -o .objs/array.o Assertion failed: ((b->flags & flags) == flags), function rb_vm_prepare_block, file dispatcher.cpp, line 1773. Abort trap -- Ticket URL: <http://www.macruby.org/trac/ticket/766> MacRuby <http://macruby.org/>
#766: Problems building "any" revision of trunk -----------------------------------+---------------------------------------- Reporter: kennylovrin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Comment(by lsansonetti@…): I suspect your /usr/bin/rake command is actually using an old version of MacRuby. Try editing the #! line of /usr/bin/rake and set it to /usr/bin/ruby instead. -- Ticket URL: <http://www.macruby.org/trac/ticket/766#comment:1> MacRuby <http://macruby.org/>
#766: Problems building "any" revision of trunk -----------------------------------+---------------------------------------- Reporter: kennylovrin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Comment(by kennylovrin@…): Replying to [comment:1 lsansonetti@…]:
I suspect your /usr/bin/rake command is actually using an old version of MacRuby.
Try editing the #! line of /usr/bin/rake and set it to /usr/bin/ruby instead.
You are absolutely right, changing it seems to work (still building). It makes me wonder though, was that supposed to happen from the beginning? I thought macrake would be installed leaving rake untouched? How does this affect for example a rails app running ruby rather than macruby, when rake invokes macruby? -- Ticket URL: <http://www.macruby.org/trac/ticket/766#comment:2> MacRuby <http://macruby.org/>
#766: Problems building "any" revision of trunk -----------------------------------+---------------------------------------- Reporter: kennylovrin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Comment(by lsansonetti@…): Thanks for the confirmation. Indeed, installing rake using macgem should not override the system rake. That's a well known problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/766#comment:3> MacRuby <http://macruby.org/>
#766: Problems building "any" revision of trunk -----------------------------------+---------------------------------------- Reporter: kennylovrin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Comment(by eloy.de.enige@…): In order to prevent this, you can pass the --format-executable to macgem when you install gems. The rake bin would then be named ‘macrake’. Though there is an issue with rubygems that it doesn't remove the bin when uninstalling a gem, but that's a minor issue imo. -- Ticket URL: <http://www.macruby.org/trac/ticket/766#comment:4> MacRuby <http://macruby.org/>
#766: macrake overrides /usr/bin/rake -----------------------------------+---------------------------------------- Reporter: kennylovrin@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: -----------------------------------+---------------------------------------- Comment(by lsansonetti@…): Renamed summary accordingly. -- Ticket URL: <http://www.macruby.org/trac/ticket/766#comment:5> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby