[MacRuby] #539: "macrubyc --static" failing on SL 10.6, MacRuby 0.5 Beta 2
#539: "macrubyc --static" failing on SL 10.6, MacRuby 0.5 Beta 2 --------------------------------+------------------------------------------- Reporter: mail@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- When attempting to run the following command: {{{ macrubyc --static hello-world.rb -o hello }}} with MacRuby 0.5 Beta 2 on OS X 10.6, Mac Pro Early 2008, using the MacRuby 0.5 Beta 2 package installer from the downloads page, I receive the following error: {{{ Undefined symbols: "llvm::raw_fd_ostream::raw_fd_ostream(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, unsigned int)", referenced from: _rb_vm_aot_compile in libmacruby-static.a(vm.o) "llvm::Value::printCustom(llvm::raw_ostream&) const", referenced from: vtable for llvm::CmpInstin libmacruby-static.a(bridgesupport.o) vtable for llvm::CmpInstin libmacruby-static.a(compiler.o) ld: symbol(s) not found collect2: ld returned 1 exit status Error when executing `/usr/bin/g++ -o hello -arch x86_64 -L/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib -lmacruby- static -framework Foundation -lobjc -lauto -lxml2 -L/opt/local/lib -lpthread -lffi -lm -lLLVMBitWriter -lLLVMInterpreter -lLLVMX86CodeGen -lLLVMX86Info -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem /var/folders/QO/QOheC+M9HmWJZ+oGEZpjEE+++TI/-Tmp-/main.o ./hello-world.o' }}} The file hello-world.rb is simply: {{{ #!/usr/bin/env ruby -w puts 'Hello, world!' }}} Just in case it is at all relevant, I also have MacPorts installed and the LLVM port, the ruby port and the ruby1.9 port installed from there as well (though these should presumably not have any effect due to the package installer using its own libraries). In searching for similar problems mentioned by others, I haven't been able to find any and as such I have started a new ticket. -- Ticket URL: <http://www.macruby.org/trac/ticket/539> MacRuby <http://macruby.org/>
#539: "macrubyc --static" failing on SL 10.6, MacRuby 0.5 Beta 2 --------------------------------+------------------------------------------- Reporter: mail@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by mail@…): Please note that there is no such effect if this is called without the '-- static' option. -- Ticket URL: <http://www.macruby.org/trac/ticket/539#comment:2> MacRuby <http://macruby.org/>
#539: "macrubyc --static" failing on SL 10.6, MacRuby 0.5 Beta 2 --------------------------------+------------------------------------------- Reporter: mail@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: --------------------------------+------------------------------------------- Comment(by martinlagardette@…): It is possible that it's not using the correct LLVM version. The one we recommend is revision 89156, as written is `HACKING.rdoc` :-). Could you try with that? Thanks -- Ticket URL: <http://www.macruby.org/trac/ticket/539#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby