<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/125782>125782</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang + NVPTX reports `ptxas fatal : Unresolved extern function '__assert_fail'`
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
clellsolomon
</td>
</tr>
</table>
<pre>
I'm getting the following error when compiling a file without `-DNDEBUG`:
```
ptxas fatal : Unresolved extern function '__assert_fail'
clang++: error: ptxas command failed with exit code 255 (use -v to see invocation)
clang version 21.0.0git (https://github.com/llvm/llvm-project.git d13940ee263ff50b7a71e21424913cc0266bf9d4)
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/projects/eap/users/csolomon/local/install/cos3/venado/clang-trunk/bin
```
I'm using CUDA 12.5 which i understand is marked only partially supported.
The file does compile when `-DNDEBUG` is defined on the compile line.
I cannot (currently) share the reproducer as the source is controlled. I've worked (briefly) at generating a reproducer without success.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykVEuP8ygQ_DX40oqF8SPOwYfMl_VqLqM9zKz2NsLQttnBYPFIMv9-hZ1oH7fVJyEFCF1d1V1t7r2aDGJH6hdSXzIew2xdJzRq7a22izXZYOV390rYcYEJQ1BmgjAjjFZre0sndM46uM1oQNhlVTpdchiVRripMNsYgDT0cHm7_PLy8StpKCnPhJ7TZl_0vIY79zDywDUAkPIMH8aht_qKEvAe0BkYoxFBWQOEHT8_uffowufIlSbsSOhZaG4mwl7SKs87q7TZoYVdFm4kpPcoN16AdxVAWInA6hoIa6NHOFwhWPCIoMzVCp4yEnZ6JoArOp9IsCKnOZ1USIFzCKtPqlhPWD-pMMchF3YhrNf6-vw5rM7-iSLkKUoW5amiiKwpx7Gmw5EfC2RFxapTUQpBWdMM40lWe-537iYMSQ7nTsxNdYjmy9ibOWhl4v0wmZhezQ65hMVK1Jt069Wd0POr8YFrjfKitpIQ1kfvCOsfhDxhPfJ1u0aXTuLR_cTcCq4J69UOkv60viSsv6Lh0qZzKswhuGi-COsHZf7T3MRg80_0yRo_Pi5nKFhew21WYgYF0Uh0PqT-KA8Ld18owRr9DSt3QXGtv8HHdbUuoMx3xPfkwWQxadE_jIe7C_9ttgQpcVRmw9y8-3ytlcEHHLyC4MbYrZ0iOocm6G_CTuBn7nALc7g6K6NAB9xvN95GJzBlENYEZ1ONc4Ck9opws5sQwtrBKRx3OB5gQoOOh31M_gH6HBYfhUDv80x2pTyVJ55hVxzL9ljQtq6yuavLsR3lUImh5mU5YCvasuQDH6qCsWKkmeoYZTVltGJlURVVXjRtM1ZY12PLUSAjFcWFK50nX-bWTZnyPmJXsPrYskzzAbV_fhVct7l3iJMnFdXKB_93XFBBY_djmw3CXuDt99_e_0iqrAs-teKnR7uhWXS6-38zlgybFCUzP0RdO_ZXAAAA__9elZ19">