🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Giacomo Mulas Tue, 10 Nov 2026 15:40
Bug#1153637: nvidia-cuda-toolkit: nvcc on debian sid hangs forever on a single line compile
#4026
Author: Giacomo Mulas
Date: Tue, 10 Nov 2026 15:40
68 lines
5419 bytes
Package: nvidia-cuda-toolkit
Version: 12.4.131~12.4.1-8.2+b1
Severity: normal

Dear Maintainer,

I was trying to compile a local version of libelpa with gpu support, but the
compilation blocked forever, with 100% cpu usage, on some .cu files.
Upon investigating, I found out that a single line suffices to reproduce the bug:

$ printf '#include <complex.h>\n' > c1.cu
$ nvcc -arch sm_75 -c c1.cu          # compiler backend chosen by Debian default = gcc-13: cicc hung at 100% cpu forever
$ nvcc -arch sm_75 -ccbin g++-12 -c c1.cu   # 2 s, OK

it is cicc that hangs, cudafe++ and gcc-13 preprocessing go through
also #include "/usr/include/complex.h" causes the same hung cicc, whereas
<complex> alone compiles, as well as <complex.h> compiled with 
-D__STRICT_ANSI__

The difference appears to be that bits/floatn.h e bits/floatn-common.h 
do not define any more typedef _Float32/_Float64/_Float32x , assuming 
they are native in the compiler. Apparently they are not in cicc, even if 
it declares itself to be gcc 13.5

While this is not critical (other sources compile without problems), it 
is a real problem, and should be assessed or, at the very least, 
documented, explaining how to work around it.

Thanks, best regards
Giacomo Mulas


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (401, 'unstable'), (10, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 7.2.15+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nvidia-cuda-toolkit depends on:
ii  clang                            1:21.1.8-74
ii  g++-11                           11.5.0-13
ii  g++-12                           12.5.0-11
ii  g++-13                           13.5.0-4
ii  libc6                            2.43-7
ii  libgcc-s1                        16.2.0-4
ii  libstdc++6                       16.2.0-4
ii  nvidia-cuda-dev                  12.4.127~12.4.1-8.2+b1
ii  nvidia-profiler                  12.4.127~12.4.1-8.2+b1
ii  ocl-icd-opencl-dev [opencl-dev]  2.3.4-1+b1

Versions of packages nvidia-cuda-toolkit recommends:
ii  nsight-compute           2024.1.1.4~12.4.1-8.2+b1
ii  nsight-systems           2023.4.4.54~12.4.1-8.2+b1
ii  nvidia-cuda-gdb          12.4.127~12.4.1-8.2+b1
ii  nvidia-cuda-toolkit-doc  12.4.1-8.2

Versions of packages nvidia-cuda-toolkit suggests:
ii  nvidia-driver  550.163.01-6

-- no debconf information
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads