<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70132>70132</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
ptxas Optimized debugging not supported
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ajarmusch
</td>
</tr>
</table>
<pre>
I was running `ninja check all` and the offloading/info.c test failed.
The error was `ptxas fatal : Optimized debugging not supported`. ptxas doesn't seem to be able to support the `-gline-tables-only` flag
To reproduce the error
```
llc -O2 reduced.bc -o reduced.bc.s
ptxas -O2 reduced.bc.s
```
reduced.ll:
```
; ModuleID = 'reduced.ll'
source_filename = "reduced.ll"
target datalayout = "e-i64:64-i128:128-v16:16-v32:32-n16:32:64"
target triple = "nvptx64-nvidia-cuda"
!llvm.module.flags = !{!0}
!llvm.dbg.cu = !{!1}
!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = distinct !DICompileUnit(language: DW_LANG_C11, file: !2, producer: "clang version 18.0.0 (https://github.com/llvm/llvm-project.git 3f8e5fd08f33c3e8bce464f3b866dda5210ca943)", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, splitDebugInlining: false, nameTableKind: None)
!2 = !DIFile(filename: "info.c", directory: "/home/users/jarmusch/LIT_CIT/llvm-test-suite-nvidia")
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVVGP6yYT_TXkBdnCg-M4D3nITZRP0be9-7JtH1cYxg5bDBHg3Lv99RXE3pu9qlpViggM5wxnhmEsQtCDRdyR9ReyPq7EFC_O78Sb8OMU5GXVOfW-O9NvIlA_WavtQEnDrLZvgsoLyj-oMIY0jAqraLwgdX1vnFDaDgRO2vaulDRiiLQX2qAqKWFHwvb38eWCFL13Ph9AGnaN30WgvYjCUEoJ39Pna9Sj_hMVVdhNw5AUWBdpmK5X5yMq0rCS3nnKYbAENp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