[LLVMdev] can't run the Hello Pass: registered multiple times

Chuck Zhao czhao at eecg.toronto.edu
Wed Jun 2 16:17:00 PDT 2010

Anton and John,

Thank you for the valuable info.

I guess the MinGW/Cygwin path is dead, at least for now.

How about the problem of registering the pass multiple times under Linux 

opt -load Release/lib/Hello.so -hello < test.bc > /dev/null
void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&): 
Assertion `Inserted && "Pass registered multiple times!"' failed.
0  opt 0x085e6809
Stack dump:
0.    Program arguments: opt -load Release/lib/Hello.so -hello
/bin/sh: line 1: 28292 Aborted                 opt -load 
Release/lib/Hello.so -hello <test.bc >/dev/null
make: *** [run] Error 134

I can't seem to figure out the reason of the strange behavior, other 
than believing it is (possibly) a mis-compilation problem.

A few known-to-miscompile compiler versions are given in the getting 
started guide (http://llvm.org/docs/GettingStarted.html), I wonder if 
the LLVM Team can publish instead at least 1 GOOD build compiler (the 
version) on a supported platform, in addition to the broken ones.

And, is there a way to check whether a current LLVM build is miscompiled 
or not, by running some simple tests or scripts?

Any suggestion(s)?

Thank you


On 6/2/2010 5:28 PM, Anton Korobeynikov wrote:
> opt -load Release/lib/Hello.dll -hello < ./hello.bc > /dev/null
>> opt.exe: Unknown command line argument '-hello'.  Try:
>> Could somebody give me a hint?
> Loadable modules (e.g. passes) are not supported on windows. And will
> probably never be.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100602/8ce063c3/attachment.html>

More information about the llvm-dev mailing list