[SOLVED] Ubuntu 16.04 with native NVIDIA drivers? (4.14.0-10.1-liquorix-amd64 working with nvidia-387 PPA with steps)
ylluminate
Status: Curious
Joined: 02 Jan 2018
Posts: 7
Reply Quote
I'm running Ubuntu 16.04 and ran into some issues whilst installing. One was regarding NDIS, but the other was more concerning to me and pertained to NVIDIA. Here's the `apt-get` results:

:: Code ::

$ apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libllvm3.8 libllvm3.8:i386 libmircommon5 libmircommon5:i386 python3-pyinotify snap-confine ubuntu-core-launcher
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libelf-dev linux-headers-4.14.0-10.1-liquorix-amd64 linux-image-4.14.0-10.1-liquorix-amd64
Suggested packages:
  linux-doc-4.14
Recommended packages:
  firmware-linux-free
The following NEW packages will be installed:
  libelf-dev linux-headers-4.14.0-10.1-liquorix-amd64 linux-headers-liquorix-amd64 linux-image-4.14.0-10.1-liquorix-amd64
  linux-image-liquorix-amd64
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 60.8 MB of archives.
After this operation, 346 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libelf-dev amd64 0.165-3ubuntu1 [54.4 kB]
Get:2 http://ppa.launchpad.net/damentz/liquorix/ubuntu xenial/main amd64 linux-image-4.14.0-10.1-liquorix-amd64 amd64 4.14-13ubuntu1~xenial [52.4 MB]
Get:3 http://ppa.launchpad.net/damentz/liquorix/ubuntu xenial/main amd64 linux-headers-4.14.0-10.1-liquorix-amd64 amd64 4.14-13ubuntu1~xenial [7,988 kB]
Get:4 http://ppa.launchpad.net/damentz/liquorix/ubuntu xenial/main amd64 linux-headers-liquorix-amd64 amd64 4.14-13ubuntu1~xenial [146 kB]
Get:5 http://ppa.launchpad.net/damentz/liquorix/ubuntu xenial/main amd64 linux-image-liquorix-amd64 amd64 4.14-13ubuntu1~xenial [146 kB]
Fetched 60.8 MB in 3min 2s (333 kB/s)
Preconfiguring packages ...
Selecting previously unselected package linux-image-4.14.0-10.1-liquorix-amd64.
(Reading database ... 252499 files and directories currently installed.)
Preparing to unpack .../linux-image-4.14.0-10.1-liquorix-amd64_4.14-13ubuntu1~xenial_amd64.deb ...
Unpacking linux-image-4.14.0-10.1-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
Selecting previously unselected package libelf-dev:amd64.
Preparing to unpack .../libelf-dev_0.165-3ubuntu1_amd64.deb ...
Unpacking libelf-dev:amd64 (0.165-3ubuntu1) ...
Selecting previously unselected package linux-headers-4.14.0-10.1-liquorix-amd64.
Preparing to unpack .../linux-headers-4.14.0-10.1-liquorix-amd64_4.14-13ubuntu1~xenial_amd64.deb ...
Unpacking linux-headers-4.14.0-10.1-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
Selecting previously unselected package linux-headers-liquorix-amd64.
Preparing to unpack .../linux-headers-liquorix-amd64_4.14-13ubuntu1~xenial_amd64.deb ...
Unpacking linux-headers-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
Selecting previously unselected package linux-image-liquorix-amd64.
Preparing to unpack .../linux-image-liquorix-amd64_4.14-13ubuntu1~xenial_amd64.deb ...
Unpacking linux-image-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
Setting up linux-image-4.14.0-10.1-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
/etc/kernel/postinst.d/dkms:
ERROR (dkms apport): kernel package linux-headers-4.14.0-10.1-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 4.14.0-10.1-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.
ERROR (dkms apport): kernel package linux-headers-4.14.0-10.1-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 4.14.0-10.1-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-384/384.90/build/make.log for more information.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.14.0-10.1-liquorix-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.14.0-10.1-liquorix-amd64
Found initrd image: /boot/initrd.img-4.14.0-10.1-liquorix-amd64
Found linux image: /boot/vmlinuz-4.4.0-104-generic
Found initrd image: /boot/initrd.img-4.4.0-104-generic
Found linux image: /boot/vmlinuz-4.4.0-59-generic
Found initrd image: /boot/initrd.img-4.4.0-59-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows Vista (loader) on /dev/sda2
done
Setting up libelf-dev:amd64 (0.165-3ubuntu1) ...
Setting up linux-headers-4.14.0-10.1-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.14.0-10.1-liquorix-amd64
ERROR (dkms apport): kernel package linux-headers-4.14.0-10.1-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 4.14.0-10.1-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/ndiswrapper/1.60/build/make.log for more information.
ERROR (dkms apport): kernel package linux-headers-4.14.0-10.1-liquorix-amd64 is not supported
Error! Bad return status for module build on kernel: 4.14.0-10.1-liquorix-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-384/384.90/build/make.log for more information.
Setting up linux-headers-liquorix-amd64 (4.14-13ubuntu1~xenial) ...
Setting up linux-image-liquorix-amd64 (4.14-13ubuntu1~xenial) ...


