Xpra: Ticket #1800: CUDA build errors with GCC 8

Similar to #1600, here's the new error:

found gcc version: 8.0.1
found CUDA compiler: /usr/local/cuda/bin/nvcc version 9.1.85
CUDA compiling ARGB_to_NV12     (no file)
 '/usr/local/cuda/bin/nvcc' '-fatbin' \
    '-c' 'xpra/codecs/cuda_common/ARGB_to_NV12.cu' \
    '-o' 'xpra/codecs/cuda_common/ARGB_to_NV12.fatbin' \
    '-std=c++11' \
    '-gencode=arch=compute_30,code=sm_30' \
    '-gencode=arch=compute_35,code=sm_35' \
    '-gencode=arch=compute_50,code=sm_50' \
    '-gencode=arch=compute_52,code=sm_52' \
    '-gencode=arch=compute_53,code=sm_53' \
    '-gencode=arch=compute_60,code=sm_60' \
    '-gencode=arch=compute_61,code=sm_61' \
    '-gencode=arch=compute_62,code=sm_62' \
    '-gencode=arch=compute_70,code=sm_70'
Error: failed to compile CUDA kernel ARGB_to_NV12
/usr/include/c++/8/type_traits(1061): error: type name is not allowed
/usr/include/c++/8/type_traits(1061): error: type name is not allowed
/usr/include/c++/8/type_traits(1061): error: identifier "__is_assignable" is undefined
3 errors detected in the compilation of "/tmp/tmpxft_00001aee_00000000-14_ARGB_to_NV12.compute_70.cpp1.ii".
error: Bad exit status from /var/tmp/rpm-tmp.F9Iw1o (%build)


Mon, 02 Apr 2018 14:03:25 GMT - Antoine Martin: status, description changed


Mon, 02 Apr 2018 15:03:09 GMT - Antoine Martin: priority, summary changed

Raising, also affects Fedora 28.


Sat, 28 Apr 2018 13:22:16 GMT - Antoine Martin:

CUDA Compilers compatibility matrix, clang 6 supports CUDA 9 but not 9.1


Mon, 30 Apr 2018 07:00:35 GMT - Antoine Martin:

Build workaround in r19119 + r19120 (+fixups in r19121 + r19122): we can keep the compiled binary kernels in the source tree by excluding them from the build clean command, so Fedora 28 and later can re-use pre-compiled kernels generated using Fedora 27.


Mon, 07 May 2018 05:37:56 GMT - Antoine Martin: milestone changed


Thu, 21 Jun 2018 10:24:07 GMT - Antoine Martin: status changed; resolution set

Workaround in r19685: switch to C++ 03 instead of C++ 11... (found some hints there: https://negativo17.org/nvidia-driver/)


Thu, 21 Jun 2018 11:51:29 GMT - Antoine Martin: summary changed


Sat, 23 Jan 2021 05:34:07 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1800