[llvm-bugs] [Bug 51394] New: [llvm-profdata] nodeduplicate has been violated!

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 6 15:41:28 PDT 2021


            Bug ID: 51394
           Summary: [llvm-profdata] nodeduplicate has been violated!
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Miscellaneous Instrumentation passes
          Assignee: unassignedbugs at nondot.org
          Reporter: Wolfgang_Pieb at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org

we get the error in the subject line with -flto -fprofile-instr-generate:

__attribute__((weak)) void f(){};

int main(){}

> clang -flto -fprofile-instr-generate -c 1.cpp -o 1.o
> clang -flto -fprofile-instr-generate -c 2.cpp -o 2.o
> llvm-link -o a.o 1.o 1.o 2.o

error: Linking COMDATs named '__profc__Z1fv': nodeduplicate has been violated!

This is a reduction from a large application (game) from one of our licensees.
Not using LTO works fine.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210806/57547888/attachment.html>

More information about the llvm-bugs mailing list