The contents of `/var/lib/dkms/ndiswrapper/1.60/build/make.log`:
:: Code ::

DKMS make.log for ndiswrapper-1.60 for kernel 4.14.0-10.1-liquorix-amd64 (x86_64)
Wed Jan  3 02:14:06 EST 2018
make: Entering directory '/usr/src/linux-headers-4.14.0-10.1-liquorix-amd64'
  AR      /var/lib/dkms/ndiswrapper/1.60/build/built-in.o
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/crt_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/hal_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ndis_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/ntoskernel_io_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/rtl_exports.h
  MKEXPORT /var/lib/dkms/ndiswrapper/1.60/build/usb_exports.h
  MKSTUBS /var/lib/dkms/ndiswrapper/1.60/build/win2lin_stubs.h
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/crt.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/hal.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/iw_ndis.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/loader.o
  CC [M]  /var/lib/dkms/ndiswrapper/1.60/build/ndis.o
In file included from /var/lib/dkms/ndiswrapper/1.60/build/ndis.h:19:0,
                 from /var/lib/dkms/ndiswrapper/1.60/build/ndis.c:16:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMAllocateSharedMemory’:
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: error: ‘__GFP_REPEAT’ undeclared (first use in this function)
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ntoskernel.h:122:20: note: each undeclared identifier is reported only once for each function it appears in
       GFP_KERNEL | __GFP_REPEAT)
                    ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:1095:10: note: in expansion of macro ‘PCI_DMA_ALLOC_COHERENT’
  *virt = PCI_DMA_ALLOC_COHERENT(wd->pci.pdev, size, &dma_addr);
          ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMIndicateReceivePacket’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2261:15: error: ‘struct net_device’ has no member named ‘last_rx’
   wnd->net_dev->last_rx = jiffies;
               ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘EthRxIndicateHandler’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2349:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c: In function ‘NdisMTransferDataComplete’:
/var/lib/dkms/ndiswrapper/1.60/build/ndis.c:2464:14: error: ‘struct net_device’ has no member named ‘last_rx’
  wnd->net_dev->last_rx = jiffies;
              ^
scripts/Makefile.build:314: recipe for target '/var/lib/dkms/ndiswrapper/1.60/build/ndis.o' failed
make[1]: *** [/var/lib/dkms/ndiswrapper/1.60/build/ndis.o] Error 1
Makefile:1527: recipe for target '_module_/var/lib/dkms/ndiswrapper/1.60/build' failed
make: *** [_module_/var/lib/dkms/ndiswrapper/1.60/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.14.0-10.1-liquorix-amd64'


And the contents of: `/var/lib/dkms/nvidia-384/384.90/build/make.log`:
:: Code ::

DKMS make.log for nvidia-384-384.90 for kernel 4.14.0-10.1-liquorix-amd64 (x86_64)
Wed Jan  3 02:14:16 EST 2018
make "CC=cc"  KBUILD_VERBOSE= -C /lib/modules/4.14.0-10.1-liquorix-amd64/build M=/var/lib/dkms/nvidia-384/384.90/build ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/4.14.0-10.1-liquorix-amd64/build NV_KERNEL_OUTPUT=/lib/modules/4.14.0-10.1-liquorix-amd64/build NV_KERNEL_MODULES="nvidia nvidia-uvm nvidia-modeset nvidia-drm" INSTALL_MOD_DIR=kernel/drivers/video modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.0-10.1-liquorix-amd64'
  SYMLINK /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia-384/384.90/build/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: get_num_physpages
 CONFTEST: efi_enabled
 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: 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: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: drm_atomic_set_mode_for_crtc
 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: 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: atomic_long_type
 CONFTEST: pci_save_state
 CONFTEST: file_inode
 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: fault_flags
 CONFTEST: atomic64_type
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: pnv_npu2_init_context
 CONFTEST: drm_bus_present
 CONFTEST: drm_bus_has_bus_type
 CONFTEST: drm_bus_has_get_irq
 CONFTEST: drm_bus_has_get_name
 CONFTEST: drm_driver_has_legacy_dev_list
 CONFTEST: drm_driver_has_set_busid
 CONFTEST: drm_crtc_state_has_connectors_changed
 CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
 CONFTEST: drm_universal_plane_init_has_modifier_name_arg
 CONFTEST: drm_init_functions_have_name_arg
 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_mode_config_funcs_has_atomic_state_alloc
 CONFTEST: drm_driver_unload_has_int_return_type
 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]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-frontend.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-instance.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv.o
