Template:Building Blender/Linux/Troubleshooting
Troubleshooting
Non-Default Compiler (CUDA Compatibility)
Instructions
At the time of writing NVCC-12 is not compatible with GCC-13, if your distribution uses a newer GCC, and you wish to use Cycles with CUDA, you will need to compile with GCC-12 as well.
Running make
with the following arguments can be used to specify a different compiler version:
make CC=gcc-12 CPP=g++-12 CXX=g++-12 LD=g++-12