[LLVMdev] Fwd: DomTreeNode

Duncan Sands baldrick at free.fr
Tue Aug 21 01:44:51 PDT 2012


Hi George,

> That is what I don't understand. This symbol is defined in Dominators.h, which I
> include
> in my file. I don't understand why I am getting this error. Here is my opt command,
>
> "opt -load LLVMMyDomPass.dylib -mdp < test.bc > test.d.bc"

did you compile your pass with the same optimization level, debug flags etc as
opt was compiled with?

Ciao, Duncan.

>
> George
>
>
> On Tue, Aug 21, 2012 at 3:25 AM, Duncan Sands <baldrick at free.fr
> <mailto:baldrick at free.fr>> wrote:
>
>     Hi George,
>
>     ...
>      > dyld: lazy symbol binding failed: Symbol not found:
>      > __ZN4llvm17DominatorTreeBaseINS_10BasicBlockEE11getRootNodeEv
>      >    Referenced from:
>      >
>     /Users/georgebaah/Software/llvm3.1/build/Debug+Asserts/bin/../lib/LLVMNshira.dylib
>      >    Expected in: flat namespace
>      >
>      > dyld: Symbol not found:
>      > __ZN4llvm17DominatorTreeBaseINS_10BasicBlockEE11getRootNodeEv
>      >    Referenced from:
>      >
>     /Users/georgebaah/Software/llvm3.1/build/Debug+Asserts/bin/../lib/LLVMNshira.dylib
>      >    Expected in: flat namespace
>
>     looks like you forgot to link with the library defining this symbol.
>
>     Ciao, Duncan.
>     _______________________________________________
>     LLVM Developers mailing list
>     LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu
>     http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>




More information about the llvm-dev mailing list