[llvm-dev] LLVM Installation failing

Muhammad Ehtasham via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 19 13:05:03 PDT 2017


Hi Philip
​,​

Thanks for the response. I have used capital P for Pass.h.
This is the first time i am working on llvm so i am just trying to run a
pass, following this link
<https://www.cs.cornell.edu/~asampson/blog/llvm.html>.
while running the pass with
clang -Xclang -load -Xclang build/skeleton/libSkeletonPass.* something.c
​

It gives me the error Pass.h file not found (see attached screenshot)

also i have tried running it using
opt-3.8 -load lib/libskeleton.so -option input.bc -o output.bc
​​

and it say
​​
 cannot open shared object file: No such file or directory

Thank you
Best Regards
Muhammad Ehtasham

On Fri, Oct 20, 2017 at 12:55 AM, Philip Pfaffe <philip.pfaffe at gmail.com>
wrote:

> Hi Muhammed,
>
> the header is llvm/Pass.h, capital P.
>
> From the error there is not much to tell, you cut off the actual linker
> error message. We'll need a bit more context.
>
> Cheers,
> Philip
>
> 2017-10-18 19:24 GMT+02:00 Muhammad Ehtasham via llvm-dev <
> llvm-dev at lists.llvm.org>:
>
>> Hi
>>
>> 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
>> "error: llvm/pass.h not found
>> *#include"llvm/pass.h"*
>> so i tried installing using the source code and building it my self, *make
>> *fails at 98% with this error
>>
>>
>>
>>
>>
>>
>>
>>
>> *collect2: error: ld returned 1 exit
>> statustools/llvm-c-test/CMakeFiles/llvm-c-test.dir/build.make:525: recipe
>> for target 'bin/llvm-c-test' failedmake[2]: *** [bin/llvm-c-test] Error
>> 1CMakeFiles/Makefile2:62792: recipe for target
>> 'tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/all' failedmake[1]: ***
>> [tools/llvm-c-test/CMakeFiles/llvm-c-test.dir/all] Error 2Makefile:149:
>> recipe for target 'all' failedmake: *** [all] Error 2*
>>
>> can anyone tell me what i am doing wrong here.
>>
>> Thank you
>>
>> Best Regards
>> Muhammad Ehtasham
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171020/64d9b9ba/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 22635362_1529226747157021_423888899_n.png
Type: image/png
Size: 20193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171020/64d9b9ba/attachment.png>


More information about the llvm-dev mailing list