llvm pass

hello sir,
i build llvm-clang successfully in my pc but while running a pass i am geetting this error

praveen@ubuntu:~/Desktop/LLVM/
build/Release$ opt -load /lib/LLVMHello.so --help
Error opening ‘/lib/LLVMHello.so’: /lib/LLVMHello.so: cannot open shared object file: No such file or directory
-load request ignored.
please help me to overcome the error.

hello sir,
i build llvm-clang successfully in my pc but while running a pass i am geetting this error

praveen@ubuntu:~/Desktop/LLVM/
build/Release$ opt -load /lib/LLVMHello.so --help
Error opening ‘/lib/LLVMHello.so’: /lib/LLVMHello.so: cannot open shared object file: No such file or directory
-load request ignored.
please help me to overcome the error.

Manoj C <manoj.chinthala@gmail.com> writes:

    i build llvm-clang successfully in my pc but while running a pass i am
geetting this error

praveen@ubuntu:~/Desktop/LLVM/
build/Release$ opt -load /lib/LLVMHello.so --help
Error opening '/lib/LLVMHello.so': /lib/LLVMHello.so: cannot open shared
object file: No such file or directory
  -load request ignored.
please help me to overcome the error.

Please don't post the same question multiple times.

Check that LLVMHello.so has the correct permissions (mostly the read and
execute flag on.)

How did you install LLVM ? If I recall correctly, LLVMHello.so should be
in /usr/lib. What's the output of

ls -l /lib/LLVMHello.so

?