[cfe-dev] Error building clang

Edward Diener eldlistmailingz at tropicsoft.com
Wed Aug 29 15:41:21 PDT 2012


Getting the latest LLVM and clang, when trying to 'make' I get:

/home/suseldiener/dev/clang/build/tools/clang/utils/TableGen/Debug+Asserts/TableGen.o: 
In function `llvm::SmallVectorTemplateBase<char const*, 
true>::grow(unsigned long)':
/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
/home/suseldiener/dev/clang/build/tools/clang/utils/TableGen/Debug+Asserts/TableGen.o: 
In function `llvm::SmallVectorTemplateBase<std::pair<char const*, 
std::pair<int, char const*> >, true>::grow(unsigned long)': 
 

/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
/home/suseldiener/dev/clang/build/Debug+Asserts/lib/libLLVMTableGen.a(TGLexer.o): 
In function `llvm::TGLexer::LexInclude()': 

/opt/LinuxShare/VCS/svn16/llvm_trunk/lib/TableGen/TGLexer.cpp:297: 
undefined reference to `llvm::PrintError(llvm::SMLoc, llvm::Twine 
const&)'
/opt/LinuxShare/VCS/svn16/llvm_trunk/lib/TableGen/TGLexer.cpp:309: 
undefined reference to `llvm::PrintError(llvm::SMLoc, llvm::Twine 
const&)'
/home/suseldiener/dev/clang/build/Debug+Asserts/lib/libLLVMSupport.a(CommandLine.o): 
In function `llvm::SmallVectorTemplateBase<llvm::cl::Option*, 
true>::grow(unsigned long)':
/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
/home/suseldiener/dev/clang/build/Debug+Asserts/lib/libLLVMSupport.a(CommandLine.o): 
In function `llvm::SmallVectorTemplateBase<std::pair<llvm::StringRef, 
unsigned int>, true>::grow(unsigned long)': 
 

/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
/home/suseldiener/dev/clang/build/Debug+Asserts/lib/libLLVMSupport.a(CommandLine.o): 
In function `llvm::SmallVectorTemplateBase<std::pair<char const*, 
llvm::cl::Option*>, true>::grow(unsigned long)': 
 

/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
/home/suseldiener/dev/clang/build/Debug+Asserts/lib/libLLVMSupport.a(FoldingSet.o): 
In function `llvm::SmallVectorTemplateBase<unsigned int, 
true>::grow(unsigned long)':
/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
/home/suseldiener/dev/clang/build/Debug+Asserts/lib/libLLVMSupport.a(SourceMgr.o): 
In function `llvm::SmallVectorTemplateBase<std::pair<unsigned int, 
unsigned int>, true>::grow(unsigned long)': 
 

/opt/LinuxShare/VCS/svn16/llvm_trunk/include/llvm/ADT/SmallVector.h:334: 
undefined reference to `llvm::SmallVectorBase::grow_pod(unsigned long, 
unsigned long)'
clang: error: linker command failed with exit code 1 (use -v to see 
invocation) 

make[1]: *** 
[/home/suseldiener/dev/clang/build/Debug+Asserts/bin/clang-tblgen] Error 1
make[1]: Leaving directory 
`/home/suseldiener/dev/clang/build/tools/clang/utils/TableGen'

I am under SUSE 11.4. The clang version is clang version 3.2 (trunk 
161314). The gcc version is 4.5.1. Any ideas why I am seeing the error 
above ?




More information about the cfe-dev mailing list