#1142932 nvidia-cuda-toolkit-gcc: depends on gcc-13

#1142932#5
Date:
2026-07-28 10:54:16 UTC
From:
To:
Hi,

nvidia-cuda-toolkit depends on gcc-13, which won't be shipped in forky.
Please update to 15 or 16, or ideally use the default version (currently
GCC 15).

Cheers,
Emilio

#1142932#10
Date:
2026-08-05 23:55:23 UTC
From:
To:
Hi Emilio,

CUDA's 12.4 nvcc refuses anything newer than gcc-13.  crt/host_config.h:143:

  #if __GNUC__ > 13
  #error -- unsupported GNU version! gcc versions later than 13 are not
  supported! ...
  #endif

You could probably patch it out or overwrite it
by defining __NV_NO_HOST_COMPILER_CHECK
but it is not recommended by upstream.

The minimal valid configuration to fix the bug is probably driver 580
and CUDA 12.9 (with gcc-14 support).
To be safe, I would go with driver 580 and CUDA 13.0 (with gcc-15
support). Pre-Turing GPUs still run on 580, but CUDA 13.0 dropped
compilation support.
But Forky should probably ship something newer (e.g. To better support
local AIs etc ...)

Best
-Dominique