xpra icon
Bug tracker and wiki

Opened 8 months ago

Closed 5 months ago

Last modified 5 months ago

#1800 closed defect (worksforme)

CUDA build errors with GCC 8

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: critical Milestone: 2.4
Component: encodings Version: 2.2.x
Keywords: Cc:

Description (last modified by Antoine Martin)

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)

Change History (7)

comment:1 Changed 8 months ago by Antoine Martin

Description: modified (diff)
Status: newassigned

comment:2 Changed 8 months ago by Antoine Martin

Priority: majorcritical
Summary: CUDA build errors with Fedora 29CUDA build errors with Fedora 28

Raising, also affects Fedora 28.

comment:3 Changed 7 months ago by Antoine Martin

Compiling CUDA with clang does not help, because as per CUDA Compilers compatibility matrix, clang 6 supports CUDA 9 but not 9.1

comment:4 Changed 7 months ago by 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.

Last edited 7 months ago by Antoine Martin (previous) (diff)

comment:5 Changed 7 months ago by Antoine Martin

Milestone: 3.02.4

comment:6 Changed 5 months ago by Antoine Martin

Resolution: worksforme
Status: assignedclosed

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

comment:7 Changed 5 months ago by Antoine Martin

Summary: CUDA build errors with Fedora 28CUDA build errors with GCC 8
Note: See TracTickets for help on using tickets.