<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/102965>102965</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Non-terminating dsymutil invocation w/LTO
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dabrahams
</td>
</tr>
</table>
<pre>
Trying to following the bug reporting guidelines for LTO problems yields `ld: unknown options: -plugin-opt=save-temps` so if you want something else from me, please ask.
In [this project](https://github.com/stlab/adobe-contract-checks) at a9d06b8, on MacOS, using g++-14.1.0 as a front end, this command-line
`cmake -Wno-dev -S . -B ./.gcc-build -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=17 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_CXX_COMPILER=g++-14 -Dadobe_contract_checking_ENABLE_CLANG_TIDY=OFF && cmake --build .gcc-build`
Eventually hangs in an invocation of `dsymutil` that never completes. Reporting here because `dsymutil` is an LLVM tool.
If you look at the output of that command, it prints
> warning: could not find referenced DIE
note: while processing /Users/dave/src/adobe-contract-checks/.gcc-build/lib/libgtest_main.a(gtest_main.cc.o)
forever.
This problem is suppressed by disabling LTO (add `-Dadobe_contract_checking_ENABLE_IPO=OFF` to the cmake command line).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyElEtv4zYQxz8NfRlIkCg_DzrYkbUI6sRB4m13TwZFjiRuKFIgKRv-9gVlZ-MUaHvRg8___Oc3w5yTjUbMyWxDZsWEDb41NhessqxlnZtURlzyg71I3YA3UBulzHn8aRGqoQGLvbE-jDSDFKikRge1sbA77KG3plLYObhIVMIBmSdKkGwNg37X5qzB9F4a7cJQ1KuhkToyvSdZ4dgJI49d78g8AWdA1nAxA5yZ9uBMh74Nd6JyCLU1HXRI6AP0CplDYO49JklBkvX1-aiBzDa-lS5I-oXck1lB6L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