Bug 52442 - Ошибка установки модуля hid-sony-fix-dkms
Summary: Ошибка установки модуля hid-sony-fix-dkms
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: dkms (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-16 15:48 MSK by Thiamine
Modified: 2024-12-17 12:29 MSK (History)
6 users (show)

See Also:


Attachments
лог ошибки сборки модуля (985 bytes, text/x-log)
2024-12-16 15:48 MSK, Thiamine
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thiamine 2024-12-16 15:48:03 MSK
Created attachment 17394 [details]
лог ошибки сборки модуля

После обновления ядра на 6.12 отвалился dualschock 4 . 
Попытался переустановить hid-sony-fix-dkms
При установке выдает ошибку
------------------------
sudo dkms install -m hid-sony-fix-dkms -v 0.1

Sign command: /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file
Binary /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file not found, modules won't be signed

Cleaning build area... done.
Building module(s)...(bad exit status: 2)
Failed command:
make -j12 KERNELRELEASE=6.12.5-6.12-alt2 KVERSION=6.12.5-6.12-alt2

Error! Bad return status for module build on kernel: 6.12.5-6.12-alt2 (x86_64)
Consult /var/lib/dkms/hid-sony-fix-dkms/0.1/build/make.log for more information.
[thiamine@ALT-Regular-OSIO ~]$ sudo dkms remove -m hid-sony-fix-dkms -v 0.1
Module hid-sony-fix-dkms/0.1 is not installed for kernel 6.12.5-6.12-alt2 (x86_64). Skipping...
Module hid-sony-fix-dkms/0.1 is not built for kernel 6.12.5-6.12-alt2 (x86_64). Skipping...
[thiamine@ALT-Regular-OSIO ~]$ sudo dkms install -m hid-sony-fix-dkms -v 0.1

Sign command: /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file
Binary /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file not found, modules won't be signed

Cleaning build area... done.
Building module(s)...(bad exit status: 2)
Failed command:
make -j12 KERNELRELEASE=6.12.5-6.12-alt2 KVERSION=6.12.5-6.12-alt2

Error! Bad return status for module build on kernel: 6.12.5-6.12-alt2 (x86_64)
Consult /var/lib/dkms/hid-sony-fix-dkms/0.1/build/make.log for more information.
--------------------------------------

В логе ошибка сборки:
------------------------
DKMS make.log for hid-sony-fix-dkms/0.1 for kernel 6.12.5-6.12-alt2 (x86_64)
Пн 16 дек 2024 15:25:24 MSK
make -C /lib/modules/6.12.5-6.12-alt2/build M=/var/lib/dkms/hid-sony-fix-dkms/0.1/build modules
make[1]: вход в каталог «/usr/src/linux-6.12.5-6.12-alt2»
  CC [M]  /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.o
/var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.c:43:10: fatal error: asm/unaligned.h: Нет такого файла или каталога
   43 | #include <asm/unaligned.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [scripts/Makefile.build:229: /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.o] Error 1
make[2]: *** [/usr/src/linux-6.12.5-6.12-alt2/Makefile:1937: /var/lib/dkms/hid-sony-fix-dkms/0.1/build] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: выход из каталога «/usr/src/linux-6.12.5-6.12-alt2»
make: *** [Makefile:5: all] Error 2
----------------------

На 6.11 модуль нормально ставился и контроллер работал
Проблема на двух машинах с разным железом
Comment 1 Boris Yumankulov 2024-12-17 09:01:58 MSK
(In reply to Thiamine from comment #0)
> Created attachment 17394 [details]
> лог ошибки сборки модуля
> 
> После обновления ядра на 6.12 отвалился dualschock 4 . 
> Попытался переустановить hid-sony-fix-dkms
> При установке выдает ошибку
> ------------------------
> sudo dkms install -m hid-sony-fix-dkms -v 0.1
> 
> Sign command: /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file
> Binary /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file not found,
> modules won't be signed
> 
> Cleaning build area... done.
> Building module(s)...(bad exit status: 2)
> Failed command:
> make -j12 KERNELRELEASE=6.12.5-6.12-alt2 KVERSION=6.12.5-6.12-alt2
> 
> Error! Bad return status for module build on kernel: 6.12.5-6.12-alt2
> (x86_64)
> Consult /var/lib/dkms/hid-sony-fix-dkms/0.1/build/make.log for more
> information.
> [thiamine@ALT-Regular-OSIO ~]$ sudo dkms remove -m hid-sony-fix-dkms -v 0.1
> Module hid-sony-fix-dkms/0.1 is not installed for kernel 6.12.5-6.12-alt2
> (x86_64). Skipping...
> Module hid-sony-fix-dkms/0.1 is not built for kernel 6.12.5-6.12-alt2
> (x86_64). Skipping...
> [thiamine@ALT-Regular-OSIO ~]$ sudo dkms install -m hid-sony-fix-dkms -v 0.1
> 
> Sign command: /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file
> Binary /lib/modules/6.12.5-6.12-alt2/build/scripts/sign-file not found,
> modules won't be signed
> 
> Cleaning build area... done.
> Building module(s)...(bad exit status: 2)
> Failed command:
> make -j12 KERNELRELEASE=6.12.5-6.12-alt2 KVERSION=6.12.5-6.12-alt2
> 
> Error! Bad return status for module build on kernel: 6.12.5-6.12-alt2
> (x86_64)
> Consult /var/lib/dkms/hid-sony-fix-dkms/0.1/build/make.log for more
> information.
> --------------------------------------
> 
> В логе ошибка сборки:
> ------------------------
> DKMS make.log for hid-sony-fix-dkms/0.1 for kernel 6.12.5-6.12-alt2 (x86_64)
> Пн 16 дек 2024 15:25:24 MSK
> make -C /lib/modules/6.12.5-6.12-alt2/build
> M=/var/lib/dkms/hid-sony-fix-dkms/0.1/build modules
> make[1]: вход в каталог «/usr/src/linux-6.12.5-6.12-alt2»
>   CC [M]  /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.o
> /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.c:43:10: fatal
> error: asm/unaligned.h: Нет такого файла или каталога
>    43 | #include <asm/unaligned.h>
>       |          ^~~~~~~~~~~~~~~~~
> compilation terminated.
> make[3]: *** [scripts/Makefile.build:229:
> /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.o] Error 1
> make[2]: *** [/usr/src/linux-6.12.5-6.12-alt2/Makefile:1937:
> /var/lib/dkms/hid-sony-fix-dkms/0.1/build] Error 2
> make[1]: *** [Makefile:224: __sub-make] Error 2
> make[1]: выход из каталога «/usr/src/linux-6.12.5-6.12-alt2»
> make: *** [Makefile:5: all] Error 2
> ----------------------
> 
> На 6.11 модуль нормально ставился и контроллер работал
> Проблема на двух машинах с разным железом

А, если попробовать заменить

#include <asm/unaligned.h>

На 

#include <linux/unaligned.h>

Я правда не очень понимаю почему это находится в багах ядра если это баг стороннего dkms модуля которого нет в репозиториях, но исправления include должно вроде исправить сборку
Comment 2 Thiamine 2024-12-17 11:02:47 MSK
Сменил ссылку, вылезла другая ошибка
--------

DKMS make.log for hid-sony-fix-dkms/0.1 for kernel 6.12.5-6.12-alt2 (x86_64)
Вт 17 дек 2024 10:56:59 MSK
make -C /lib/modules/6.12.5-6.12-alt2/build M=/var/lib/dkms/hid-sony-fix-dkms/0.1/build modules
make[1]: вход в каталог «/usr/src/linux-6.12.5-6.12-alt2»
  CC [M]  /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.o
/var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.c:3257:29: error: initialization of ‘const __u8 * (*)(struct hid_device *, __u8 *, unsigned int *)’ {aka ‘const unsigned char * (*)(struct hid_device *, unsigned char *, unsigned int *)’} from incompatible pointer type ‘u8 * (*)(struct hid_device *, u8 *, unsigned int *)’ {aka ‘unsigned char * (*)(struct hid_device *, unsigned char *, unsigned int *)’} [-Wincompatible-pointer-types]
 3257 |         .report_fixup     = sony_report_fixup,
      |                             ^~~~~~~~~~~~~~~~~
/var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.c:3257:29: note: (near initialization for ‘sony_driver.report_fixup’)
make[3]: *** [scripts/Makefile.build:229: /var/lib/dkms/hid-sony-fix-dkms/0.1/build/hid-sony-fix-dkms.o] Error 1
make[2]: *** [/usr/src/linux-6.12.5-6.12-alt2/Makefile:1937: /var/lib/dkms/hid-sony-fix-dkms/0.1/build] Error 2
make[1]: *** [Makefile:224: __sub-make] Error 2
make[1]: выход из каталога «/usr/src/linux-6.12.5-6.12-alt2»
make: *** [Makefile:5: all] Error 2
Comment 3 Thiamine 2024-12-17 11:05:49 MSK
(Ответ для Boris Yumankulov на комментарий #1)

> Я правда не очень понимаю почему это находится в багах ядра если это баг
> стороннего dkms модуля которого нет в репозиториях, но исправления include
> должно вроде исправить сборку

Наверно потому что на предыдущем 6.11 такой проблемы нет )) Багу продублировал еще на гитхаб разработчику модуля
https://github.com/ozz-is-here/hid-sony-fix-dkms/issues/1
Comment 4 Andrey Cherepanov 2024-12-17 12:29:37 MSK
Это не к dkms. Правьте код hid-sony-fix-dkms