[LLVMdev] Build problems on MinGW

Duncan Pierce duncan at duncanpierce.org
Tue Jan 13 13:50:46 PST 2009


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



More information about the llvm-dev mailing list