In file included from /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c:26:0:
/var/lib/dkms/nvidia-384/384.90/build/common/inc/nvmisc.h:56:0: warning: "BIT" redefined
 #define BIT(b)                  (1<<(b))
 ^
In file included from ./include/linux/kernel.h:11:0,
                 from ./include/linux/list.h:9,
                 from ./include/linux/preempt.h:11,
                 from ./include/linux/spinlock.h:51,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-lock.h:16,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-linux.h:19,
                 from /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c:24:
./include/linux/bitops.h:7:0: note: this is the location of the previous definition
 #define BIT(nr)   (1UL << (nr))
 ^
/var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c: In function ‘bad_idea_read_string_from_file’:
/var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c:123:39: warning: passing argument 3 of ‘kernel_read’ makes integer from pointer without a cast [-Wint-conversion]
     read_count = kernel_read(filp, 0, read_buffer, read_buffer_size - 1);
                                       ^
In file included from ./include/linux/huge_mm.h:7:0,
                 from ./include/linux/mm.h:453,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-pgprot.h:17,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-linux.h:20,
                 from /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c:24:
./include/linux/fs.h:2823:16: note: expected ‘size_t {aka long unsigned int}’ but argument is of type ‘char *’
 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *);
                ^
/var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c:123:52: warning: passing argument 4 of ‘kernel_read’ makes pointer from integer without a cast [-Wint-conversion]
     read_count = kernel_read(filp, 0, read_buffer, read_buffer_size - 1);
                                                    ^
In file included from ./include/linux/huge_mm.h:7:0,
                 from ./include/linux/mm.h:453,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-pgprot.h:17,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-linux.h:20,
                 from /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gpu-numa.c:24:
./include/linux/fs.h:2823:16: note: expected ‘loff_t * {aka long long int *}’ but argument is of type ‘size_t {aka long unsigned int}’
 extern ssize_t kernel_read(struct file *, void *, size_t, loff_t *);
                ^
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-acpi.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-chrdev.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-cray.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-dma.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-gvi.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-i2c.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-mempool.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-mmap.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-p2p.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-pat.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-procfs.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-usermap.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-vm.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-vtophys.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/os-interface.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/os-mlock.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/os-pci.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/os-registry.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/os-usermap.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-modeset-interface.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-pci-table.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-kthread-q.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-kthread-q-selftest.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv-memdbg.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nv_uvm_interface.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia/nvlink_linux.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_volta_host.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_volta.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_volta_fault_buffer.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_volta_access_counter_buffer.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_gpu_non_replayable_faults.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_gpu_access_counters.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm_utils.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm_common.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm_linux.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/nvstatus.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_tools.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_global.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_gpu.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_gpu_isr.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_procfs.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_space.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_gpu_semaphore.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_mem.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_rm_mem.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_channel.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_lock.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_hal.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_range_tree.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_range_allocator.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_range.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_block.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_range_group.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_gpu_replayable_faults.o
In file included from ./arch/x86/include/asm/cpufeature.h:5:0,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:81,
                 from ./include/linux/spinlock.h:51,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-lock.h:16,
                 from /var/lib/dkms/nvidia-384/384.90/build/common/inc/nv-linux.h:19,
                 from /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm_linux.h:39,
                 from /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_block.c:24:
