Hi! On 2022-12-19T21:40:07+0100, Thomas Schwinge wrote: > As I have reported to Nvidia in 2022-12-01 'NVIDIA Incident Report (3891704): > ptxas: Duplicate declaration error: "cannot be resolved by a '.static'"', > 'ptxas' has an inscrutable error mode for duplicate declarations: > > ptxas softstack-decl-1.o, line 11; error : '.extern' variable '__nvptx_stacks' cannot be resolved by a '.static' > ptxas fatal : Ptx assembly aborted due to errors > nvptx-as: ptxas returned 255 exit status > > ptxas uniform-simt-decl-1.o, line 12; error : '.extern' variable '__nvptx_uni' cannot be resolved by a '.static' > ptxas fatal : Ptx assembly aborted due to errors > nvptx-as: ptxas returned 255 exit status > > This is inscrutable, because (a) what is "cannot be resolved by a '.static'" > supposed to tell me (there is no '.static' in PTX?), and (b) why arent't > repeated declaration just verified to match the first, but otherwise a no-op > (like in other programming languages)? For now pushed to devel/omp/gcc-12 branch in commit ea52f1ca16870e4228f8044588b1bf958d4723b0 "nvptx: Prevent emitting duplicate declarations for '__nvptx_stacks', '__nvptx_uni'", see attached. Grüße Thomas ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955