[LLVMdev] opt -load error on Darwin

Chris Lattner sabre at nondot.org
Mon Aug 28 14:18:50 PDT 2006


On Mon, 28 Aug 2006, Jing Yu wrote:

I don't really have any ideas beyond what Reid has already said, but:

> pollux:~/test jingyu$ opt -load
> /Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so -help
> Error opening '/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so':
> Can't open :/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so:
> dlopen(/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so, 9): Symbol
> not
> found:__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE
>   Referenced from: /Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so
>   Expected in: flat namespace
>
> pollux:~/tools/build-ppc/Release/lib jingyu$ nm libLLVMCore.a | grep

Try using 'nm -m' on the 'opt' executable itself.  Using plain nm on my 
local one yields:
00121a4e T __ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE

and nm -m shows:
00121a4e (__TEXT,__text) external 
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE

Is this what you're seeing?  Are you using llvm 1.8 or CVS?  You might try 
CVS if 1.8 doesn't work for you.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list