There do not seem to be any binaries for CygWin only Linux and the Mac :( I tried building the frontend on CygWin but ended up with a makeinfo error then a build error that I could not do anything about. I will have to get my Linux Laptop from home and use that. Many thanks, Aaron
Linking lli debug executable (without symbols) /mounts/zion/disks/0/localhome/pmeredit/llvm/lib/Debug/lli-interpreter.o(.te xt+0x643a): In function `llvm::Interpreter::callExternalFunction(llvm::Function*, std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > const&)': /localhome/pmeredit/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.c pp:98: undefined reference to `llvm::WriteBytecodeToFile(llvm::Module const*, std::basic_ostream<char, std::char_traits<char> >&)' collect2: ld returned 1 exit status make: *** [/mounts/zion/disks/0/localhome/pmeredit/llvm/tools/Debug/lli] Error 1 So, it's not linking in Writer.o, which is understandable since lli, as is, has no use for Writer.o. My question is where in this system of Makefiles are the object files to be linked into lli specified? I've looked through all the Makefiles and I can't find anything :(
Yeah, cygwin is a bit of a beast. There's no pre-compiled binary available (I'm working on it). If you want to build yourself, follow the instructions in the CFEBuildInstr.html document carefully, especially noting the Cygwin specific stuff. For example, you can't use the default gcc that comes with Cygwin. I've been successful with GCC 3.4.3 on Cygwin. I've uploaded a zipped tar file my Cygwin CFE "install" directory. You can get it here: http://illuvium.com/download/ Use at your own risk (i.e. it works for me, but your mileage may vary). Reid. On Thu, 2005-02-24 at 14:21, Aaron Gray wrote:> There do not seem to be any binaries for CygWin only Linux and the Mac :( > > I tried building the frontend on CygWin but ended up with a makeinfo error > then a build error that I could not do anything about. > > I will have to get my Linux Laptop from home and use that. > > Many thanks, > > Aaron > > > > _______________________________________________ > 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/9c13c067/attachment.sig>
Hi Patrick, You need to modify your makefile for building your version of lli so that it includes the LLVMBCWriter.o library. You can do this with a line like: LLVM_LIBS=LLVMBCWriter if you're using the LLVM Makefile system. Otherwise you just need to make sure that {Debug,Release}/lib/LLVMBCWriter.o gets added to the link line. Reid. On Thu, 2005-02-24 at 16:37, Patrick Meredith wrote:> Linking lli debug executable (without symbols) > /mounts/zion/disks/0/localhome/pmeredit/llvm/lib/Debug/lli-interpreter.o(.te > xt+0x643a): In function > `llvm::Interpreter::callExternalFunction(llvm::Function*, > std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > > const&)': > /localhome/pmeredit/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.c > pp:98: undefined reference to `llvm::WriteBytecodeToFile(llvm::Module > const*, std::basic_ostream<char, std::char_traits<char> >&)' > collect2: ld returned 1 exit status > make: *** [/mounts/zion/disks/0/localhome/pmeredit/llvm/tools/Debug/lli] > Error 1 > > So, it's not linking in Writer.o, which is understandable since lli, as is, > has no use for Writer.o. My question is where in this system of Makefiles > are the object files to be linked into lli specified? I've looked through > all the Makefiles and I can't find anything :( > > _______________________________________________ > 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/18d961c1/attachment.sig>
>Yeah, cygwin is a bit of a beast. There's no pre-compiled binary >available (I'm working on it). If you want to build yourself, follow >the instructions in the CFEBuildInstr.html document carefully, >especially noting the Cygwin specific stuff. For example, you can't use >the default gcc that comes with Cygwin. I've been successful with GCC >3.4.3 on Cygwin.I updated my CygWin GCC to 3.4.3 and binutils back to 2.15. Read CFEBuildInstr.html a couple of times. Tried building it, but got an error with makeinfo then a biuld error I could not do anything about. I was able to build LLVM with no problem.>I've uploaded a zipped tar file my Cygwin CFE "install" directory. You >can get it here: http://illuvium.com/download/ >Use at your own risk (i.e. it works for me, but your mileage may vary).Great, thanks. It seems alot smaller than what I got when compiling from the CVS. There's no stdlib++v3 or libiberty, or texi documentation, in your version. Maybe I should be building llvm-gcc from the downloadable release rather than from the CVS ! Many thanks, Aaron