robbi5/magictrackpad2-dkms

Won't compile vs Ubuntu 18.04

sleekweasel opened this issue · 2 comments

Linux Timblenovo 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

I'm getting errors about hid_input_report(... size ...) and hid_report_raw_event(... size ...) needing to be u32 instead of int, and (after trying to fix those) asking whether instead of signal_pending, I mean timer_pending.

I attach the make.log; here's the output:

Selecting previously unselected package magictrackpad2-dkms.
(Reading database ... 192712 files and directories currently installed.)
Preparing to unpack .../magictrackpad2-dkms_1.0.0_all.deb ...
Unpacking magictrackpad2-dkms (1.0.0) ...
Setting up magictrackpad2-dkms (1.0.0) ...

Creating symlink /var/lib/dkms/bcm5974/4.4+magictrackpad2/source ->
/usr/src/bcm5974-4.4+magictrackpad2

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.15.0-33-generic KERNEL_VERSION=4.15.0-33-generic all...
Signing module:

  • /var/lib/dkms/bcm5974/4.4+magictrackpad2/4.15.0-33-generic/x86_64/module/bcm5974.ko
    Secure Boot not enabled on this system.
    cleaning build area...

DKMS: build completed.

bcm5974:
Running module version sanity check.

  • Original module
  • Installation
    • Installing to /lib/modules/4.15.0-33-generic/updates/dkms/

depmod...

Backing up initrd.img-4.15.0-33-generic to /boot/initrd.img-4.15.0-33-generic.old-dkms
Making new initrd.img-4.15.0-33-generic
(If next boot fails, revert to initrd.img-4.15.0-33-generic.old-dkms image)
update-initramfs......

DKMS: install completed.

Creating symlink /var/lib/dkms/hid/4.4+magictrackpad2/source ->
/usr/src/hid-4.4+magictrackpad2

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...

make -j8 KERNELRELEASE=4.15.0-33-generic -C /lib/modules/4.15.0-33-generic/build SUBDIRS=/var/lib/dkms/hid/4.4+magictrackpad2/build modules...(bad exit status: 2)
ERROR (dkms apport): unable to determine source package for magictrackpad2-dkms
Error! Bad return status for module build on kernel: 4.15.0-33-generic (x86_64)
Consult /var/lib/dkms/hid/4.4+magictrackpad2/build/make.log for more information.
dpkg: error processing package magictrackpad2-dkms (--install):
installed magictrackpad2-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
magictrackpad2-dkms

While I'm writing, it would be helpful if you could add a few lines to 'how to install' - I haven't needed to fiddle with kernel modules for several years, and the tools have changed!

sudo apt-get install linux-source dkms libelf-dev
gem install fpm
make
sudo dpkg -i build/magictrackpad2-dkms_1.0.0_all.deb

I just noticed the libelf stuff at the start of the log - those signal_pending and similar errors persist.

make.log

Never mind, I found https://github.com/rozza/magictrackpad2-dkms which has a fix. Especially once I noticed the version number has been bumped too.