[llvm-dev] CommandLineParser problems with llvm trunk?
Ismail Donmez via llvm-dev
llvm-dev at lists.llvm.org
Mon Feb 15 09:47:21 PST 2016
On Mon, Feb 15, 2016 at 7:07 PM, Justin Bogner <mail at justinbogner.com> wrote:
>
> On Monday, February 15, 2016, Ismail Donmez via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
>>
>> 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' registered more than once!
>> LLVM ERROR: inconsistency in registered CommandLine options
>
>
> Seems related to llvm.org/pr22952 - the way cl::opt works fundamentally
> doesn't play well with shared libs.
Wow, thats a big blocker for LLVM_BUILD_LLVM_DYLIB, thanks a lot!
ismail
More information about the llvm-dev
mailing list