[LLVMdev] Help with the 'WritingAnLLVMPass' tutorial

Akhi Singhania akhi3030 at gmail.com
Tue Jul 8 23:56:47 PDT 2014


Hi,

I'm making my way through the WritingAnLLVMPass tutorial and hitting the
following issue.

$ opt -load ../../../Debug+Asserts/lib/LLVMHello.so -hello < hello.bc >
/dev/null
opt: symbol lookup error: ../../../Debug+Asserts/lib/LLVMHello.so:
undefined symbol: AnnotateHappensAfter

nm -g ../../../Debug+Asserts/lib/LLVMHello.so
                 U AnnotateHappensAfter
...

$ ldd ../../../Debug+Asserts/lib/LLVMHello.so
linux-vdso.so.1 =>  (0x00007fffa87fe000)
libz.so.1 => /lib64/libz.so.1 (0x00007f21b409e000)
 libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f21b3e80000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f21b3c56000)
 libdl.so.2 => /lib64/libdl.so.2 (0x00007f21b3a52000)
libm.so.6 => /lib64/libm.so.6 (0x00007f21b374a000)
 libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f21b3442000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f21b322c000)
 libc.so.6 => /lib64/libc.so.6 (0x00007f21b2e6c000)
/lib64/ld-linux-x86-64.so.2 (0x0000003baaa00000)

Am I not linking against some library I should have?

Thanks,
Akhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140709/da78c50c/attachment.html>


More information about the llvm-dev mailing list