Andreas Wilhelm
2011-Jun-02 13:37 UTC
[LLVMdev] symbol not found (running passes by tools)
Hi All, I'd like to call some passes by an executable in the tools directory of my project. Unfortunately I get following error messages on executing the tool: dyld: lazy symbol binding failed: Symbol not found: __ZN4llvm9Statistic17RegisterStatisticEv and dyld: Symbol not found: __ZN4llvm9Statistic17RegisterStatisticEv This is because of the STATISTIC macro in one of the passes. If I comment the macro-call everything works fine. So do you know how to tell the linker where it can find the RegisterStatistic function? Thanks Andreas
Hi Andreas,> I'd like to call some passes by an executable in the tools directory of my project. > Unfortunately I get following error messages on executing the tool: > > dyld: lazy symbol binding failed: Symbol not found: __ZN4llvm9Statistic17RegisterStatisticEv and > dyld: Symbol not found: __ZN4llvm9Statistic17RegisterStatisticEv > > This is because of the STATISTIC macro in one of the passes. If I comment the macro-call everything > works fine. So do you know how to tell the linker where it can find the RegisterStatistic function?did you compile your passes with the same flags you compiled LLVM with, i.e. assertions on (or off) in both, optimization on (or off) in both etc? Ciao, Duncan.
Apparently Analagous Threads
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
- [LLVMdev] Symbol not found in opt when using own pass
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range