[llvm-dev] Miscompilation while switching from clang-4 to clang-5

Tom Stellard via llvm-dev llvm-dev at lists.llvm.org
Wed May 30 14:59:29 PDT 2018


On 05/30/2018 02:39 PM, Alex Denisov via llvm-dev wrote:
> Hello everyone,
> 
> I observe a weird behavior switching from clang-4 to clang-5 (and any higher version).
> I compile an executable that depends on LLVM. Everything works fine with clang-4, but when I run the executable compiled with clang-5 I see the following error:
> : CommandLine Error: Option 'rewrite-map-file' registered more than once!
> LLVM ERROR: inconsistency in registered CommandLine options
> 

This usually indicates an issue with how you link your application.
Two causes of this would be your application is linked against 2 different
versions of LLVM or your are linking against the llvm static libraries and
also libLLVM.so.

-Tom

> I want to debug the problem, but don't even know where to start.
> I am happy to provide more info if anyone wants to participate.
> 
> I would appreciate any hints.
> 
> Thank you.
> Alex.
> --
> AlexDenisov
> Software Engineer, https://lowlevelbits.org
> 
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 





More information about the llvm-dev mailing list