Hello everyone, I'm struggling to get a working LLVM installation on MinGW on Windows Vista. I have the following packages: * LLVM 2.4 * Gnu make 3.81 * GCC 3.4.5 (mingw-vista special r3) * Perl 5.6.1 * Texinfo 4.11 * LD (which I took to be representative of Binutils version) 2.17.50 20060824 None of these are marked "bad" in your compatibility matrix, but not many of them are marked "good" either. During build I get lots of missing symbol errors from LD. Near the end it goes through a monster link step that spews many screenfuls of link errors. Here's an example from near the end: c:/mingw/src/llvm-2.4/Release/lib/libLLVMBitWriter.a(ValueEnumerator.o):ValueEnumerator.cpp:(.text$_ZNSt6vectorIN4llvm11 AttrListPtrESaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_[std::vector<llvm::AttrListPtr, std::al locator<llvm::AttrListPtr>>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::AttrListPtr*,std::vector<llvm::AttrListP tr, std::allocator<llvm::AttrListPtr> > >, llvm::AttrListPtr const&)]+0x1b5): undefined reference to `llvm::AttrListPtr: :AttrListPtr(llvm::AttrListPtr const&)' collect2: ld returned 1 exit status I'm not concerned with working on LLVM itself - I just want to use it, so if there's an alternative way to get a working system on Windows I'm open to suggestions. Thanks for your help, Duncan Pierce
Hello, Duncan> * LD (which I took to be representative of Binutils version) 2.17.50 > 20060824 > None of these are marked "bad" in your compatibility matrix, but not > many of them are marked "good" either. > > During build I get lots of missing symbol errors from LD. Near the end > it goes through a monster link step that spews many screenfuls of link > errors. Here's an example from near the end:Smells like binutils problem. In the past I filled 2 or 3 binutils bugs as a result of LLVM compilation on mingw (all of them were fixed, but I don't recall the specific versions of binutils, unfortunately). Why you're using such old binutils? 2.18.50-20080109 definitely worked for me (and release binaries were built so...). --- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090114/6d58fd2f/attachment.html>
2009/1/13 Anton Korobeynikov <anton at korobeynikov.info>:> Hello, Duncan > > * LD (which I took to be representative of Binutils version) 2.17.50 > 20060824> Why you're using such old binutils? 2.18.50-20080109 definitely worked for > me (and release binaries were built so...).Thank you for your reply Anton. I'm sorry it's taken a while to get back to you. This binutils came with the MinGW installer. I have made some progress by reinstalling according to these instructions, though I took slightly more recent versions in some cases and also found I needed Perl (thank you Anton and Ted): http://blogs.tedneward.com/2008/02/24/Building+LLVM+On+Windows+Using+MinGW32.aspx Now I can compile and install llvm-2.4 but the first step in the tutorial fails for me with another missing symbol: $ g++ -g tut1.cpp `llvm-config --cxxflags --ldflags --libs core` -o tut1 /mingw/lib/libLLVMSystem.a(Process.o):Process.cpp:(.text+0x8d): undefined reference to `GetProcessMemoryInfo at 12' collect2: ld returned 1 exit status I'm using GNU ld (GNU Binutils) 2.18.50.20080109. Thanks for any further help you can provide, Duncan Pierce