[LLVMdev] LLVM Build Difficulties

Curtis Jones curtis.jones at gmail.com
Mon Sep 21 15:49:04 PDT 2009

I hope this is the right list for such questions.... I've been trying  
to get LLVM compiled under Linux (Ubuntu 9.04, 64 bit) for the last  
couple of days.

It all ends with the error:

llvm[2]: Linking Release executable tblgen (without symbols)
AsmMatcherEmitter.o: In function `(anonymous  
AsmMatcherEmitter.cpp:(.text+0xbbbb): undefined reference to  
`llvm::StringRef::find(llvm::StringRef const&) const'
/home/cjones/Desktop/Build/llvm/utils/TableGen/Release/TableGen.o: In  
function `llvm::cl::opt<ActionType, false,  
llvm::cl::parser<ActionType> >::handleOccurrence(unsigned int,  
llvm::StringRef, llvm::StringRef)':
+0x292): undefined reference to `llvm::cl::Option::error(llvm::Twine  
const&, llvm::StringRef)'
collect2: ld returned 1 exit status
make[2]: *** [/home/cjones/Desktop/Build/llvm/Release/bin/tblgen]  
Error 1
make[2]: Leaving directory `/home/cjones/Desktop/Build/llvm/utils/ 
make[1]: *** [TableGen/.makeall] Error 2
make[1]: Leaving directory `/home/cjones/Desktop/Build/llvm/utils'
make: *** [all] Error 1

I've tried an array of different gcc versions, and quite a few  
different configure options, but to no avail. The complete gamut of  
options looks like this presently:

	CXXFLAGS="-fPIC" ./configure --enable-optimized --enable-assertions -- 

I've got the latest code from subversion. I have clang checked out  
into tools/clang.

Let me know what additional information I can provide....

Any help would be appreciated.


Curtis Jones

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2427 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090921/888eaff2/attachment.bin>

More information about the llvm-dev mailing list