Michael Kruse via llvm-dev
2018-Jun-01 17:32 UTC
[llvm-dev] Miscompilation while switching from clang-4 to clang-5
2018-06-01 2:06 GMT-05:00 Alex Denisov <1101.debian at gmail.com>:> If there are any other hints: send them my way :)Debug with gdb, but a breakpoint at https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/Utils/SymbolRewriter.cpp#L91. It should hit twice (which is the error reported). At each break you can look at where the machine code is coming from (e.g. a shared object), and which static analyzer calls it. Michael
Alex Denisov via llvm-dev
2018-Jun-04 09:42 UTC
[llvm-dev] Miscompilation while switching from clang-4 to clang-5
Thank you, everyone, for the help. As a followup: I tried to svn-bisect and find the place where the change was introduced, but I cannot find a good commit: whenever I use clang built from sources I see the same problem "CommandLine Error" as with clang-5. I am sure that the very specific is in our build system setup, but I am still curious where the difference comes from. I may do another debugging round, but not sure if I am ready to invest more time into it. Cheers, Alex. -- AlexDenisov Software Engineer, https://lowlevelbits.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 484 bytes Desc: Message signed with OpenPGP URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180604/86861566/attachment.sig>
Michael Kruse via llvm-dev
2018-Jun-04 13:58 UTC
[llvm-dev] Miscompilation while switching from clang-4 to clang-5
2018-06-04 4:42 GMT-05:00 Alex Denisov <1101.debian at gmail.com>:> Thank you, everyone, for the help. > > As a followup: > I tried to svn-bisect and find the place where the change was introduced, but I cannot find a good commit: whenever I use clang built from sources I see the same problem "CommandLine Error" as with clang-5. > I am sure that the very specific is in our build system setup, but I am still curious where the difference comes from. > I may do another debugging round, but not sure if I am ready to invest more time into it.I'd assume this has more to do with your system's configuration. Be sure to have just a single compiled LLVM on your system (e.g. remove your distribution's llvm package etc). Did you try on another system? Michael