Can't use Tesla P100 on Ubuntu 16.04 desktop

Install Ubuntu 16.04 desktop, graphic display works well.
$lspci |grep -i VGA
06:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics Family(rev 30)
$lspci |grep -i nvidia
02:00.0 3D controller: NVIDIA Corporation Device 15f7 (rev a1)

Not sure if the 3D controller is my P100.

$nvidia-detector
none

Then install CUDA 9.1, driver v387 installation failed, change to install v384, installation finished without error.

Reboot after driver installation (both v387 and v384).

Can’t login ubuntu.

Ctrl + Alt + F1 to console, and delete driver installed, reboot.

Can login again.

Please let me know if you have any clue. Thanks.

For cuda 9.1 you need a 387 and up driver. The problem is that the primary graphics is an ASPEED, not nvidia. Unfortunately, for that kind of configuration you can’t use the ubuntu driver package. Instead you have to use the .run installer carefully omitting the opengl files.

<nvidia-driver>.run --no-opengl-files --dkms

Then you will have to take care of driver updates yourself, always use the mentioned options.

Thanks generix,

I tried to install 387 driver embedded in cuda 9.1 run file package. The installation was failed. See log below.

Want to install the latest 390 driver instead. Don’t know where to download the driver run file.

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Sat Mar 24 09:57:10 2018
installer version: 387.26

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

nvidia-installer command line:
./nvidia-installer
–ui=none
–no-questions
–accept-license
–disable-nouveau
–no-opengl-files

