[MacRuby-devel] [MacRuby] #539: "macrubyc --static" failing on SL 10.6, MacRuby 0.5 Beta 2

MacRuby ruby-noreply at macosforge.org
Sun Jan 3 09:49:22 PST 2010

#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

 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/>

More information about the MacRuby-devel mailing list