What is this dkms problem?

Hello .
I just entered Linux, I do not know much.
What is this problem?

➜  ~ sudo dkms autoinstall

Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.16.7-1-MANJARO -C /usr/lib/modules/5.16.7-1-MANJARO/build M=/var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.16.7-1-MANJARO (x86_64)
Consult /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/make.log for more information.
➜  ~ 



This packages looks to be broken.

There is no problem in kernel 5.15.21

This happens when I change the kernel

Try installing linux516-headers and try again on kernel 5.16:

sudo pacman -S linux516-headers
#to install for all currently installed kernels
sudo pacman -S $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-headers"}' ORS=' ') 

I had already installed!
linux-headers
.

It also has a problem

WARNING: dkms install --no-depmod rtbth / 3.9.6.r10.gf4fba63 -k 5.16.7-1-MANJARO 'exited 10`

AUR pkgbuilds are for Arch Linux.

That is not enough - you need to specify which header package or select the correct package when challenged - this is not automagically done.

Do not post screen shots - only text (comment removed).

AUR scripts is unsupported.

Use the AUR comment page to discuss your issue.

https://aur.archlinux.org/packages?O=0&K=rtbth

1 Like

-----.--------------

Content of make.log file
on the File path
/var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/make.log

DKMS make.log for rtbth-3.9.6.r10.gf4fba63 for kernel 5.16.7-1-MANJARO (x86_64)
Fri Feb 18 03:32:19 AM EST 2022
make: Entering directory '/usr/lib/modules/5.16.7-1-MANJARO/build'
  CC [M]  /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_init.o
  CC [M]  /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_main.o
  CC [M]  /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_bluez.o
  CC [M]  /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_pci.o
In file included from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_ctrl.h:30,
                 from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_hal.h:31,
                 from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_init.c:27:
/var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_type.h:31:10: fatal error: stdarg.h: No such file or directory
   31 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_init.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_osabl.h:30,
                 from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_main.c:30:
/var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_type.h:31:10: fatal error: stdarg.h: No such file or directory
   31 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_main.o] Error 1
In file included from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rt_linux.h:69,
                 from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_bluez.c:29:
/var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_type.h:31:10: fatal error: stdarg.h: No such file or directory
   31 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_bluez.o] Error 1
In file included from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rt_linux.h:69,
                 from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/hps_bluez.h:33,
                 from /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_pci.c:29:
/var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/include/rtbt_type.h:31:10: fatal error: stdarg.h: No such file or directory
   31 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:287: /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build/rtbth_core_pci.o] Error 1
make: *** [Makefile:1846: /var/lib/dkms/rtbth/3.9.6.r10.gf4fba63/build] Error 2
make: Leaving directory '/usr/lib/modules/5.16.7-1-MANJARO/build'