frederik-h / acer-wmi-battery

A linux kernel driver for the Acer WMI battery health control interface
GNU General Public License v2.0
113 stars 15 forks source link

Not working on Nobara Linux (Fedora-based) for kernel 6.6.9-200.fsync.fc39.x86_64 #39

Closed RexPacificusVII closed 5 months ago

RexPacificusVII commented 8 months ago

Getting this error after running make:

make -C /lib/modules/6.6.9-200.fsync.fc39.x86_64/build M=/home/rexpacificusvii/acer-wmi-battery modules
make[1]: Entering directory '/usr/src/kernels/6.6.9-200.fsync.fc39.x86_64'
  CC [M]  /home/rexpacificusvii/acer-wmi-battery/acer-wmi-battery.o
  MODPOST /home/rexpacificusvii/acer-wmi-battery/Module.symvers
  CC [M]  /home/rexpacificusvii/acer-wmi-battery/acer-wmi-battery.mod.o
  LD [M]  /home/rexpacificusvii/acer-wmi-battery/acer-wmi-battery.ko
  BTF [M] /home/rexpacificusvii/acer-wmi-battery/acer-wmi-battery.ko
/bin/sh: line 1: ./tools/bpf/resolve_btfids/resolve_btfids: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:60: /home/rexpacificusvii/acer-wmi-battery/acer-wmi-battery.ko] Error 127
make[3]: *** Deleting file '/home/rexpacificusvii/acer-wmi-battery/acer-wmi-battery.ko'
make[2]: *** [/usr/src/kernels/6.6.9-200.fsync.fc39.x86_64/Makefile:1867: modules] Error 2
make[1]: *** [Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/6.6.9-200.fsync.fc39.x86_64'
make: *** [Makefile:5: all] Error 2
RexPacificusVII commented 8 months ago

It was working with the previous kernel 6.6.8 without any issue

frederik-h commented 5 months ago

This issue is unrelated to this module. I have googled for "resolve_btfids" and found several discussions about external module build issues. Perhaps you can find a fix in one of them.