NVIDIA driver 410.57 installation issue for Ubuntu 18.04.3 LTS with GeForce RTX 2080

I am trying to install NVIDIA-Linux-x86_64-410.57.run

Complete log is here.

Please guide me on how to install driver.

[code]
nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Mon Nov 18 12:40:44 2019
installer version: 410.57

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

nvidia-installer command line:
./nvidia-installer
–no-x-check

Unable to load: nvidia-installer ncurses v6 user interface

Using: nvidia-installer ncurses user interface
-> Detected 36 CPUs online; setting concurrency level to 32.
-> Installing NVIDIA driver version 410.57.
-> Running distribution scripts
executing: ‘/usr/lib/nvidia/pre-install’…
-> done.
-> The distribution-provided pre-install script failed! Are you sure you want to continue? (Answer: Continue installation)
-> Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later. (Answer: No)
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: ‘/lib/modules/5.0.0-32-generic/build’
-> Kernel output path: ‘/lib/modules/5.0.0-32-generic/build’
-> Performing Compiler check.
-> Performing Dom0 check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Performing vgpu_kvm check.
-> Cleaning kernel module build directory.
executing: ‘cd ./kernel; /usr/bin/make -k -j32 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.0.0-32-generic/build" SYSOUT="/lib/modules/5.0.0-32-generic/build"’…
rm -f -r conftest
make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-32-generic’
make[1]: Leaving directory ‘/usr/src/linux-headers-5.0.0-32-generic’
-> Building kernel modules
executing: ‘cd ./kernel; /usr/bin/make -k -j32 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.0.0-32-generic/build" SYSOUT="/lib/modules/5.0.0-32-generic/build"’…
make[1]: Entering directory ‘/usr/src/linux-headers-5.0.0-32-generic’
SYMLINK /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia-modeset/nv-modeset-kernel.o
CONFTEST: INIT_WORK
CONFTEST: remap_pfn_range
CONFTEST: hash__remap_4k_pfn
CONFTEST: follow_pfn
CONFTEST: vmap
CONFTEST: set_pages_uc
CONFTEST: set_memory_uc
CONFTEST: set_memory_array_uc
CONFTEST: change_page_attr
CONFTEST: pci_get_class
CONFTEST: pci_choose_state
CONFTEST: vm_insert_page
CONFTEST: acpi_device_id
CONFTEST: acquire_console_sem
CONFTEST: kmem_cache_create
CONFTEST: console_lock
CONFTEST: on_each_cpu
CONFTEST: acpi_evaluate_integer
CONFTEST: smp_call_function
CONFTEST: ioremap_cache
CONFTEST: ioremap_wc
CONFTEST: acpi_walk_namespace
CONFTEST: pci_dma_mapping_error
CONFTEST: pci_domain_nr
CONFTEST: sg_alloc_table
CONFTEST: sg_init_table
CONFTEST: get_num_physpages
CONFTEST: pci_get_domain_bus_and_slot
CONFTEST: proc_create_data
CONFTEST: efi_enabled
CONFTEST: pde_data
CONFTEST: pm_vt_switch_required
CONFTEST: proc_remove
CONFTEST: xen_ioemu_inject_msi
CONFTEST: phys_to_dma
CONFTEST: get_dma_ops
CONFTEST: write_cr4
CONFTEST: of_get_property
CONFTEST: of_find_node_by_phandle
CONFTEST: of_node_to_nid
CONFTEST: of_get_ibm_chip_id
CONFTEST: pnv_pci_get_npu_dev
CONFTEST: for_each_online_node
CONFTEST: node_end_pfn
CONFTEST: pci_bus_address
CONFTEST: pci_stop_and_remove_bus_device
CONFTEST: pci_remove_bus_device
CONFTEST: request_threaded_irq
CONFTEST: cpuhp_setup_state
CONFTEST: dma_map_resource
CONFTEST: register_cpu_notifier
CONFTEST: backlight_device_register
CONFTEST: register_acpi_notifier
CONFTEST: timer_setup
CONFTEST: pci_enable_msix_range
CONFTEST: remap_page_range
CONFTEST: address_space_init_once
CONFTEST: kbasename
CONFTEST: fatal_signal_pending
CONFTEST: list_cut_position
CONFTEST: vzalloc
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: bitmap_clear
CONFTEST: usleep_range
CONFTEST: radix_tree_empty
CONFTEST: radix_tree_replace_slot
CONFTEST: pnv_npu2_init_context
CONFTEST: drm_dev_unref
CONFTEST: drm_reinit_primary_mode_group
CONFTEST: drm_atomic_set_mode_for_crtc
CONFTEST: get_user_pages_remote
CONFTEST: get_user_pages
CONFTEST: drm_atomic_clean_old_fb
CONFTEST: drm_gem_object_lookup
CONFTEST: drm_atomic_state_free
CONFTEST: drm_driver_has_gem_prime_res_obj
CONFTEST: drm_atomic_helper_disable_all
CONFTEST: drm_atomic_helper_set_config
CONFTEST: drm_atomic_helper_connector_dpms
CONFTEST: drm_connector_funcs_have_mode_in_name
CONFTEST: is_export_symbol_gpl_of_node_to_nid
CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
CONFTEST: i2c_adapter
CONFTEST: pm_message_t
CONFTEST: irq_handler_t
CONFTEST: acpi_device_ops
CONFTEST: outer_flush_all
CONFTEST: proc_dir_entry
CONFTEST: acpi_op_remove
CONFTEST: scatterlist
CONFTEST: sg_table
CONFTEST: file_operations
CONFTEST: vm_operations_struct
CONFTEST: atomic_long_type
CONFTEST: pci_save_state
CONFTEST: file_inode
CONFTEST: kuid_t
CONFTEST: task_struct
CONFTEST: dma_ops
CONFTEST: dma_map_ops
CONFTEST: noncoherent_swiotlb_dma_ops
CONFTEST: vm_fault_present
CONFTEST: vm_fault_has_address
CONFTEST: backlight_properties_type
CONFTEST: fault_flags
CONFTEST: atomic64_type
CONFTEST: backing_dev_info
CONFTEST: address_space
CONFTEST: mm_context_t
CONFTEST: vm_ops_fault_removed_vma_arg
CONFTEST: drm_bus_has_get_irq
CONFTEST: drm_bus_present
CONFTEST: drm_bus_has_bus_type
CONFTEST: drm_bus_has_get_name
CONFTEST: drm_driver_has_legacy_dev_list
CONFTEST: drm_crtc_state_has_connectors_changed
CONFTEST: drm_driver_has_set_busid
CONFTEST: drm_init_function_args
CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
CONFTEST: drm_helper_mode_fill_fb_struct
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_driver_unload_has_int_return_type
CONFTEST: kref_has_refcount_of_type_refcount_t
CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
CONFTEST: drm_old_atomic_state_iterators_present
CONFTEST: drm_mode_object_find_has_file_priv_arg
CONFTEST: dma_buf_owner
CONFTEST: dom0_kernel_present
CONFTEST: nvidia_vgpu_kvm_build
CONFTEST: nvidia_grid_build
CONFTEST: drm_available
CONFTEST: drm_atomic_available
CONFTEST: drm_atomic_modeset_nonblocking_commit_available
CONFTEST: is_export_symbol_gpl_refcount_inc
CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-acpi.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-chrdev.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-cray.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-dma.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-gvi.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-i2c.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-mempool.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-p2p.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-procfs.o
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.c:13:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.c:13:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.c:13:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)"f-"b_replacement(num)“f”
^
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-usermap.o
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
In file included from ./arch/x86/include/asm/bitops.h:503:0,
from ./include/linux/bitops.h:19,
from ./include/linux/kernel.h:11,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.c:13:
./arch/x86/include/asm/arch_hweight.h:22:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
./arch/x86/include/asm/arch_hweight.h:50:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.c:13:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.c:13:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.c:13:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)“f-“b_replacement(num)“f”
^
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
In file included from ./arch/x86/include/asm/preempt.h:6:0,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-frontend.c:13:
./arch/x86/include/asm/percpu.h:49:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define __percpu_prefix “%%”__stringify(__percpu_seg)”:”
^
./arch/x86/include/asm/percpu.h:100:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “b %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:105:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “w %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:110:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “l %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:115:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “q %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:141:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incb "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:143:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decb "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:145:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addb %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:151:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incw "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:153:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decw "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:155:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addw %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:161:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incl "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:163:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decl "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:165:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addl %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:171:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incq "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:173:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decq "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:175:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addq %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:188:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “b “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:193:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “w “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:198:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “l “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:203:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “q “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:217:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “b “__percpu_arg(P1)”,%0”
^
./arch/x86/include/asm/percpu.h:222:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “w “__percpu_arg(P1)”,%0”
^
./arch/x86/include/asm/percpu.h:227:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “l “__percpu_arg(P1)”,%0”
^
./arch/x86/include/asm/percpu.h:232:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “q “__percpu_arg(P1)”,%0”
^
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-pci.o
./arch/x86/include/asm/percpu.h:245:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "b "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:249:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "w "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:253:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "l "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:257:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "q "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:272:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("xaddb %0, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:277:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("xaddw %0, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:282:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("xaddl %0, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:287:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(“xaddq %0, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:308:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%al”
^
./arch/x86/include/asm/percpu.h:309:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
“\n1:\tcmpxchgb %2, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:316:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%ax”
^
./arch/x86/include/asm/percpu.h:317:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
“\n1:\tcmpxchgw %2, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:324:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%eax”
^
./arch/x86/include/asm/percpu.h:325:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
“\n1:\tcmpxchgl %2, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:332:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%rax”
^
./arch/x86/include/asm/percpu.h:333:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"\n1:\tcmpxchgq %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:355:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgb %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:361:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgw %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:367:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgl %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:373:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgq %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:453:15: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile("cmpxchg8b "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:530:15: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(“btl “__percpu_arg(2)”,%1”
^
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-vm.o
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv.c:14:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
In file included from ./arch/x86/include/asm/bitops.h:503:0,
from ./include/linux/bitops.h:19,
from ./include/linux/kernel.h:11,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.c:13:
./arch/x86/include/asm/arch_hweight.h:22:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
./arch/x86/include/asm/arch_hweight.h:50:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv.c:14:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-chrdev.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-mlock.o
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-chrdev.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wno-pointer-sign’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-std=gnu90’ is valid for C/ObjC but not for C++
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-acpi.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv.c:14:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)"f-"b_replacement(num)“f”
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-acpi.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-chrdev.c:15:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)"f-"b_replacement(num)“f”
^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-acpi.c:15:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)“f-“b_replacement(num)“f”
^
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-modeset-interface.o
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-p2p.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
In file included from ./arch/x86/include/asm/preempt.h:6:0,
from ./include/linux/preempt.h:78,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-instance.c:13:
./arch/x86/include/asm/percpu.h:49:26: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define __percpu_prefix “%%”__stringify(__percpu_seg)”:”
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:100:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “b %1,”__percpu_arg(0)
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:105:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “w %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:110:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “l %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:115:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “q %1,”__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:141:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incb "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:143:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decb "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:145:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addb %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:151:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incw "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:153:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decw "__percpu_arg(0) : “+m” (var));
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-p2p.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:155:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addw %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:161:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incl "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:163:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decl "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:165:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addl %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:171:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("incq "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:173:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("decq "__percpu_arg(0) : “+m” (var));
^
./arch/x86/include/asm/percpu.h:175:8: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("addq %1, "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:188:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “b “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:193:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “w “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:198:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “l “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:203:19: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(op “q “__percpu_arg(1)”,%0”
^
./arch/x86/include/asm/percpu.h:217:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “b “__percpu_arg(P1)”,%0”
^
./arch/x86/include/asm/percpu.h:222:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “w “__percpu_arg(P1)”,%0”
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-gvi.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:227:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “l “__percpu_arg(P1)”,%0”
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:232:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op “q “__percpu_arg(P1)”,%0”
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:245:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "b "__percpu_arg(0)
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:249:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "w "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:253:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "l "__percpu_arg(0)
^
./arch/x86/include/asm/percpu.h:257:10: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(op "q "__percpu_arg(0)
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:272:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("xaddb %0, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:277:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("xaddw %0, "__percpu_arg(1)
^
In file included from ./arch/x86/include/asm/bitops.h:503:0,
from ./include/linux/bitops.h:19,
from ./include/linux/kernel.h:11,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv.c:14:
./arch/x86/include/asm/arch_hweight.h:22:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
./arch/x86/include/asm/percpu.h:282:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("xaddl %0, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:287:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(“xaddq %0, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:308:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%al”
^
./arch/x86/include/asm/percpu.h:309:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
“\n1:\tcmpxchgb %2, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:316:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%ax”
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-gvi.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:317:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"\n1:\tcmpxchgw %2, "__percpu_arg(1)
^
./arch/x86/include/asm/arch_hweight.h:50:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: “=“REG_OUT (res)
^
./arch/x86/include/asm/percpu.h:324:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%eax”
^
./arch/x86/include/asm/percpu.h:325:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
“\n1:\tcmpxchgl %2, “__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:332:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm(”\n\tmov “__percpu_arg(1)”,%%rax”
^
./arch/x86/include/asm/percpu.h:333:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
"\n1:\tcmpxchgq %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:355:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgb %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:361:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgw %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:367:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgl %2, "__percpu_arg(1)
^
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-pci-table.o
./arch/x86/include/asm/percpu.h:373:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm("cmpxchgq %2, "__percpu_arg(1)
^
./arch/x86/include/asm/percpu.h:453:15: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile("cmpxchg8b "__percpu_arg(1)
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:5:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-cray.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:14:2: error: #error kmem_cache_create() conftest failed!
#error kmem_cache_create() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:15:2: error: #error on_each_cpu() conftest failed!
#error on_each_cpu() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:16:2: error: #error smp_call_function() conftest failed!
#error smp_call_function() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:21:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:23:2: error: #error pci_dma_mapping_error() conftest failed!
#error pci_dma_mapping_error() conftest failed!
^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:60:2: error: #error wait_on_bit_lock() conftest failed!
#error wait_on_bit_lock() conftest failed!
^~~~~
./arch/x86/include/asm/percpu.h:530:15: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
asm volatile(“btl “__percpu_arg(2)”,%1”
^
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/functions.h:65:2: error: #error radix_tree_replace_slot() conftest failed!
#error radix_tree_replace_slot() conftest failed!
^~~~~
In file included from ./arch/x86/include/asm/bitops.h:503:0,
from ./include/linux/bitops.h:19,
from ./include/linux/kernel.h:11,
from ./include/linux/list.h:9,
from ./include/linux/preempt.h:11,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-chrdev.c:15:
./arch/x86/include/asm/arch_hweight.h:22:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-vtophys.o
./arch/x86/include/asm/arch_hweight.h:50:7: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
: "="REG_OUT (res)
^
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/conftest.h:7:0,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:17,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-cray.c:15:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/conftest/macros.h:1:2: error: #error INIT_WORK() conftest failed!
#error INIT_WORK() conftest failed!
^~~~~
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-p2p.c:15:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)"f-"b_replacement(num)“f”
^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-gvi.c:15:
./arch/x86/include/asm/alternative.h:95:42: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
#define alt_rlen(num) e_replacement(num)"f-"b_replacement(num)“f”
^
In file included from ./arch/x86/include/asm/barrier.h:5:0,
from ./include/linux/compiler.h:250,
from ./include/linux/export.h:45,
from ./include/linux/linkage.h:7,
from ./include/linux/preempt.h:10,
from ./include/linux/spinlock.h:51,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nv-cray.c:15:
./arch/x86/include/asm/alternative.h:95:42: wa

last few lines from log:

In file included from ./include/uapi/linux/posix_types.h:5:0,
                 from ./include/uapi/linux/types.h:14,
                 from ./include/linux/types.h:6,
                 from ./include/linux/proc_fs.h:8,
                 from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-procfs.h:16,
                 from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.c:26:
./include/linux/stddef.h:11:2: error: expected identifier before ‘false’
  false = 0,
  ^~~~~
./include/linux/stddef.h:11:2: error: expected ‘}’ before ‘false’
./include/linux/stddef.h:11:2: error: expected unqualified-id before ‘false’
./include/linux/stddef.h:13:1: error: expected declaration before ‘}’ token
 };
 ^
cc1plus: some warnings being treated as errors
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c:30:0:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:348:2: error: #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
 #error "NV_PCI_DMA_MAPPING_ERROR() undefined!"
  ^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:352:6: error: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined, evaluates to 0 [-Werror=undef]
 #if (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 6)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:354:8: error: "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT" is not defined, evaluates to 0 [-Werror=undef]
 #elif (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 7)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:360:2: error: #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
 #error "NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!"
  ^~~~~
scripts/Makefile.build:284: recipe for target '/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o' failed
make[2]: *** [/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/linux_nvswitch.o] Error 1
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c:30:0:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:693:2: error: #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
 #error "NV_SMP_CALL_FUNCTION() undefined (smp_call_function() unavailable)!"
  ^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:720:2: error: #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
 #error "NV_ON_EACH_CPU() undefined (on_each_cpu() unavailable)!"
  ^~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:1108:6: error: "NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT" is not defined, evaluates to 0 [-Werror=undef]
 #if (NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT == 5)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:1429:6: error: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined, evaluates to 0 [-Werror=undef]
 #if (NV_INIT_WORK_ARGUMENT_COUNT == 2)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:1439:8: error: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined, evaluates to 0 [-Werror=undef]
 #elif (NV_INIT_WORK_ARGUMENT_COUNT == 3)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:1449:2: error: #error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
 #error "NV_INIT_WORK_ARGUMENT_COUNT value unrecognized!"
  ^~~~~
In file included from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-linux.h:1741:0,
                 from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c:30:
/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/common/inc/nv-proto.h:25:6: error: "NV_INIT_WORK_ARGUMENT_COUNT" is not defined, evaluates to 0 [-Werror=undef]
 #if (NV_INIT_WORK_ARGUMENT_COUNT == 3)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ./include/uapi/linux/posix_types.h:5:0,
                 from ./include/uapi/linux/types.h:14,
                 from ./include/linux/compiler.h:174,
                 from ./include/linux/init.h:5,
                 from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.h:30,
                 from /tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.c:27:
./include/linux/stddef.h:11:2: error: expected identifier before ‘false’
  false = 0,
  ^~~~~
./include/linux/stddef.h:11:2: error: expected ‘}’ before ‘false’
./include/linux/stddef.h:11:2: error: expected unqualified-id before ‘false’
./include/linux/stddef.h:13:1: error: expected declaration before ‘}’ token
 };
 ^
cc1plus: some warnings being treated as errors
scripts/Makefile.build:284: recipe for target '/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o' failed
make[2]: *** [/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel/nvidia/nvlink_linux.o] Error 1
make[2]: Target '__build' not remade because of errors.
Makefile:1614: recipe for target '_module_/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel' failed
make[1]: *** [_module_/tmp/selfgz17289/NVIDIA-Linux-x86_64-410.57/kernel] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-32-generic'
Makefile:79: recipe for target 'modules' failed
make: *** [modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed.  Please see the file '/var/log/nvidia-installer.log' for details.  You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Please uninstall the .run nstaller driver by calling it with the --uninstall option, the install the repo driver using the Software&Updates application.
The 410 driver is outdated and incompatible with current kernels.