Proxmox Kernel Error - Invalid Pointer Type

ControlsEE

New Member
Jun 25, 2023
9
0
1
Just started getting errors when updating one of my hosts. Seems like it can't install a new kernel, 6.5.13-3-pve. I have run dpkg --configure -a and I get this result:
Code:
Setting up proxmox-kernel-6.5.13-1-pve-signed (6.5.13-1) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.13-1-pve /boot/vmlinuz-6.5.13-1-pve
dkms: running auto installation service for kernel 6.5.13-1-pve.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.5.13-1-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.5.13-1-pve -C /lib/modules/6.5.13-1-pve/build M=/var/lib/dkms/gasket/1.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.13-1-pve (x86_64)
Consult /var/lib/dkms/gasket/1.0/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.5.13-1-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.13-1-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-1-pve-signed (--configure):
 installed proxmox-kernel-6.5.13-1-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.5.13-3-pve-signed (6.5.13-3) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.5.13-3-pve /boot/vmlinuz-6.5.13-3-pve
dkms: running auto installation service for kernel 6.5.13-3-pve.
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /lib/modules/6.5.13-3-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/gasket/1.0/source/dkms.conf)

Building module:
Cleaning build area...
make -j4 KERNELRELEASE=6.5.13-3-pve -C /lib/modules/6.5.13-3-pve/build M=/var/lib/dkms/gasket/1.0/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.13-3-pve (x86_64)
Consult /var/lib/dkms/gasket/1.0/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.5.13-3-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.5.13-3-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.5.13-3-pve-signed (--configure):
 installed proxmox-kernel-6.5.13-3-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.5:
 proxmox-kernel-6.5 depends on proxmox-kernel-6.5.13-3-pve-signed | proxmox-kernel-6.5.13-3-pve; however:
  Package proxmox-kernel-6.5.13-3-pve-signed is not configured yet.
  Package proxmox-kernel-6.5.13-3-pve is not installed.
  Package proxmox-kernel-6.5.13-3-pve-signed which provides proxmox-kernel-6.5.13-3-pve is not configured yet.

dpkg: error processing package proxmox-kernel-6.5 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.5.13-1-pve-signed
 proxmox-kernel-6.5.13-3-pve-signed
 proxmox-kernel-6.5

If I look in the log file it lists, it shows this:

Code:
  GNU nano 7.2                                                                          /var/lib/dkms/gasket/1.0/build/make.log                                                                                   
DKMS make.log for gasket-1.0 for kernel 6.5.13-3-pve (x86_64)
Mon Apr  1 16:10:28 CDT 2024
make: Entering directory '/usr/src/linux-headers-6.5.13-3-pve'
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_core.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_ioctl.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_interrupt.o
  CC [M]  /var/lib/dkms/gasket/1.0/build/gasket_page_table.o
/var/lib/dkms/gasket/1.0/build/gasket_core.c: In function  ^`^xgasket_register_device ^`^y:
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1841:41: error: passing argument 1 of  ^`^xclass_create ^`^y from incompatible pointer type [-Werror=incompatible-pointer-types]
 1841 |                 class_create(driver_desc->module, driver_desc->name);
      |                              ~~~~~~~~~~~^~~~~~~~
      |                                         |
      |                                         struct module *
In file included from ./include/linux/device.h:31,
                 from ./include/linux/cdev.h:8,
                 from /var/lib/dkms/gasket/1.0/build/gasket_core.h:11,
                 from /var/lib/dkms/gasket/1.0/build/gasket_core.c:12:
./include/linux/device/class.h:230:54: note: expected  ^`^xconst char * ^`^y but argument is of type  ^`^xstruct module * ^`^y
  230 | struct class * __must_check class_create(const char *name);
      |                                          ~~~~~~~~~~~~^~~~
/var/lib/dkms/gasket/1.0/build/gasket_core.c:1841:17: error: too many arguments to function  ^`^xclass_create ^`^y
 1841 |                 class_create(driver_desc->module, driver_desc->name);
      |                 ^~~~~~~~~~~~
./include/linux/device/class.h:230:29: note: declared here
  230 | struct class * __must_check class_create(const char *name);
      |                             ^~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:251: /var/lib/dkms/gasket/1.0/build/gasket_core.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.5.13-3-pve/Makefile:2039: /var/lib/dkms/gasket/1.0/build] Error 2
make: *** [Makefile:234: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.5.13-3-pve'

Everything seems to be working just fine on this host otherwise, so I'm not sure why it's failing,

TIA
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!