[LLVMdev] Build failure for latest source

Edward Diener eldlistmailingz at tropicsoft.com
Thu Jul 28 12:06:39 PDT 2011


Attempting to build the latest llvm I get:

llvm[2]: Linking Debug+Asserts executable opt
C:/Utilities/MSYS/build/llvm/Debug+Asserts/lib/libLLVMScalarOpts.a(SimplifyLibCalls.o):C:/Programming/VersionControl/llvm/include/llvm/Instructions.h:388: 
undefined reference to 
`llvm::GetElementPtrInst::GetElementPtrInst(llvm::Value*, llvm::Value*, 
llvm::Twine const&, llvm::Instruction*)'
C:/Utilities/MSYS/build/llvm/Debug+Asserts/lib/libLLVMAnalysis.a(ScalarEvolutionExpander.o):C:/Programming/VersionControl/llvm/include/llvm/Instructions.h:304: 
undefined reference to `llvm::GetElementPtrInst::init(llvm::Value*, 
llvm::Value* const*, unsigned int, llvm::Twine const&)'
C:/Utilities/MSYS/build/llvm/Debug+Asserts/lib/libLLVMAnalysis.a(ScalarEvolutionExpander.o):C:/Programming/VersionControl/llvm/include/llvm/Instructions.h:308: 
undefined reference to `llvm::GetElementPtrInst::init(llvm::Value*, 
llvm::Value* const*, unsigned int, llvm::Twine const&)'
C:/Utilities/MSYS/build/llvm/Debug+Asserts/lib/libLLVMAnalysis.a(ScalarEvolutionExpander.o):C:/Programming/VersionControl/llvm/include/llvm/Instructions.h:330: 
undefined reference to 
`llvm::GetElementPtrInst::getIndexedType(llvm::Type*, llvm::Value* 
const*, unsigned int)'
C:/Utilities/MSYS/build/llvm/Debug+Asserts/lib/libLLVMAnalysis.a(ScalarEvolutionExpander.o):C:/Programming/VersionControl/llvm/include/llvm/Instructions.h:332: 
undefined reference to 
`llvm::GetElementPtrInst::getIndexedType(llvm::Type*, llvm::Value* 
const*, unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [/usr/build/llvm/Debug+Asserts/bin/opt.exe] Error 1
make[2]: Leaving directory `/build/llvm/tools/opt'
make[1]: *** [opt/.makeall] Error 2
make[1]: Leaving directory `/build/llvm/tools'
make: *** [all] Error 1




More information about the llvm-dev mailing list