Ubuntu Support Template
Ubuntu Version:
25.10
Desktop Environment (if applicable):
GNOME
Problem Description:
I tried upgrading packages and moving from kernel 6.17.0-6-generic to 6.17.0-7-generic and get this error:
Autoinstall of module tp_smapi/0.44 for kernel 6.17.0-7-generic (x86_64)
Building module(s)...(bad exit status: 2)
Failed command:
make -j16 KERNELRELEASE=6.17.0-7-generic -C /lib/modules/6.17.0-7-generic/build M=/var/lib/dkms/tp_s
mapi/0.44/build HDAPS=1
/usr/share/apport/package-hooks/dkms_packages.py:101: DeprecationWarning: apport.fatal() is deprecat
ed. Please use apport.logging.fatal() directly instead.
apport.fatal('Cannot create report: ' + str(e))
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/tp-smapi-dkms.0.crash'
Error! Bad return status for module build on kernel: 6.17.0-7-generic (x86_64)
Consult /var/lib/dkms/tp_smapi/0.44/build/make.log for more information.
and the /var/lib/dkms/tp_sampi/0.44/build/make.log reads:
DKMS (dkms-3.2.0) make.log for tp_smapi/0.44 for kernel 6.17.0-7-generic (x86_64)
Sat Nov 29 12:15:28 PST 2025
Building module(s)
# command: make -j16 KERNELRELEASE=6.17.0-7-generic -C /lib/modules/6.17.0-7-generic/build M=/var/lib/dkms/tp_smapi/0.44/build HDAPS=1
make: Entering directory '/usr/src/linux-headers-6.17.0-7-generic'
make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.44/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
You are using: gcc (Ubuntu 15.2.0-4ubuntu4) 15.2.0
CC [M] thinkpad_ec.o
CC [M] tp_smapi.o
CC [M] hdaps.o
hdaps.c: In function ‘hdaps_suspend’:
hdaps.c:430:9: error: implicit declaration of function ‘del_timer_sync’ [-Wimplicit-function-declaration]
430 | del_timer_sync(&hdaps_timer);
| ^~~~~~~~~~~~~~
make[3]: *** [/usr/src/linux-headers-6.17.0-7-generic/scripts/Makefile.build:287: hdaps.o] Error 1
make[3]: *** Waiting for unfinished jobs....
thinkpad_ec.c: In function ‘check_dmi_for_ec’:
thinkpad_ec.c:471:1: warning: the frame size of 1728 bytes is larger than 1024 bytes [-Wframe-larger-than=]
471 | }
| ^
make[2]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:2016: .] Error 2
make[1]: *** [/usr/src/linux-headers-6.17.0-7-generic/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.44/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.17.0-7-generic'
# exit code: 2
# elapsed time: 08:00:01
----------------------------------------------------------------
Relevant System Information:
Not sure what’s relevant here other than I’m running a Thinkpad T14s Gen5 AMD. Let me know if lshw would be helpful.
Any insight would be great, thank you!