The Cycles docs on GPU Rendering contain a section on common error messages encountered when attempting to build the CUDA kernel, including the dreaded "Unsupported GNU version!" when an incompatible GCC is used.
Currently the docs recommend editing the CUDA header files to remove CUDA's version protection, which honestly is a bit shocking as a "solution". It's also unnecessary, since Blender supports the CYCLES_CUDA_EXTRA_CFLAGS environment variable which can be used to customize the kernel compilation process.
This patch expands that section with instructions on how to specify an alternate compiler for CUDA kernel compilation, only recommending that the header files be edited as a last resort if that's unsuccessful.