search for: registeredoptioncategories

Displaying 5 results from an estimated 5 matches for "registeredoptioncategories".

2016 Feb 15
2
CommandLineParser problems with llvm trunk?
Hi, Recently I started getting some weird errors from multiple tools (on Linux x86-64): λ lld lld: ../lib/Support/CommandLine.cpp:202: void (anonymous namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory *): Assertion `std::count_if(RegisteredOptionCategories.begin(), RegisteredOptionCategories.end(), [cat](const OptionCategory *Category) { return cat->getName() == Category->getName(); }) == 0 && "Duplicate option categories"' failed. [1] 25383 abort (core dumped) lld λ lldb-server : CommandLine Error: Option 'debug...
2014 Aug 09
2
[LLVMdev] "Duplicate option categories" assertion triggered loading an LLVM-project
...ists.txt file for the "root" directory is in [3] The CMakeLists.txt file for the "pass" directory is in [4] When I run opt --load=libTest.so I trigger the following assertion: opt: CommandLine.cpp:134: void llvm::cl::OptionCategory::registerCategory(): Assertion `std::count_if(RegisteredOptionCategories->begin(), RegisteredOptionCategories->end(), [this](const OptionCategory *Category) { return getName() == Category->getName(); }) == 0 && "Duplicate option categories"' failed. Note that my pass does not even define any command line option. I am using LLVM 3.5 git f...
2014 Aug 10
2
[LLVMdev] "Duplicate option categories" assertion triggered loading an LLVM-project
...for the "pass" directory is in [4] > > > > When I run opt --load=libTest.so > > I trigger the following assertion: > > > > opt: CommandLine.cpp:134: void > > llvm::cl::OptionCategory::registerCategory(): Assertion > > `std::count_if(RegisteredOptionCategories->begin(), > > RegisteredOptionCategories->end(), [this](const OptionCategory > *Category) > > { return getName() == Category->getName(); }) == 0 && "Duplicate > option > > categories"' failed. > > > > Note that my pass d...
2018 Jul 10
2
custom LLVM Pass with options fails to load
...ass' registered more than once! I narrowed it down to the Core lib but without it I get this opt: /home/qwert/projects/ext/repos/llvm/6.0.0/lib/Support/CommandLine.cpp:281: void (anonymous namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory *): Assertion `count_if(RegisteredOptionCategories, [cat](const OptionCategory *Category) { return cat->getName() == Category->getName(); }) == 0 && "Duplicate option categories"' failed. LLVMSymbolizer: error reading file: No such file or directory #0 0x0000000001d8eea4 (opt+0x1d8eea4) #1 0x0000000001d8f206 (opt+0x1...
2018 Jul 12
2
custom LLVM Pass with options fails to load
...Core lib but without it I get this >> >> opt: >> /home/qwert/projects/ext/repos/llvm/6.0.0/lib/Support/CommandLine.cpp:281: >> >> void (anonymous >> namespace)::CommandLineParser::registerCategory(llvm::cl::OptionCategory >> *): >> Assertion `count_if(RegisteredOptionCategories, [cat](const >> OptionCategory *Category) { return cat->getName() == >> Category->getName(); }) == 0 && "Duplicate option categories"' failed. >> LLVMSymbolizer: error reading file: No such file or directory >> #0 0x0000000001d8eea4 (opt+0x1d8eea4...