tp-smapi-dkms package fails to install (build - bad exit status: 2)

Bug #1795886 reported by kamiccolo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tp-smapi (Ubuntu)
New
Undecided
Unassigned

Bug Description

tp-smapi-dkms fails to install on Ubuntu 16.04 machine, complaining about build errors.

Log
$ sudo apt install tp-smapi-dkms

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-33 linux-headers-4.15.0-33-generic linux-image-4.15.0-33-generic linux-modules-4.15.0-33-generic linux-modules-extra-4.15.0-33-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  tp-smapi-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.8 kB of archives.
After this operation, 193 kB of additional disk space will be used.
Get:1 http://lt.archive.ubuntu.com/ubuntu xenial/universe amd64 tp-smapi-dkms all 0.41-1 [35.8 kB]
Fetched 35.8 kB in 0s (37.5 kB/s)
Selecting previously unselected package tp-smapi-dkms.
(Reading database ... 400451 files and directories currently installed.)
Preparing to unpack .../tp-smapi-dkms_0.41-1_all.deb ...
Unpacking tp-smapi-dkms (0.41-1) ...
Setting up tp-smapi-dkms (0.41-1) ...

Creating symlink /var/lib/dkms/tp-smapi/0.41/source ->
                 /usr/src/tp-smapi-0.41

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.15.0-36-generic -C /lib/modules/4.15.0-36-generic/build M=/var/lib/dkms/tp-smapi/0.41/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.15.0-36-generic (x86_64)
Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.
Scanning processes...
Scanning linux images...
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.

Actual build log (from /var/lib/dkms/tp-smapi/0.41/build/make.log):

DKMS make.log for tp-smapi-0.41 for kernel 4.15.0-36-generic (x86_64)
Wed Oct 3 15:35:26 EEST 2018
make: Entering directory '/usr/src/linux-headers-4.15.0-36-generic'
  CC [M] /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o
In file included from ./include/linux/module.h:18:0,
                 from /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:33:
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c: In function ‘__check_force_io’:
./include/linux/moduleparam.h:339:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:391:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:149:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value)); \
  ^
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:100:1: note: in expansion of macro ‘module_param_named’
 module_param_named(force_io, force_io, bool, 0600);
 ^
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c: In function ‘check_dmi_for_ec’:
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:469:1: warning: the frame size of 1728 bytes is larger than 1024 bytes [-Wframe-larger-than=]
 }
 ^
cc1: some warnings being treated as errors
scripts/Makefile.build:339: recipe for target '/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o' failed
make[1]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Error 1
Makefile:1551: recipe for target '_module_/var/lib/dkms/tp-smapi/0.41/build' failed
make: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.0-36-generic'

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: tp-smapi-dkms 0.41-1
ProcVersionSignature: Ubuntu 4.15.0-36.39~16.04.1-generic 4.15.18
Uname: Linux 4.15.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
Date: Wed Oct 3 15:38:27 2018
PackageArchitecture: all
SourcePackage: tp-smapi
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
kamiccolo (kamicc) wrote :
Revision history for this message
kamiccolo (kamicc) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.