<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi everyone,<div><br></div><div>This is Ashwin. I have a mac running osx 10.8. I am new to LLVM and have the version 3.1 installed. I am trying to get some LLVM transform passes running on my machine. After having compiled the LLVM source without making changes to the configuration files I am able to run the LLVM gcc and clang. But I am having some trouble using the passes. I tried loading the hello pass inside the transform directory of the LLVM object tree. </div><div><br></div><div>When I do an opt -load LLVMhello.dylib -help I dont see the registered pass listed. Further when I load the option I get an undefined symbol error from the linker. This is the command i issue and the output i get.</div><div><br></div><div><b><br></b></div><div><b>bash-3.2$ opt -load LLVMHello.dylib < hello.bc > /dev/null</b></div><div><b><br></b></div><div><div><b>Error opening 'LLVMHello.dylib': dlopen(LLVMHello.dylib, 9): Symbol not found: __ZN4llvm12FunctionPass14doFinalization$</b></div><div><b> | Referenced from: /usr/local/bin/../lib/LLVMHello.dylib</b></div><div><b> | Expected in: flat namespace</b></div><div><b> | in /usr/local/bin/../lib/LLVMHello.dylib</b></div><div><b> | -load request ignored.</b></div></div><div><br></div><div><br></div><div>I appreciate your help. Please help me fix it!</div><div><br></div><div>regards,</div><div>Ashwin.</div></body></html>