$ sudo cat /var/crash/tp-smapi-dkms.0.crash
ProblemType: Package
DKMSBuildLog:
 DKMS (dkms-3.2.1) make.log for tp_smapi/0.45 for kernel 7.2.0-5-generic 
(x86_64)
 Sat Aug 29 09:51:02 PM +08 2026
 
 Building module(s)
 # command: make -j20 KERNELRELEASE=7.2.0-5-generic -C 
/lib/modules/7.2.0-5-generic/build M=/var/lib/dkms/tp_smapi/0.45/build HDAPS=1
 make: Entering directory '/usr/src/linux-headers-7.2.0-5-generic'
 make[1]: Entering directory '/var/lib/dkms/tp_smapi/0.45/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.3.0-2ubuntu1) 15.3.0
   You are using:           gcc (Ubuntu 15.3.0-2ubuntu1) 15.3.0
 warning: pahole version differs from the one used to build the kernel
   The kernel was built with: 131
   You are using:             0
   CC [M]  thinkpad_ec.o
   CC [M]  tp_smapi.o
   CC [M]  hdaps.o
 tp_smapi.c: In function 'show_tp_ec_bat_str':
 tp_smapi.c:672:9: error: implicit declaration of function 'strncpy' 
[-Wimplicit-function-declaration]
   672 |         strncpy(buf, (char *)row+offset, maxlen);
       |         ^~~~~~~
 tp_smapi.c:47:1: note: include '<string.h>' or provide a declaration of 
'strncpy'
    46 | #include <linux/platform_device.h>
   +++ |+#include <string.h>
    47 | #include <asm/uaccess.h>
 tp_smapi.c:672:9: warning: incompatible implicit declaration of built-in 
function 'strncpy' [-Wbuiltin-declaration-mismatch]
   672 |         strncpy(buf, (char *)row+offset, maxlen);
       |         ^~~~~~~
 tp_smapi.c:672:9: note: include '<string.h>' or provide a declaration of 
'strncpy'
 make[3]: *** 
[/usr/src/linux-headers-7.2.0-5-generic/scripts/Makefile.build:289: tp_smapi.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-7.2.0-5-generic/Makefile:2192: .] Error 2
 make[1]: *** [/usr/src/linux-headers-7.2.0-5-generic/Makefile:248: __sub-make] 
Error 2
 make[1]: Leaving directory '/var/lib/dkms/tp_smapi/0.45/build'
 make: *** [Makefile:248: __sub-make] Error 2
 make: Leaving directory '/usr/src/linux-headers-7.2.0-5-generic'
 
 # exit code: 2
 # elapsed time: 00:00:01
 ----------------------------------------------------------------
DKMSKernelVersion: 7.2.0-5-generic
Date: Sat Aug 29 21:51:03 2026
DuplicateSignature: dkms:tp-smapi-dkms:0.45-1ubuntu1:tp_smapi.c:672:9: error: 
implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
Package: tp-smapi-dkms 0.45-1ubuntu1
PackageVersion: 0.45-1ubuntu1
SourcePackage: tp-smapi
Title: tp-smapi-dkms 0.45-1ubuntu1: tp_smapi kernel module failed to build

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2165822

Title:
  failed to build with kernel 7.2.0-5-generic

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tp-smapi/+bug/2165822/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to