<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Try doing a clean build, then doing 'make ENABLE_PIC=1'<div><br></div><div>-Chris</div><div><br><div><div>On Apr 11, 2010, at 9:13 AM, ambika wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">ambika <<a href="mailto:ambika@cse.iitb.ac.in">ambika@cse.iitb.ac.in</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">April 8, 2010 9:10:25 AM PDT<br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:llvmdev@cs.uiuc.edu">llvmdev@cs.uiuc.edu</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(127, 127, 127, 1.0);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>[LLVMdev] Can someone help me with error while i make my own pass</b><br></span></div><br><br>Hi,<br><br>I have added LoaderInterface pass in llvm code and then I invoke this <br>pass in other pass. Iget the following error:<br><br>llvm[0]: Linking Release Loadable Module MyDfg.so<br>/usr/bin/ld: /home/ambika/llvm_3/llvm-obj/lib/ss-fs/Release/MyDfg.o: <br>relocation R_386_GOTOFF against undefined symbol `(anonymous <br>namespace)::LoaderInterface::ID' can not be used when making a shared object<br>/usr/bin/ld: final link failed: Bad value<br>collect2: ld returned 1 exit status<br>make: *** [/home/ambika/llvm_3/llvm-obj/Release/lib/MyDfg.so] Error 1<br><br><br>Can someone tell me the reason for this error.<br><br>regards,<br>Ambika<br><br>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br><br><br>_______________________________________________<br>LLVM Developers mailing list<br>LLVMdev@cs.uiuc.edu         http://llvm.cs.uiuc.edu<br>http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev<br></blockquote></div><br></div></body></html>