<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/78617>78617</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[MinGW] ld.lld: error: undefined symbol when use CSPGO
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Andarwinux
</td>
</tr>
</table>
<pre>
```
x86_64-w64-mingw32-clang -fcs-profile-generate test.c
ld.lld: error: undefined symbol: __llvm_profile_filename
>>> referenced by libclang_rt.profile-x86_64.a(InstrProfilingFile.c.obj):(.refptr.__llvm_profile_filename)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
llvm-mingw nightly
test.c is any c file
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMkkGrnD4UxT9N3FwMJjqaWbiY___VRxelD7roUmJy1bzG5JHENzPfvqjTlhYKhRDlwr3nl3OPjNFMDrElp__I6SmTa5p9aC9Oy3A1br1lg9f3ltTF4xRPpLjcRN3XVX6tq3wxbrqWPFdWugnyUcX8LfjRWMwndBhkQkgYE1VH63FbTa3VpLwAhuDD9rM6jaNxqCHel8Hbrdb31r4v_WNgv11OLviYVH44DgQcMaBTqGG4gzXDDtOHRH-gHMBUEi4-upjCy143buqMRaqoH14JP5PyQrigAce3FOjfxPn50N9FfnuCNe4bBlB-WaTTMEpjUcPVpBnwZhIorxEYEC7WiJC_Q_IQEcG4d69kMt79HP6H4RvJYTU4M83J3o_64SyYCNLdQcEGmem21OfyLDNsWVOc6qJhTGRzq4WoVSkrySrZoBqkYmWjWFmPQy3ZeMpMywteFYwJdq5OrKSNUGVRcT3UWqDWglQFLtJYuvFQH6bMxLhi24iaNZmVA9q4J4nzbb2cb5EK7U4_rFMkVWFNTPFXfzLJ7uH7ZNzzV3J6gn-IBlxndLB5-P-Xl-fP2RpsO6f0FvcFdoR3k0nzOlDlF8K7Tezx2bL5iioR3u3kkfBuh_8eAAD__4N2-P4">