Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with building module after kernel upgrade #3

Open
as400l opened this issue Oct 28, 2024 · 0 comments
Open

Problem with building module after kernel upgrade #3

as400l opened this issue Oct 28, 2024 · 0 comments

Comments

@as400l
Copy link

as400l commented Oct 28, 2024

I have a simple module added to ckms. It builds normally without any problems.
However after a kernel upgrade it is trying to build a module once more for a kernel that:

  • was installed before the upgrade
  • the module was built and installed for that kernel

In case of logs below the upgrade was from 6.11.5-r0 to 6.11.5-r1. The module builds and installs perfectly fine when I do it manually after reboot.

Executing ckms-0.1.0-r3.trigger
kernel headers not installed for 6.11.5-0-generic, skipping...
=> ckms: preparing build...
=> ckms: configuring...
=> ckms: building...
gmake: Entering directory '/var/lib/ckms/hid-t150/0.8a/build/module'
gmake -C /lib/modules/6.11.5-0-generic/build M=/var/lib/ckms/hid-t150/0.8a/build/module modules
gmake[1]: Entering directory '/var/lib/ckms/hid-t150/0.8a/build/module'
gmake[1]: *** /lib/modules/6.11.5-0-generic/build: No such file or directory.  Stop.
gmake[1]: Leaving directory '/var/lib/ckms/hid-t150/0.8a/build/module'
gmake: *** [Makefile:5: all] Error 2
gmake: Leaving directory '/var/lib/ckms/hid-t150/0.8a/build/module'
=> ckms: ERROR: hook 'build' failed with code 2
FAILED: build hid-t150=0.8a for 6.11.5-1-generic
kernel headers not installed for 6.6.58-0-generic, skipping...
kernel headers not installed for 6.6.58-1-generic, skipping...
Executing desktop-file-utils-0.28-r0.trigger
Executing base-kernel-0.2-r3.trigger
Running kernel.d scripts...
kernel headers not installed for 6.11.5-0-generic, skipping...
=> ckms: preparing build...
=> ckms: configuring...
=> ckms: building...
gmake: Entering directory '/var/lib/ckms/hid-t150/0.8a/build/module'
gmake -C /lib/modules/6.11.5-0-generic/build M=/var/lib/ckms/hid-t150/0.8a/build/module modules
gmake[1]: Entering directory '/var/lib/ckms/hid-t150/0.8a/build/module'
gmake[1]: *** /lib/modules/6.11.5-0-generic/build: No such file or directory.  Stop.
gmake[1]: Leaving directory '/var/lib/ckms/hid-t150/0.8a/build/module'
gmake: *** [Makefile:5: all] Error 2
gmake: Leaving directory '/var/lib/ckms/hid-t150/0.8a/build/module'
=> ckms: ERROR: hook 'build' failed with code 2
FAILED: build hid-t150=0.8a for 6.11.5-1-generic
kernel headers not installed for 6.6.58-0-generic, skipping...
kernel headers not installed for 6.6.58-1-generic, skipping...
update-initramfs: Generating /boot/initrd.img-6.11.5-1-generic
update-initramfs: Generating /boot/initrd.img-6.6.58-1-generic
Generating boot entries for chimera...
Found kernel: /boot/vmlinuz-6.11.5-1-generic
Found kernel: /boot/vmlinuz-6.11.5-0-generic
Found kernel: /boot/vmlinuz-6.6.58-1-generic
Found kernel: /boot/vmlinuz-6.6.58-0-generic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant