Projects

Ticket #588 (reopened defect)

Opened 2 years ago

Last modified 14 months ago

ld: library not found for -lLLVMBitWriter for macrubyc --static

Reported by: g.vishnu@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby Later
Component: MacRuby Keywords:
Cc:

Description (last modified by martinlagardette@…) (diff)

vishnugopal@hor-fgh226:Code/Sandbox/macruby-test % macrubyc --static -o ./gcd ./gcd.rb 
ld: library not found for -lLLVMBitWriter
collect2: ld returned 1 exit status
Error when executing `/usr/bin/g++ -o "./gcd" -arch x86_64 -L/Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib -lmacruby-static -L/usr/local/lib  -lpthread -lffi -lm -lLLVMBitWriter -lLLVMX86CodeGen -lLLVMX86Info -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMJIT -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMCore -lLLVMSupport -lLLVMSystem -lpthread -ldl -lxml2 -lobjc -lauto -framework Foundation  "/var/folders/nX/nXnuXaYeGIOkQo6WIXrqMU+++TI/-Tmp-/main-26571.o" "./gcd.o"'


Without --static, compilation works okay! I've got Xcode 3.2.2 pre-release installed.

Change History

  Changed 2 years ago by martinlagardette@…

  • description modified (diff)

Hi!

Thanks for the bug report. But in order to reproduce the bug, could you maybe provide the following: - the gcd.rb file - Your computer configuration (32 bits? 64 bits? OS?) - How did you install MacRuby 0.5? Was it from the package, or SVN? - Anything you could think would be useful :-)

Thanks!

  Changed 2 years ago by lsansonetti@…

Thibault, the problem is that the --static mode requires the LLVM libraries, which do not ship by default.

follow-up: ↓ 4   Changed 19 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from MacRuby 0.5 to MacRuby 0.6

I believe this problem has been fixed in 0.6.

in reply to: ↑ 3   Changed 18 months ago by jfrisby@…

  • status changed from closed to reopened
  • resolution fixed deleted

Replying to lsansonetti@…:

I believe this problem has been fixed in 0.6.

It has not. I'm running OSX 10.6.4, MacRuby 0.6, and get that error.

  Changed 14 months ago by lsansonetti@…

  • milestone changed from MacRuby 0.6 to MacRuby Later

Static compilation is under development again, but won't be finished for 1.0 probably. Moving to Later.

Note: See TracTickets for help on using tickets.