I have just started using llvn and I am running in the following error when trying to run Hello World Pass in the llvm documentation. opt: /usr/local/llvm/src/lib/VMCore/Pass.cpp:158: void <unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"' failed. The problem gets resolved if the Hello.so library is not created, but then the pass doesnt get registered and its losing out the whole point. I came across a solution posted under the same error message which stated that anything linked from LLVm to Hello.so can cause this problem. I quite didn't understand what it meant. Please let me know what I can do? Thanks in advance SHWETA -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081014/423c809a/attachment.html>
On Wednesday 15 October 2008 01:01:24 Shweta Jain wrote:> I have just started using llvn and I am running in the following error when > trying to run Hello World Pass in the llvm documentation. > opt: /usr/local/llvm/src/lib/VMCore/Pass.cpp:158: void > <unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion `Inserted > && "Pass > registered multiple times!"' failed.This problem has come up many times already on the mailing list. I never paid much attention, so I can't tell you directly what the solution is :) But if you search in the list archives you should be able to find the answer. Ciao, Duncan.
Maybe Matching Threads
- [LLVMdev] Error in registration of Pass
- [LLVMdev] can't run the Hello Pass: either not registered or registered multiple times, what is the problem?
- [LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
- [LLVMdev] Problems creating a pass
- [LLVMdev] Writing a pass for the opt tool: likely documentation bug