I forgot that lli was "special". It uses the "JIT" keywoard which means "figure out the right libraries to use for a JIT compiler and runtime". So, just add this, to tools/lli/Makefile: USEDLIBS := LLVMBCWriter That worked for me. Reid. On Thu, 2005-02-24 at 16:58, Patrick Meredith wrote:> Where do I add that line? Just putting it in the vanilla Makefile in > tools/lli doesn't work. > > ----- Original Message ----- > From: "Reid Spencer" <reid at x10sys.com> > To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Sent: Thursday, February 24, 2005 6:50 PM > Subject: Re: [LLVMdev]Linker error building (modified) lli > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050224/87abe8c1/attachment.sig>
Yikes, my tree must be more outdated than I thought. My library is still called bcwriter. Unfortunately when I add that line I get even more errors, seems like the only solution is going to be updating everything ;-) ----- Original Message ----- From: "Reid Spencer" <reid at x10sys.com> To: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> Sent: Thursday, February 24, 2005 7:02 PM Subject: Re: [LLVMdev]Linker error building (modified) lli> _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev >
Patrick Meredith
2005-Feb-25 01:24 UTC
[LLVMdev]Linker error building (modified) lli, thanks!
Thanks Tanya and Reid. I finally got it working (and my tree is really is very outdated). It looks like when you specify USEDLIBS = it then overrides whatever it would normally call and only uses these (rather than a union of the default and USEDLIBS, like I had expected). So I had to specify every library that lli uses (and I probably specified some that it doesn't). Important thing is that it works though :)