Using built-in stream user interface
-> Detected 32 CPUs online; setting concurrency level to 32.
-> License accepted by command line option.
-> Installing NVIDIA driver version 387.26.
-> 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)
WARNING: One or more modprobe configuration files to disable Nouveau are already present at: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf. Please be sure you have rebooted your system since these files were written. If you have rebooted, then Nouveau may be enabled for other reasons, such as being included in the system initial ramdisk or in your X configuration file. Please consult the NVIDIA driver README and your Linux distribution’s documentation for details on how to correctly disable the Nouveau kernel driver.
-> For some distributions, Nouveau can be disabled by adding a file in the modprobe configuration directory. Would you like nvidia-installer to attempt to create this modprobe file for you? (Answer: Yes)
-> One or more modprobe configuration files to disable Nouveau have been written. For some distributions, this may be sufficient to disable Nouveau; other distributions may require modification of the initial ramdisk. Please reboot your system and attempt NVIDIA driver installation again. Note if you later wish to reenable Nouveau, you will need to delete these files: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
-> Performing CC sanity check with CC="/usr/bin/cc".
-> Kernel source path: ‘/lib/modules/4.13.0-37-generic/build’
-> Kernel output path: ‘/lib/modules/4.13.0-37-generic/build’
-> Performing Compiler check.
-> Performing Dom0 check.
-> Performing Xen check.
-> Performing PREEMPT_RT check.
-> Cleaning kernel module build directory.
executing: ‘cd ./kernel; /usr/bin/make -k -j32 clean NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.13.0-37-generic/build" SYSOUT="/lib/modules/4.13.0-37-generic/build"’…
rm -f -r conftest
make[1]: Entering directory ‘/usr/src/linux-headers-4.13.0-37-generic’
make[1]: Leaving directory ‘/usr/src/linux-headers-4.13.0-37-generic’
-> Building kernel modules
executing: ‘cd ./kernel; /usr/bin/make -k -j32 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.13.0-37-generic/build" SYSOUT="/lib/modules/4.13.0-37-generic/build"’…
make[1]: Entering directory ‘/usr/src/linux-headers-4.13.0-37-generic’
SYMLINK /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/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: console_lock
CONFTEST: kmem_cache_create
CONFTEST: on_each_cpu
CONFTEST: smp_call_function
CONFTEST: acpi_evaluate_integer
CONFTEST: ioremap_cache
CONFTEST: ioremap_wc
CONFTEST: acpi_walk_namespace
CONFTEST: pci_domain_nr
CONFTEST: pci_dma_mapping_error
CONFTEST: sg_alloc_table
CONFTEST: sg_init_table
CONFTEST: pci_get_domain_bus_and_slot
CONFTEST: efi_enabled
CONFTEST: get_num_physpages
CONFTEST: proc_create_data
CONFTEST: pde_data
CONFTEST: proc_remove
CONFTEST: pm_vt_switch_required
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: 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: register_cpu_notifier
CONFTEST: cpuhp_setup_state
CONFTEST: backlight_device_register
CONFTEST: remap_page_range
CONFTEST: address_space_init_once
CONFTEST: fatal_signal_pending
CONFTEST: list_cut_position
CONFTEST: kbasename
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: vzalloc
CONFTEST: usleep_range
CONFTEST: bitmap_clear
CONFTEST: radix_tree_empty
CONFTEST: drm_dev_unref
CONFTEST: drm_atomic_set_mode_for_crtc
CONFTEST: drm_reinit_primary_mode_group
CONFTEST: drm_atomic_clean_old_fb
CONFTEST: get_user_pages_remote
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: is_export_symbol_gpl_of_node_to_nid
CONFTEST: i2c_adapter
CONFTEST: pm_message_t
CONFTEST: irq_handler_t
CONFTEST: acpi_device_ops
CONFTEST: acpi_op_remove
CONFTEST: outer_flush_all
CONFTEST: proc_dir_entry
CONFTEST: scatterlist
CONFTEST: sg_table
CONFTEST: file_operations
CONFTEST: vm_operations_struct
CONFTEST: pci_save_state
CONFTEST: file_inode
CONFTEST: atomic_long_type
CONFTEST: task_struct
CONFTEST: kuid_t
CONFTEST: dma_ops
CONFTEST: dma_map_ops
CONFTEST: noncoherent_swiotlb_dma_ops
CONFTEST: vm_fault_present
CONFTEST: vm_fault_has_address
CONFTEST: kernel_write
CONFTEST: strnstr
CONFTEST: iterate_dir
CONFTEST: kstrtoull
CONFTEST: backlight_properties_type
CONFTEST: fault_flags
CONFTEST: atomic64_type
CONFTEST: address_space
CONFTEST: backing_dev_info
CONFTEST: vm_ops_fault_removed_vma_arg
CONFTEST: mm_context_t
CONFTEST: pnv_npu2_init_context
CONFTEST: drm_bus_present
CONFTEST: drm_bus_has_bus_type
CONFTEST: drm_bus_has_get_irq
CONFTEST: drm_driver_has_legacy_dev_list
CONFTEST: drm_bus_has_get_name
CONFTEST: drm_driver_has_set_busid
CONFTEST: drm_init_function_args
CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
CONFTEST: drm_crtc_state_has_connectors_changed
CONFTEST: drm_helper_mode_fill_fb_struct
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_mode_config_funcs_has_atomic_state_alloc
CONFTEST: drm_driver_unload_has_int_return_type
CONFTEST: kref_has_refcount_of_type_refcount_t
CONFTEST: dom0_kernel_present
CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
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/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gpu-numa.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-acpi.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-chrdev.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-cray.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-dma.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gvi.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-i2c.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mempool.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-p2p.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-usermap.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vm.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vtophys.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-interface.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-mlock.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-registry.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-modeset-interface.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pci-table.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-memdbg.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-report-err.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-ibmnpu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv_uvm_interface.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nvlink_linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_utils.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_common.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/nvstatus.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/nvCpuUuid.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tools.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_global.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_isr.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_procfs.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_space.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mem.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_rm_mem.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_channel.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_lock.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_hal.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_tree.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_allocator.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_range.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_group.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_access_counters.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_events.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_module.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mmu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tlb_batch.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pte_batch.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_push.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_thread_context.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pushbuffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tracker.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler_ce.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler_mmu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_maxwell.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_maxwell_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_ce.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_mmu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_policy.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_utils.o
In file included from ./arch/x86/include/asm/cpufeature.h:4:0,
from ./arch/x86/include/asm/thread_info.h:63,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_linux.h:39,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:24:
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c: In function ‘block_cpu_fault_locked’:
./arch/x86/include/asm/processor.h:818:39: error: implicit declaration of function ‘task_stack_page’ [-Werror=implicit-function-declaration]
unsigned long __ptr = (unsigned long)task_stack_page(task);
^
./arch/x86/include/asm/processor.h:895:26: note: in expansion of macro ‘task_pt_regs’
#define KSTK_EIP(task) (task_pt_regs(task)->ip)
^
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:9035:41: note: in expansion of macro ‘KSTK_EIP’
KSTK_EIP(current));
^
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kvmalloc.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pmm_gpu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_migrate.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_map_external.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_user_channel.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_hmm.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_heuristics.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_thrashing.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_prefetch.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_test_rng.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_allocator_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_tree_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mem_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_rm_mem_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_page_tree_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tracker_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_push_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_channel_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_ce_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_lock_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_utils_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pmm_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_events_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_module_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mmu_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset/nvidia-modeset-linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-drv.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-utils.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-crtc.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-encoder.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-connector.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-gem.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-fb.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-modeset.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-prime-fence.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-helper.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nv-pci-table.o
ld -r -o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gpu-numa.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-acpi.o /tmp/selfgz1745/
NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-chrdev.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-cray.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-dma.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gvi.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-i2c.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mempool.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mmap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-p2p.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pat.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-procfs.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-usermap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vm.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vtophys.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-mlock.o /tmp/selfgz1745/NVIDIA-
Linux-x86_64-387.26/kernel/nvidia/os-pci.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-registry.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-usermap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-modeset-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pci-table.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-memdbg.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-report-err.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-ibmnpu.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv_uvm_interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nvlink_linux.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-frontend.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q-selftest.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia.o
ld -r -o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset/nvidia-modeset-linux.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm.o
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target ‘/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o’ failed
make[2]: *** [/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o] Error 1
make[2]: Target ‘__build’ not remade because of errors.
Makefile:1550: recipe for target ‘module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel’ failed
make[1]: *** [module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.13.0-37-generic’
Makefile:84: recipe for target ‘modules’ failed
make: *** [modules] Error 2
-> Error.
ERROR: An error occurred while performing the step: “Building kernel modules”. See /var/log/nvidia-installer.log for details.
-> The command cd ./kernel; /usr/bin/make -k -j32 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.13.0-37-generic/build" SYSOUT="/lib/modules/4.13.0-37-generic/build" failed with the following output:

make[1]: Entering directory ‘/usr/src/linux-headers-4.13.0-37-generic’
SYMLINK /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kernel.o
SYMLINK /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/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: console_lock
CONFTEST: kmem_cache_create
CONFTEST: on_each_cpu
CONFTEST: smp_call_function
CONFTEST: acpi_evaluate_integer
CONFTEST: ioremap_cache
CONFTEST: ioremap_wc
CONFTEST: acpi_walk_namespace
CONFTEST: pci_domain_nr
CONFTEST: pci_dma_mapping_error
CONFTEST: sg_alloc_table
CONFTEST: sg_init_table
CONFTEST: pci_get_domain_bus_and_slot
CONFTEST: efi_enabled
CONFTEST: get_num_physpages
CONFTEST: proc_create_data
CONFTEST: pde_data
CONFTEST: proc_remove
CONFTEST: pm_vt_switch_required
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: 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: register_cpu_notifier
CONFTEST: cpuhp_setup_state
CONFTEST: backlight_device_register
CONFTEST: remap_page_range
CONFTEST: address_space_init_once
CONFTEST: fatal_signal_pending
CONFTEST: list_cut_position
CONFTEST: kbasename
CONFTEST: wait_on_bit_lock_argument_count
CONFTEST: vzalloc
CONFTEST: usleep_range
CONFTEST: bitmap_clear
CONFTEST: radix_tree_empty
CONFTEST: drm_dev_unref
CONFTEST: drm_atomic_set_mode_for_crtc
CONFTEST: drm_reinit_primary_mode_group
CONFTEST: drm_atomic_clean_old_fb
CONFTEST: get_user_pages_remote
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: is_export_symbol_gpl_of_node_to_nid
CONFTEST: i2c_adapter
CONFTEST: pm_message_t
CONFTEST: irq_handler_t
CONFTEST: acpi_device_ops
CONFTEST: acpi_op_remove
CONFTEST: outer_flush_all
CONFTEST: proc_dir_entry
CONFTEST: scatterlist
CONFTEST: sg_table
CONFTEST: file_operations
CONFTEST: vm_operations_struct
CONFTEST: pci_save_state
CONFTEST: file_inode
CONFTEST: atomic_long_type
CONFTEST: task_struct
CONFTEST: kuid_t
CONFTEST: dma_ops
CONFTEST: dma_map_ops
CONFTEST: noncoherent_swiotlb_dma_ops
CONFTEST: vm_fault_present
CONFTEST: vm_fault_has_address
CONFTEST: kernel_write
CONFTEST: strnstr
CONFTEST: iterate_dir
CONFTEST: kstrtoull
CONFTEST: backlight_properties_type
CONFTEST: fault_flags
CONFTEST: atomic64_type
CONFTEST: address_space
CONFTEST: backing_dev_info
CONFTEST: vm_ops_fault_removed_vma_arg
CONFTEST: mm_context_t
CONFTEST: pnv_npu2_init_context
CONFTEST: drm_bus_present
CONFTEST: drm_bus_has_bus_type
CONFTEST: drm_bus_has_get_irq
CONFTEST: drm_driver_has_legacy_dev_list
CONFTEST: drm_bus_has_get_name
CONFTEST: drm_driver_has_set_busid
CONFTEST: drm_init_function_args
CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
CONFTEST: drm_crtc_state_has_connectors_changed
CONFTEST: drm_helper_mode_fill_fb_struct
CONFTEST: drm_master_drop_has_from_release_arg
CONFTEST: drm_mode_config_funcs_has_atomic_state_alloc
CONFTEST: drm_driver_unload_has_int_return_type
CONFTEST: kref_has_refcount_of_type_refcount_t
CONFTEST: dom0_kernel_present
CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
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/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gpu-numa.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-acpi.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-chrdev.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-cray.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-dma.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gvi.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-i2c.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mempool.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mmap.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-p2p.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pat.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-usermap.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-procfs.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vm.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vtophys.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-interface.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-mlock.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-registry.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-usermap.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-modeset-interface.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pci-table.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-memdbg.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-report-err.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-ibmnpu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv_uvm_interface.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nvlink_linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-frontend.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q-selftest.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_utils.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_common.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/nvstatus.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/nvCpuUuid.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tools.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_global.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_isr.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_procfs.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_space.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_semaphore.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mem.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_rm_mem.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_channel.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_lock.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_hal.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_tree.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_allocator.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_range.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_group.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_replayable_faults.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_access_counters.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_events.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_module.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mmu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tlb_batch.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pte_batch.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_push.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_thread_context.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pushbuffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tracker.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler_ce.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kepler_mmu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_maxwell.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_maxwell_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_ce.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_mmu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pascal_fault_buffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta_host.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta_fault_buffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_volta_access_counter_buffer.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_policy.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_utils.o
In file included from ./arch/x86/include/asm/cpufeature.h:4:0,
from ./arch/x86/include/asm/thread_info.h:63,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_linux.h:39,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:24:
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c: In function ‘block_cpu_fault_locked’:
./arch/x86/include/asm/processor.h:818:39: error: implicit declaration of function ‘task_stack_page’ [-Werror=implicit-function-declaration]
unsigned long __ptr = (unsigned long)task_stack_page(task);
^
./arch/x86/include/asm/processor.h:895:26: note: in expansion of macro ‘task_pt_regs’
#define KSTK_EIP(task) (task_pt_regs(task)->ip)
^
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:9035:41: note: in expansion of macro ‘KSTK_EIP’
KSTK_EIP(current));
^
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kvmalloc.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pmm_gpu.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_migrate.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_map_external.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_user_channel.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_hmm.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_heuristics.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_thrashing.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_prefetch.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_test_rng.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_allocator_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_tree_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_gpu_semaphore_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mem_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_rm_mem_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_page_tree_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_tracker_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_push_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_channel_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_ce_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_lock_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_utils_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_kvmalloc_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_pmm_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_events_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_perf_module_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_get_rm_ptes_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_fault_buffer_flush_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_mmu_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_peer_identity_mappings_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_range_group_tree_test.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset/nvidia-modeset-linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-drv.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-utils.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-crtc.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-encoder.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-connector.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-gem.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-fb.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-modeset.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-prime-fence.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-linux.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-helper.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nv-pci-table.o
ld -r -o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gpu-numa.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-acpi.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-chrdev.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-cray.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-dma.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gvi.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-i2c.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mempool.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mmap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-p2p.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pat.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-procfs.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-usermap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vm.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vtophys.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-mlock.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-pci.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-registry.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-usermap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-modeset-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pci-table.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-memdbg.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-report-err.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-ibmnpu.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv_uvm_interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nvlink_linux.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-frontend.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q-selftest.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-instance.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia.o
ld -r -o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset/nvidia-modeset-linux.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-modeset.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-drm.o
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target ‘/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o’ failed
make[2]: *** [/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o] Error 1
make[2]: Target ‘__build’ not remade because of errors.
Makefile:1550: recipe for target ‘module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel’ failed
make[1]: *** [module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.13.0-37-generic’
Makefile:84: recipe for target ‘modules’ failed
make: *** [modules] Error 2
-> Checking to see whether the nvidia kernel module was successfully built
executing: ‘cd ./kernel; /usr/bin/make -k -j32 NV_KERNEL_MODULES=“nvidia” NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.13.0-37-generic/build" SYSOUT="/lib/modules/4.13.0-37-generic/build"’…
make[1]: Entering directory ‘/usr/src/linux-headers-4.13.0-37-generic’
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pci-table.o
ld -r -o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gpu-numa.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-acpi.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-chrdev.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-cray.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-dma.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-gvi.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-i2c.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mempool.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-mmap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-p2p.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nv
idia/nv-pat.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-procfs.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-usermap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vm.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-vtophys.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-mlock.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-pci.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-registry.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/os-usermap.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-modeset-interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-pci-table.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-memdbg.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-report-err.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-ibmnpu.o /tmp/selfgz1745/NVIDIA-Lin
ux-x86_64-387.26/kernel/nvidia/nv_uvm_interface.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nvlink_linux.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-frontend.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-kthread-q-selftest.o /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia/nv-instance.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia.mod.o
LD [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia.ko
make[1]: Leaving directory ‘/usr/src/linux-headers-4.13.0-37-generic’
-> done.
-> Checking to see whether the nvidia-uvm kernel module was successfully built
executing: ‘cd ./kernel; /usr/bin/make -k -j32 NV_KERNEL_MODULES=“nvidia-uvm” NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.13.0-37-generic/build" SYSOUT="/lib/modules/4.13.0-37-generic/build"’…
make[1]: Entering directory ‘/usr/src/linux-headers-4.13.0-37-generic’
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o
In file included from ./arch/x86/include/asm/cpufeature.h:4:0,
from ./arch/x86/include/asm/thread_info.h:63,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_linux.h:39,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:24:
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c: In function ‘block_cpu_fault_locked’:
./arch/x86/include/asm/processor.h:818:39: error: implicit declaration of function ‘task_stack_page’ [-Werror=implicit-function-declaration]
unsigned long __ptr = (unsigned long)task_stack_page(task);
^
./arch/x86/include/asm/processor.h:895:26: note: in expansion of macro ‘task_pt_regs’
#define KSTK_EIP(task) (task_pt_regs(task)->ip)
^
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:9035:41: note: in expansion of macro ‘KSTK_EIP’
KSTK_EIP(current));
^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target ‘/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o’ failed
make[2]: *** [/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o] Error 1
make[2]: Target ‘__build’ not remade because of errors.
Makefile:1550: recipe for target ‘module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel’ failed
make[1]: *** [module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.13.0-37-generic’
Makefile:84: recipe for target ‘modules’ failed
make: *** [modules] Error 2
-> Error.
ERROR: An error occurred while performing the step: “Checking to see whether the nvidia-uvm kernel module was successfully built”. See /var/log/nvidia-installer.log for details.
-> The command cd ./kernel; /usr/bin/make -k -j32 NV_KERNEL_MODULES="nvidia-uvm" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/4.13.0-37-generic/build" SYSOUT="/lib/modules/4.13.0-37-generic/build" failed with the following output:

make[1]: Entering directory ‘/usr/src/linux-headers-4.13.0-37-generic’
CC [M] /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o
In file included from ./arch/x86/include/asm/cpufeature.h:4:0,
from ./arch/x86/include/asm/thread_info.h:63,
from ./include/linux/thread_info.h:37,
from ./arch/x86/include/asm/preempt.h:6,
from ./include/linux/preempt.h:80,
from ./include/linux/spinlock.h:50,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-lock.h:16,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/common/inc/nv-linux.h:19,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm_linux.h:39,
from /tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:24:
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c: In function ‘block_cpu_fault_locked’:
./arch/x86/include/asm/processor.h:818:39: error: implicit declaration of function ‘task_stack_page’ [-Werror=implicit-function-declaration]
unsigned long __ptr = (unsigned long)task_stack_page(task);
^
./arch/x86/include/asm/processor.h:895:26: note: in expansion of macro ‘task_pt_regs’
#define KSTK_EIP(task) (task_pt_regs(task)->ip)
^
/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.c:9035:41: note: in expansion of macro ‘KSTK_EIP’
KSTK_EIP(current));
^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target ‘/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o’ failed
make[2]: *** [/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel/nvidia-uvm/uvm8_va_block.o] Error 1
make[2]: Target ‘__build’ not remade because of errors.
Makefile:1550: recipe for target ‘module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel’ failed
make[1]: *** [module/tmp/selfgz1745/NVIDIA-Linux-x86_64-387.26/kernel] Error 2
make[1]: Target ‘modules’ not remade because of errors.
make[1]: Leaving directory ‘/usr/src/linux-headers-4.13.0-37-generic’
Makefile:84: recipe for target ‘modules’ failed
make: *** [modules] Error 2
ERROR: The nvidia-uvm kernel module was not created.
ERROR: The nvidia-uvm kernel module failed to build. This kernel module is required for the proper operation of CUDA. If you do not need to use CUDA, you can try to install this driver package again with the ‘–no-unified-memory’ option.
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.

The distribution-provided pre-install script failed!

This means that you still have the ubuntu driver package installed, this has to be uninstalled first. Never install the .run over a distro package.
Get any driver version here:
https://http.download.nvidia.com/XFree86/Linux-x86_64/
387.22 seems to be too old for your kernel.

BTW you can attach files to existing posts. When hovering the mouse over it, a paperclip appears.

Thanks generix. It’s working.

I reinstalled Ubuntu and then installed 390.42 driver and Cuda-9.1.

I’ve tried downloading the LINUX driver from Nvidia for this (Linux 64-bit Ubuntu 16.04, version 396.26) and am encountering this same issue where the graphical login screen comes up after reboot, but will not allow any logins and just jumps back to the login page. Dropping to the prompt allows me to login. (Ctrl-Alt-F1).
My issue is that the downloads for this GPU for Ubuntu comes in the deb format and not a run-able file like is suggested in this post (.run). I did try the generic version of this LINUX driver, but that had more issues and couldn’t even get it to install.
(similar to this person’s original post, I am not using a Nvidia graphics card, just the GPU)

This would be much easier if we could isolate these opengl files and exclude them or remove them after the fact. If that is indeed the issue here.

Thanks

GJ, for your use case you would have to use the .run installer and use it with the --no-opengl-files --dkms options for now.
Starting with ubuntu 18.04 the .deb packages changed but this will only be fully functional when xserver 1.20 is included.