[llvm-commits] [patch] cmake target lib dependencies chain update in order to build examples

Chris Lattner clattner at apple.com
Tue Jun 30 22:34:16 PDT 2009


On Jun 30, 2009, at 5:48 AM, Xerxes RĂ„nby wrote:

> Problem using cmake with -DLLVM_EXAMPLES:BOOL=ON :
> [ 99%] Built target HowToUseJIT
> Linking CXX executable ../../bin/Kaleidoscope
> ../../lib/libLLVMX86CodeGen.a(X86TargetMachine.cpp.o): In function  
> `llvm::X86TargetMachine::addInstSelector(llvm::PassManagerBase&,  
> llvm::CodeGenOpt::Level)':
> X86TargetMachine.cpp:(.text+0x720): undefined reference to  
> `llvm::EnableFastISel'
> X86TargetMachine.cpp:(.text+0x733): undefined reference to  
> `llvm::createDeadMachineInstructionElimPass()'
> ../../lib/libLLVMX86CodeGen.a(X86TargetMachine.cpp.o): In function  
> `llvm::X86TargetLowering::~X86TargetLowering()':
> X86TargetMachine.cpp: 
> (.text 
> ._ZN4llvm17X86TargetLoweringD1Ev 
> [llvm::X86TargetLowering::~X86TargetLowering()]+0x17): undefined  
> reference to `llvm::TargetLowering::~TargetLowering()'
> ../../lib/libLLVMX86CodeGen.a(X86TargetMachine.cpp.o): In function  
> `llvm::TargetInstrInfoImpl::~TargetInstrInfoImpl()':
> X86TargetMachine.cpp: 
> (.text 
> ._ZN4llvm19TargetInstrInfoImplD2Ev 
> [llvm::TargetInstrInfoImpl::~TargetInstrInfoImpl()]+0x7): undefined  
> reference to `vtable for llvm::TargetInstrInfoImpl'
> ../../lib/libLLVMX86CodeGen.a(X86TargetMachine.cpp.o): In function  
> `llvm::LLVMTargetMachine::~LLVMTargetMachine()':
> X86TargetMachine.cpp: 
> (.text 
> ._ZN4llvm17LLVMTargetMachineD2Ev 
> [llvm::LLVMTargetMachine::~LLVMTargetMachine()]+0x7): undefined  
> reference to `vtable for llvm::LLVMTargetMachine'
>
> The patch updates all targets with codegen and asmprinter to deal  
> with this issue.

This looks good to me, if it's ok with Doug.  However, please attach  
the patch as an attachment so that we can apply it easily.

Thanks!

-Chris



More information about the llvm-commits mailing list