<div dir="ltr">Hi Philip<div class="gmail_default" style="font-family:"times new roman",serif;font-size:large;display:inline">,</div> <div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><br></div>Thanks for the response. I have used capital P for Pass.h.<br>This is the first time i am working on llvm so i am just trying to run a pass, following this <a href="https://www.cs.cornell.edu/~asampson/blog/llvm.html">link</a>.<br>while running the pass with <br>clang -Xclang -load -Xclang build/skeleton/libSkeletonPass.* something.c<div class="gmail_default" style="font-family:"times new roman",serif;font-size:large;display:inline"></div><br>It gives me the error Pass.h file not found (see attached screenshot)<br><br>also i have tried running it using <br>opt-3.8 -load lib/libskeleton.so -option input.bc -o output.bc<div class="gmail_default" style="font-family:"times new roman",serif;font-size:large;display:inline"></div><br>and it say<div class="gmail_default" style="font-family:"times new roman",serif;font-size:large;display:inline"></div> cannot open shared object file: No such file or directory<div><br></div><div>Thank you<br>Best Regards<div class="gmail_extra"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font face="times new roman, serif" size="4">Muhammad Ehtasham</font></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Oct 20, 2017 at 12:55 AM, Philip Pfaffe <span dir="ltr"><<a href="mailto:philip.pfaffe@gmail.com" target="_blank">philip.pfaffe@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Muhammed,<div><br></div><div>the header is llvm/Pass.h, capital P.</div><div><br></div><div>From the error there is not much to tell, you cut off the actual linker error message. We'll need a bit more context.</div><div><br></div><div>Cheers,</div><div>Philip</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="gmail-h5">2017-10-18 19:24 GMT+02:00 Muhammad Ehtasham via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail-h5"><div dir="ltr"><div style="font-family:"times new roman",serif;font-size:large">Hi</div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large">I am trying to install llvm and clang on ubuntu 16.04, I tried installing them using apt command but while running the pass it gives me error </div><div style="font-family:"times new roman",serif;font-size:large">"error: llvm/pass.h not found</div><div style="font-family:"times new roman",serif;font-size:large"><b>#include"llvm/pass.h"</b></div><div style="font-family:"times new roman",serif;font-size:large">so i tried installing using the source code and building it my self, <b>make </b>fails at 98% with this error</div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large"><b>collect2: error: ld returned 1 exit status<br>tools/llvm-c-test/CMakeFiles/l<wbr>lvm-c-test.dir/build.make:525: recipe for target 'bin/llvm-c-test' failed<br>make[2]: *** [bin/llvm-c-test] Error 1<br>CMakeFiles/Makefile2:62792: recipe for target 'tools/llvm-c-test/CMakeFiles/<wbr>llvm-c-test.dir/all' failed<br>make[1]: *** [tools/llvm-c-test/CMakeFiles/<wbr>llvm-c-test.dir/all] Error 2<br>Makefile:149: recipe for target 'all' failed<br>make: *** [all] Error 2<br></b></div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large">can anyone tell me what i am doing wrong here.</div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div style="font-family:"times new roman",serif;font-size:large">Thank you</div><div style="font-family:"times new roman",serif;font-size:large"><br></div><div><div class="gmail-m_-4469669610199129486m_125776108382311912m_-1332935204981137389gmail-m_-4682862647853830514gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><font size="4" face="times new roman, serif">Best Regards</font></div><span class="gmail-m_-4469669610199129486HOEnZb"><font color="#888888"><div><font size="4" face="times new roman, serif">Muhammad Ehtasham</font></div></font></span></div></div></div></div></div>
</div>
<br></div></div>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>