Error! Bad return status for module build on kernel: 4.13.0-38-generic (x86_64)

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

Bug Description

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.13.0-38-generic -C /lib/modules/4.13.0-38-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.13.0-38-generic (x86_64)
Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.
------------------------------------------------------------------------

DKMS make.log for tp-smapi-0.41 for kernel 4.13.0-38-generic (x86_64)
Sat Apr 14 13:44:42 IST 2018
make: Entering directory '/usr/src/linux-headers-4.13.0-38-generic'
  AR /var/lib/dkms/tp-smapi/0.41/build/built-in.o
  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:346: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:398:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:148: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:315: 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:1550: 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.13.0-38-generic'

Revision history for this message
FGo (fgo) wrote :

Hello, me affected of this bug too... see the make.log of mine below...

-------------
DKMS make.log for tp-smapi-0.41 for kernel 4.13.0-43-generic (x86_64)
Do 24. Mai 18:52:49 CEST 2018
make: Verzeichnis „/usr/src/linux-headers-4.13.0-43-generic“ wird betreten
  AR /var/lib/dkms/tp-smapi/0.41/build/built-in.o
  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:346: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:398:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:148: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:323: die Regel für Ziel „/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o“ scheiterte
make[1]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Fehler 1
Makefile:1550: die Regel für Ziel „_module_/var/lib/dkms/tp-smapi/0.41/build“ scheiterte
make: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Fehler 2
make: Verzeichnis „/usr/src/linux-headers-4.13.0-43-generic“ wird verlassen

-----------------model - T530i-----------------------------------

Revision history for this message
FGo (fgo) wrote :

found this PPA's for newer ThinkPad models not supported by smapi :

-----------------------------------------------------------------------------------------------
1.- sudo add-apt-repository ppa:morgwai/tpbat
 ThinkPad battery charge threshold management scripts for newer models not supported by smapi.
 Mehr Informationen: https://launchpad.net/~morgwai/+archive/ubuntu/tpbat

2.- sudo add-apt-repository ppa:linrunner/tlp
 TLP is a power management tool for Linux.
 It brings you the benefits of advanced power management
 without the need to understand every technical detail.

Project homepage: http://linrunner.de/tlp

Note: starting with Ubuntu Wily TLP is provided via the official Ubuntu repos.
Only newer versions will be published here.

-----------------------------------------------------------------------------------------------

it installed newer versions of:

-----------------------------------------------------------------------------------------------
Die folgenden Pakete werden aktualisiert (Upgrade):
  tlp tlp-rdw tp-smapi-dkms
3 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

- tlp all 1.1-2~xenial [56,2 kB]
- tlp-rdw all 1.1-2~xenial [3.970 B]
- tp-smapi-dkms all 0.42-1~xenial [33,7 kB]
-----------------------------------------------------------------------------------------------

so me will see if it works for me...

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1606447, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

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.