tuxedocomputers / tuxedo-keyboard

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.
https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers
GNU General Public License v3.0
300 stars 92 forks source link

Possible incompatiblity with 6.5.0-13-generic ? #202

Closed dsentker closed 9 months ago

dsentker commented 10 months ago

When i tried to update the packages via apt update the command fails with an info related to tuxedo keyboard.

linux-image-6.5.0-13-generic (6.5.0-13.13) wird eingerichtet ...
 * dkms: running auto installation service for kernel 6.5.0-13-generic

Building module:
Cleaning build area...
make -j8 KERNELRELEASE=6.5.0-13-generic KDIR=/lib/modules/6.5.0-13-generic/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.5.0-13-generic (x86_64)
Consult /var/lib/dkms/tuxedo-keyboard/3.1.4/build/make.log for more information.
dkms autoinstall on 6.5.0-13-generic/x86_64 succeeded for openrazer-driver
dkms autoinstall on 6.5.0-13-generic/x86_64 failed for tuxedo-keyboard(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.5.0-13-generic
   ...fail!

Then, $ cat /var/crash/tuxedo-keyboard.0.crash :

ProblemType: Package
DKMSBuildLog:
 DKMS make.log for tuxedo-keyboard-3.1.4 for kernel 6.5.0-13-generic (x86_64)
 Mi 22. Nov 18:35:28 CET 2023
 make -C /lib/modules/6.5.0-13-generic/build M=/var/lib/dkms/tuxedo-keyboard/3.1.4/build modules
 make[1]: Warnung: Kein Jobserver verfügbar: -j1 wird gesetzt. Fügen Sie der Ursprungsregel
 „+“ hinzu.
 make[1]: Verzeichnis „/usr/src/linux-headers-6.5.0-13-generic“ wird betreten
 warning: the compiler differs from the one used to build the kernel
   The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
   You are using:           gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
   CC [M]  /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_keyboard.o
 In file included from /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_keyboard.c:23:
 /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/uniwill_keyboard.h:986:13: warning: ‘uw_charging_profile_write_state’ defined but not used [-Wunused-function]
   986 | static void uw_charging_profile_write_state(void)
       |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   CC [M]  /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/clevo_wmi.o
   CC [M]  /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/clevo_acpi.o
   CC [M]  /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.o
 In file included from ./include/linux/linkage.h:7,
                  from ./include/linux/kernel.h:17,
                  from /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c:20:
 /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c: In function ‘tuxedo_io_init’:
 ./include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
    29 | #define THIS_MODULE (&__this_module)
       |                     ~^~~~~~~~~~~~~~~
       |                      |
       |                      struct module *
 /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c:830:47: note: in expansion of macro ‘THIS_MODULE’
   830 |         tuxedo_io_device_class = class_create(THIS_MODULE, "tuxedo_io");
       |                                               ^~~~~~~~~~~
 In file included from ./include/linux/device.h:31,
                  from /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c:23:
 ./include/linux/device/class.h:230:54: note: expected ‘const char *’ but argument is of type ‘struct module *’
   230 | struct class * __must_check class_create(const char *name);
       |                                          ~~~~~~~~~~~~^~~~
 /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c:830:34: error: too many arguments to function ‘class_create’
   830 |         tuxedo_io_device_class = class_create(THIS_MODULE, "tuxedo_io");
       |                                  ^~~~~~~~~~~~
 ./include/linux/device/class.h:230:29: note: declared here
   230 | struct class * __must_check class_create(const char *name);
       |                             ^~~~~~~~~~~~
 /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c: At top level:
 /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.c:55:13: warning: ‘dmi_string_in’ defined but not used [-Wunused-function]
    55 | static bool dmi_string_in(enum dmi_field f, const char *str)
       |             ^~~~~~~~~~~~~
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/tuxedo-keyboard/3.1.4/build/./src/tuxedo_io/tuxedo_io.o] Fehler 1
 make[2]: *** [/usr/src/linux-headers-6.5.0-13-generic/Makefile:2037: /var/lib/dkms/tuxedo-keyboard/3.1.4/build] Fehler 2
 make[1]: *** [Makefile:234: __sub-make] Fehler 2
 make[1]: Verzeichnis „/usr/src/linux-headers-6.5.0-13-generic“ wird verlassen
 make: *** [Makefile:29: all] Fehler 2
DKMSKernelVersion: 6.5.0-13-generic
Date: Wed Nov 22 18:35:31 2023
DuplicateSignature: dkms:tuxedo-keyboard:3.1.4:./include/linux/export.h:29:22: error: passing argument 1 of ‘class_create’ from incompatible pointer type [-Werror=incompatible-pointer-types]
Package: tuxedo-keyboard 3.1.4
PackageVersion: 3.1.4
SourcePackage: tuxedo-keyboard
Title: tuxedo-keyboard 3.1.4: tuxedo-keyboard kernel module failed to build

System Infos:

$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 23.10
Release:    23.10
Codename:   mantic

Do you have any idea or suggestions how to fix this issue?

tuxedo-bot commented 9 months ago

This repository will no longer get any updates as the code here is now part of tuxedo-drivers https://gitlab.com/tuxedocomputers/development/packages/tuxedo-drivers.

Please open a merge request or issue in the new project on GitLab if you contribution or bug report still applies.