<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84167>84167</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-18: -ffat-lto-objects gives multiple definition of `.str.llvm.0'
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
stsp
</td>
</tr>
</table>
<pre>
I made the bug reproducer.
Please do the following:
1. git clone https://github.com/dosemu2/fdpp.git
2. cd fdpp
3. git checkout lto-bug
4. ./bug.sh
Build process ending with:
/usr/bin/ld: /tmp/lto-llvm-00e3b8.o:(.rodata.str1.1+0x70): multiple definition of `.str.2.llvm.0'; /tmp/lto-llvm-98e51f.o:(.rodata.str1.1+0x5b): first defined here
Removing -ffat-lto-objects avoids the
problem, but unfortunately rpmbuild
in fedora forces this option.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUsuOnDAQ_BpzaY1l2gMMBw47WSHlFuUPDG7AicHIj9ns30eGVbJKos0FZHe5qqu6VQhm3og6Vt1Z9VyoFBfnuxDDXgxOv3afYVWaIC4EQ5rB0-6dTiN5zsQzE09fLKlAoN0BmZy17sVsM5NPZ_38lhxmE2G0biNYYtxDBmDPsJ9NXNLAR7cy7LULtCZk2E963_ls4vkeOYwa8t15lm98C43fXYpgo7sMaT6LVw6cYT-kmYflfRf3ZKyG3buRQgDatNlmeDFx-aNbhn0KPlOYjWFvNZNPwLCP656P0V2sfawXIUgON-4OKzfunVZR8RB9yUuGd_GjEQzb_HZNNprdEmiazGaicRu4CVgtMpwjz3xcMGyYvP9Dqb1RVU4fKFXDm9JkfIinDGlYyNN7Y19pdY9s-jJNKl4yvxu-0RgDqIczOuQhntDdu8HSyvATDClC2ibnY9pUJPsKfl-HnOUJNRtMpJ1XMDk_UiYxAdyebfJCd1K3slUFdWUj2kYilnWxdLUq66a-jbWsqrZtqxui0M2o22qsK5SiMB0KvAop6lLKuqq5wqmlBsfhSlc5yYpdBa3K2DM95-fChJCou13LuimsGsiGY68RN3qBo8gQ85r77sh1SHNgV2FNiOE3SzTRUjdatc2X8pZT_Tuu2Two_G-uv6ZaJG-7D9Y-A99-l927LMGwPxoODPvD0M8AAAD__9NMJqI">