Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] nvidia-dkms won't build module for linux-zen kernel (Read 321 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] nvidia-dkms won't build module for linux-zen kernel

Hello,
I tried installing the latest Linux zen kernel and headers, but nvidia-dkms fails to build the module.
Code: [Select]
$ sudo pacman -S world/nvidia-dkms                                             
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-dkms-440.59-7

Total Installed Size:  32,75 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing nvidia-dkms                       [######################] 100%
Optional dependencies for nvidia-dkms
    linux-headers: Build the module for Artix kernel [installed]
    linux-lts-headers: Build the module for LTS Artix kernel
:: Running post-transaction hooks...
(1/1) Install DKMS modules
==> dkms install nvidia/440.59 -k 5.5.3-artix1-1
==> dkms install nvidia/440.59 -k 5.5.5-zen1-1-zen
Error! Bad return status for module build on kernel: 5.5.5-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/440.59/build/make.log for more information.
Code: [Select]
$ cat /var/lib/dkms/nvidia/440.59/build/make.log
DKMS make.log for nvidia-440.59 for kernel 5.5.5-zen1-1-zen (x86_64)
dom 23 feb 2020, 14:58:07, CET
make[1]: Entering directory '/usr/lib/modules/5.5.5-zen1-1-zen/build'
  SYMLINK /var/lib/dkms/nvidia/440.59/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia/440.59/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_memory_uc
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_array_uc
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: sg_alloc_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 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: of_get_ibm_chip_id
 CONFTEST: node_end_pfn
 CONFTEST: pci_bus_address
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_remove_bus_device
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: backlight_device_register
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: do_gettimeofday
 CONFTEST: kernel_read
 CONFTEST: kernel_write
 CONFTEST: kthread_create_on_node
 CONFTEST: of_find_matching_node
 CONFTEST: dev_is_pci
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 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: cpumask_of_node
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: drm_gem_object_lookup
 CONFTEST: drm_atomic_state_ref_counting
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_atomic_helper_connector_dpms
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present_kthread_create_on_node
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: file_operations
 CONFTEST: file_inode
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: backlight_properties_type
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: vmbus_channel_has_ringbuffer_page
 CONFTEST: device_driver_of_match_table
 CONFTEST: device_of_node
 CONFTEST: node_states_n_memory
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: vm_fault_t
 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_init_function_args
 CONFTEST: drm_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_hyperv_available
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: drm_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv.o
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv-frontend.o
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv-pci.o
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv-acpi.o
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-frontend.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-pci.o] Error 1
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-acpi.o] Error 1
make[1]: *** [Makefile:1693: /var/lib/dkms/nvidia/440.59/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.5.5-zen1-1-zen/build'
make: *** [Makefile:81: modules] Error 2

Here is the kernel and header version
Code: [Select]
$ pacman -Qi linux-zen                                                                                                                                                                                            
Name            : linux-zen
Version         : 5.5.5.zen1-1
Description     : The Linux ZEN kernel and modules
Architecture    : x86_64
URL             : https://github.com/zen-kernel/zen-kernel/commits/v5.5.5-zen1
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : coreutils  kmod  initramfs
Optional Deps   : crda: to set the correct wireless channels of your country [installed]
                  linux-firmware: firmware images needed for some devices [installed]
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 77,90 MiB
Packager        : Jan Alexander Steffens (heftig) <[email protected]>
Build Date      : gio 20 feb 2020, 19:22:57
Install Date    : dom 23 feb 2020, 13:42:15
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

$ pacman -Qi linux-zen-headers                                                                                                                                                                                   
Name            : linux-zen-headers
Version         : 5.5.5.zen1-1
Description     : Headers and scripts for building modules for the Linux ZEN kernel
Architecture    : x86_64
URL             : https://github.com/zen-kernel/zen-kernel/commits/v5.5.5-zen1
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : None
Optional Deps   : None
Required By     : None
Optional For    : dkms
Conflicts With  : None
Replaces        : None
Installed Size  : 119,17 MiB
Packager        : Jan Alexander Steffens (heftig) <[email protected]>
Build Date      : gio 20 feb 2020, 19:22:57
Install Date    : dom 23 feb 2020, 13:55:23
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

Re: nvidia-dkms won't build module for linux-zen kernel

Reply #1
Code: [Select]
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-frontend.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
Your kernel has been compiled with a different gcc version. You must wait for the next kernel rebuild or just for your mirror to sync.

Re: nvidia-dkms won't build module for linux-zen kernel

Reply #2
Your kernel has been compiled with a different gcc version. You must wait for the next kernel rebuild or just for your mirror to sync.

that is not exact...
seems as another error, because gcc was builded 2020-02-11 (another gcc we have not in extra) and  linux zen was builded 2020-02-21, 10 days later
linux-zen  5.5.5 is newest kernel, but still broken.. i have same problem with this kernel... i can only fix if i manual rebuild on my machine.... why is so, i don't know exactly

Re: nvidia-dkms won't build module for linux-zen kernel

Reply #3
Adding 'export IGNORE_CC_MISMATCH=1' to /etc/profile as explained on the arch wiki doesn't do anything.

Code: [Select]
DKMS make.log for nvidia-440.59 for kernel 5.5.5-zen1-1-zen (x86_64)
lun 24 feb 2020, 10:11:03, CET
make[1]: Entering directory '/usr/lib/modules/5.5.5-zen1-1-zen/build'
  SYMLINK /var/lib/dkms/nvidia/440.59/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia/440.59/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: acquire_console_sem
 CONFTEST: console_lock
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: acpi_walk_namespace
 CONFTEST: sg_alloc_table
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: efi_enabled
 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: of_get_ibm_chip_id
 CONFTEST: node_end_pfn
 CONFTEST: pci_bus_address
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: pci_remove_bus_device
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: backlight_device_register
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: do_gettimeofday
 CONFTEST: kernel_read
 CONFTEST: kernel_write
 CONFTEST: kthread_create_on_node
 CONFTEST: of_find_matching_node
 CONFTEST: dev_is_pci
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: address_space_init_once
 CONFTEST: kbasename
 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: cpumask_of_node
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: drm_gem_object_lookup
 CONFTEST: drm_atomic_state_ref_counting
 CONFTEST: drm_driver_has_gem_prime_res_obj
 CONFTEST: drm_atomic_helper_connector_dpms
 CONFTEST: drm_connector_funcs_have_mode_in_name
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present_kthread_create_on_node
 CONFTEST: acpi_op_remove
 CONFTEST: outer_flush_all
 CONFTEST: file_operations
 CONFTEST: file_inode
 CONFTEST: kuid_t
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: backlight_properties_type
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: vmbus_channel_has_ringbuffer_page
 CONFTEST: device_driver_of_match_table
 CONFTEST: device_of_node
 CONFTEST: node_states_n_memory
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: address_space
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: vm_fault_t
 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_init_function_args
 CONFTEST: drm_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_crtc_helper_funcs_has_atomic_enable
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_hyperv_available
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: drm_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv-pci.o
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv.o
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv-frontend.o
  CC [M]  /var/lib/dkms/nvidia/440.59/build/nvidia/nv-acpi.o
cc1: error: incompatible gcc/plugin versions
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: incompatible gcc/plugin versions
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: fail to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-frontend.o] Error 1
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-pci.o] Error 1
make[2]: *** [scripts/Makefile.build:266: /var/lib/dkms/nvidia/440.59/build/nvidia/nv-acpi.o] Error 1
make[1]: *** [Makefile:1693: /var/lib/dkms/nvidia/440.59/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.5.5-zen1-1-zen/build'
make: *** [Makefile:81: modules] Error 2

Re: nvidia-dkms won't build module for linux-zen kernel

Reply #4
linux-zen-5.5.6.zen1-1 is in our testing, so this issue should be fixed

Re: nvidia-dkms won't build module for linux-zen kernel

Reply #5
Indeed, thank you. Marking as solved.