<div dir="ltr"><div>Hi, </div><div> I'm getting the following error when I'm trying to compile/link llvm with a backend I have. Running make on the /lib/M68K directory ends without any errors, and I have made all the required files and functions as outlined in <a href="http://llvm.org/releases/2.5/docs/WritingAnLLVMBackend.html">http://llvm.org/releases/2.5/docs/WritingAnLLVMBackend.html</a></div>

<div>I copied most of the files from Sparc backend and remove the content from functions mostly. Anyone has seen this error before?</div><div><br></div><div>llvm[2]: Linking Release+Debug executable llc</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KTargetMachine.o): In function `~M68KTargetLowering':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KISelLowering.h:43: undefined reference to `vtable for llvm::M68KTargetLowering'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KTargetMachine.o): In function `~M68KGenRegisterInfo':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KGenRegisterInfo.h.inc:14: undefined reference to `vtable for llvm::M68KGenRegisterInfo'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KTargetMachine.o): In function `~M68KTargetLowering':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KISelLowering.h:43: undefined reference to `vtable for llvm::M68KTargetLowering'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KTargetMachine.o): In function `~M68KGenRegisterInfo':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KGenRegisterInfo.h.inc:14: undefined reference to `vtable for llvm::M68KGenRegisterInfo'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KISelLowering.o): In function `M68KTargetLowering':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KISelLowering.cpp:37: undefined reference to `vtable for llvm::M68KTargetLowering'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KISelLowering.o): In function `pair':</div>

<div>/usr/include/c++/4.4/bits/stl_pair.h:84: undefined reference to `llvm::M68K::IntRegsRegClass'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KISelLowering.o): In function `M68KTargetLowering':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KISelLowering.cpp:37: undefined reference to `vtable for llvm::M68KTargetLowering'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KISelLowering.o): In function `pair':</div>

<div>/usr/include/c++/4.4/bits/stl_pair.h:84: undefined reference to `llvm::M68K::IntRegsRegClass'</div><div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KInstrInfo.o): In function `M68KInstrInfo':</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KInstrInfo.cpp:28: undefined reference to `llvm::M68KRegisterInfo::M68KRegisterInfo(llvm::M68KSubtarget&, llvm::TargetInstrInfo const&)'</div><div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KInstrInfo.cpp:28: undefined reference to `llvm::M68KRegisterInfo::M68KRegisterInfo(llvm::M68KSubtarget&, llvm::TargetInstrInfo const&)'</div>

<div>/home/pgautam/llvm/llvm-2.7/Release+Debug/lib/libLLVMM68KCodeGen.a(M68KInstrInfo.o): In function `~M68KGenRegisterInfo':</div><div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KGenRegisterInfo.h.inc:14: undefined reference to `vtable for llvm::M68KGenRegisterInfo'</div>

<div>/home/pgautam/llvm/llvm-2.7/lib/Target/M68K/M68KGenRegisterInfo.h.inc:14: undefined reference to `vtable for llvm::M68KGenRegisterInfo'</div><div>collect2: ld returned 1 exit status</div><div><br></div>- Prasanna Gautam<br>


</div>