[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


https://bugs.llvm.org/show_bug.cgi?id=51394

            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

After
https://github.com/llvm/llvm-project/commit/c24b7a16b1001a8978335183d958fd0aa482c1d9
we get the error in the subject line with -flto -fprofile-instr-generate:

1.cpp:
__attribute__((weak)) void f(){};

2.cpp:
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