<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70126>70126</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LLD] --why-extract does not print anything on linker errors
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lld
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PiJoules
</td>
</tr>
</table>
<pre>
Locally I'm running into a duplicate symbol error for a separate reason, but LLD will only print why object files are extracted with --why-extract but only if the link invocation succeeds. I would expect it to still print stuff even on duplicate symbol errors.
TODO: Come up with a minimal reproducer.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ksGO2yAQhp8GX0axMHbizcGH7VqRtoq0PfQFMIxjWsxYMGzWb1_ZiVSpUi8gwfDPz_ePTsndAmInjt_EsS905oli98N9p-wxFQPZtbuS0d6v8C5UO0PMIbhwAxeYQIPNi3dGM0Ja54E8YIwUYaQIGhIuOm53EXWiINQbDJnheu3h7rwHCn6FJbrAcJ9WoOEXGobReUygIwJ-cdSG0cLd8QSHw31aD8_DXWkXcCPwhOBd-A0ufJLR7ChAysYg2lTCO9wpewv4tWz6joEJEm8OHs0T53EE_MQAFP7zpVQK2Qv5-lh_fvQfon6FN5oR8vLwp2F2wc3aQ8Qlks0GY1nYrrbn-qwL7KrT-aV6qU6qLqaubVGea1vJ4VQdLSpjGi1lo6U6ts1W4jolVV1J1ahKtrIua43Vy9jWaqyGQRoUjcRZO196_zmXFG-FSylj18pKnQqvB_RpT1Yp761Qaos4dlv1Yci3JBrpXeL09z079vswXK-9OPb_ELeECQLxk5oOK0_bKFDY4WN8kipy9N3EvCRRvwp1EepyczzloTQ0C3XZ2j23wxJpC12oy-49CXXZ7f8JAAD__2Jh4Dw">