[LLVMdev] LLVM build error

Lexington Luthor lexington.luthor at gmail.com
Sat Jun 24 05:16:26 PDT 2006


Hi,

While attempting to build the LLVM code from CVS today using gcc 4.1, I 
encountered the following error. Any idea how to proceed with the build?

llvm[2]: Linking Debug executable llvm-as
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMAsmParser.a(llvmAsmParser.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined 
reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined 
reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o): 
In function `llvm::WriteBytecodeToFile(llvm::Module const*, 
std::basic_ostream<char, std::char_traits<char> >&, bool)':
/home/ll/repositories/cvs/llvm/lib/Bytecode/Writer/Writer.cpp:1224: 
undefined reference to `llvm::sys::Program::ChangeStdoutToBinary()'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o): 
In function `StatisticBase':
/home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:37: 
undefined reference to `vtable for llvm::StatisticBase'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o): 
In function `~Statistic':
/home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73: 
undefined reference to `llvm::StatisticBase::~StatisticBase()'
/home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73: 
undefined reference to `llvm::StatisticBase::~StatisticBase()'
/home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73: 
undefined reference to `llvm::StatisticBase::~StatisticBase()'
/home/ll/repositories/cvs/llvm/include/llvm/ADT/Statistic.h:73: 
undefined reference to `llvm::StatisticBase::~StatisticBase()'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(Writer.o):(.rodata._ZTIN4llvm9StatisticIjEE[typeinfo 
for llvm::Statistic<unsigned int>]+0x10): undefined reference to 
`typeinfo for llvm::StatisticBase'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMBCWriter.a(SlotCalculator.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined 
reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(AsmWriter.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined 
reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(Function.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/IntrinsicInst.h:321: 
undefined reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(InlineAsm.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: undefined 
reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(IntrinsicInst.o): 
In function `__static_initialization_and_destruction_0':
/home/ll/repositories/cvs/llvm/include/llvm/IntrinsicInst.h:321: 
undefined reference to `llvm::IncludeFile::IncludeFile(void*)'
/home/ll/programs/source/scm/cvs/llvm/Debug/lib/libLLVMCore.a(Verifier.o):/home/ll/repositories/cvs/llvm/include/llvm/InlineAsm.h:133: 
more undefined references to `llvm::IncludeFile::IncludeFile(void*)' follow
collect2: ld returned 1 exit status
make[2]: *** [/home/ll/programs/source/scm/cvs/llvm/Debug/bin/llvm-as] 
Error 1
make[2]: Leaving directory 
`/home/ll/programs/source/scm/cvs/llvm/tools/llvm-as'
make[1]: *** [llvm-as/.makeall] Error 2
make[1]: Leaving directory `/home/ll/programs/source/scm/cvs/llvm/tools'
make: *** [all] Error 1




More information about the llvm-dev mailing list