[LLVMdev] llvm pass

362 views
Skip to first unread message

Praveen Kumar Reddy Maddikunta

unread,
Feb 11, 2013, 9:00:18 AM2/11/13
to llv...@cs.uiuc.edu
hello sir,
    i build llvm-clang in my system successfully but while running llvm pass in ubuntu os its showing like

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

even though .so file is there in the path its showing error like this.please help me run the pass.

Manoj C

unread,
Feb 11, 2013, 11:05:33 AM2/11/13
to llv...@cs.uiuc.edu
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

unread,
Feb 11, 2013, 11:19:54 AM2/11/13
to llv...@cs.uiuc.edu

Óscar Fuentes

unread,
Feb 11, 2013, 11:52:49 AM2/11/13
to llv...@cs.uiuc.edu
Manoj C <manoj.c...@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

?

_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply all
Reply to author
Forward
0 new messages