saidsay-so / acpi_ec

Kernel module to access directly to the ACPI EC.
GNU General Public License v3.0
48 stars 7 forks source link

Linux kernel 6.5.0 causes problems #15

Closed ChunZheng2022 closed 9 months ago

ChunZheng2022 commented 9 months ago

Sorry to bother you, my gcc version is too old. I closed this issue.

lec@leclerc:~/ISW/acpi_ec$ sudo ./install.sh 
Secure Boot not enabled on this system.
Creating symlink /var/lib/dkms/acpi_ec/v1.0.4/source -> /usr/src/acpi_ec-v1.0.4

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
make -j16 KERNELRELEASE=6.5.0-14-generic -C /lib/modules/6.5.0-14-generic/build M=/var/lib/dkms/acpi_ec/v1.0.4/build/src modules...(bad exit status: 2)
ERROR (dkms apport): binary package for acpi_ec: v1.0.4 not found
Error! Bad return status for module build on kernel: 6.5.0-14-generic (x86_64)
Consult /var/lib/dkms/acpi_ec/v1.0.4/build/make.log for more information.

make.log:

lec@leclerc:~/ISW/acpi_ec$ cat /var/lib/dkms/acpi_ec/v1.0.4/build/make.log 
DKMS make.log for acpi_ec-v1.0.4 for kernel 6.5.0-14-generic (x86_64)
2024年 01月 16日 Tuesday 10:47:10 CST
make: Enter directory“/usr/src/linux-headers-6.5.0-14-generic”
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0
  You are using:           
  CC [M]  /var/lib/dkms/acpi_ec/v1.0.4/build/src/acpi_ec.o
/bin/sh: 1: gcc-12: not found
make[2]: *** [scripts/Makefile.build:251:/var/lib/dkms/acpi_ec/v1.0.4/build/src/acpi_ec.o] error 127
make[2]: *** Waiting for unfinished tasks....
make[1]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:2037:/var/lib/dkms/acpi_ec/v1.0.4/build/src] error 2
make: *** [Makefile:234:__sub-make] error 2
make: Leave directory“/usr/src/linux-headers-6.5.0-14-generic”