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

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Wed May 30 14:58:46 PDT 2018


An LLVM library (in this case:
https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/Utils/SymbolRewriter.cpp#L91
from LLVMTransformUtils) is linked into the address space more than
once. For instance, a statically linked and a dynamically linked
version.

Michael


2018-05-30 16:39 GMT-05:00 Alex Denisov via llvm-dev <llvm-dev at lists.llvm.org>:
> 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
>
> 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