[LLVMdev] opt -load error on Darwin

Jing Yu jingyuuiuc at gmail.com
Mon Aug 28 00:00:59 CDT 2006


Thank you, Reid.

I have applied tha patch to ltdl.c ltdl.h. The problem still exists.  I
looked up the symbol on libLLVMCore.a, and found three U-entries and one
T-entry.  However, the Darwin linker is not able to find the T-entry. Any
idea?


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
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE
         U
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE
         U
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE
00004100 T
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE
000197d8 S
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE.eh
         U
__ZN4llvm12FunctionPass16addToPassManagerEPNS_20FunctionPassManagerTERNS_13AnalysisUsageE


Jing
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20060828/6680507c/attachment.html


More information about the LLVMdev mailing list