/var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_block.c: In function ‘block_cpu_fault_locked’:
./arch/x86/include/asm/processor.h:826: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:909:26: note: in expansion of macro ‘task_pt_regs’
 #define KSTK_EIP(task)  (task_pt_regs(task)->ip)
                          ^
/var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_block.c:8771:41: note: in expansion of macro ‘KSTK_EIP’
                                         KSTK_EIP(current));
                                         ^
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_perf_events.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_perf_module.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_mmu.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_pte_batch.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_tlb_batch.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_push.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_pushbuffer.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_thread_context.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_tracker.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_kepler.o
  CC [M]  /var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_kepler_ce.o
cc1: some warnings being treated as errors
scripts/Makefile.build:314: recipe for target '/var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_block.o' failed
make[2]: *** [/var/lib/dkms/nvidia-384/384.90/build/nvidia-uvm/uvm8_va_block.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** wait: No child processes.  Stop.
Makefile:1527: recipe for target '_module_/var/lib/dkms/nvidia-384/384.90/build' failed
make[1]: *** [_module_/var/lib/dkms/nvidia-384/384.90/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.14.0-10.1-liquorix-amd64'
Makefile:81: recipe for target 'modules' failed
make: *** [modules] Error 2


Any thoughts here on resolving what's going on?

< Edited by ylluminate :: Jan 3, 18, 14:44 >

Back to top
gelabs
Status: Interested
Joined: 02 May 2017
Posts: 16
Reply Quote
This patch worked for me :
devtalk.nvidia.com/default/topic/1028016/patch-for-compiling-v384-98-modules-with-linux-v4-14-9-/
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
techpatterns.com/forums/about1891.html

See this thread for running Liquorix on frozen pool distros.

Liquorix does not support non current frozen pool distros but that thread shows what to do for that end.
Back to top
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 89
Reply Quote
Possibly it's more an issue of his version of the driver not being compatible with the 4.14 kernel. Maybe using the 387 drivers from this PPA would build: launchpad.net/~graphics-drivers/+archive/ubuntu/ppa
Back to top
ylluminate
Status: Curious
Joined: 02 Jan 2018
Posts: 7
Reply Quote
:: stevenpusser wrote ::
Possibly it's more an issue of his version of the driver not being compatible with the 4.14 kernel. Maybe using the 387 drivers from this PPA would build: https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa


@stevenpusser's suggestion is spot on and did the trick. I was able to get everything working perfectly on Ubuntu 16.04 via:
:: Code ::
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo add-apt-repository ppa:damentz/liquorix && sudo apt-get update
sudo apt-get update
sudo apt-get install linux-image-liquorix-amd64 linux-headers-liquorix-amd64
sudo apt-get install nvidia-387


`inxi -bxx`:
:: Code ::
System:    Host: hostname Kernel: 4.14.0-10.1-liquorix-amd64 x86_64 (64 bit gcc: 5.4.0)
           Desktop: N/A dm: lightdm Distro: Ubuntu 16.04 xenial
Machine:   System: Hewlett-Packard product: p6540y serial: ________  Chassis: type: 3
           Mobo: FOXCONN model: 2A92 v: 1.01 Bios: American Megatrends v: 6.09 date: 09/07/2010
CPU:       Quad core AMD Phenom II X4 830 (-MCP-) speed/max: 800/2800 MHz
Graphics:  Card: NVIDIA Device 128b bus-ID: 01:00.0 chip-ID: 10de:128b
           Display Server: X.org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           tty size: 138x86 Advanced Data: N/A for root
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d800 bus-ID: 04:00.0 chip-ID: 10ec:8168
Drives:    HDD Total Size: 490.1GB (5.9% used)
Info:      Processes: 218 Uptime: 1 min Memory: 1312.6/16042.6MB
           Init: systemd v: 229 runlevel: 5 default: 2 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481 running in sshd) inxi: 2.2.35

Back to top
stevenpusser
Status: Contributor
Joined: 14 Jan 2017
Posts: 89
Reply Quote
Yeah, I had to patch the Debian Stretch 375.82 Nvidia driver for it to build on 4.14, and that's in my OBS backport repo for Debian users, but Ubuntu uses different packages for the driver, so I disabled those builds.
Back to top
ylluminate
Status: Curious
Joined: 02 Jan 2018
Posts: 7
Reply Quote
Well you did great. I'm really thankful that you took the effort to look into this and share.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours