Hi Apparently the kernel headers are not installed, but they are absolutely necessary for building the kernel modules. Just install the header package that corresponds to the kernel you are using. In your case, it should be linux517-headers. Once that is installed, you should be able to install the wifi driver package without any problems.
As @LinKostik mentioned, it seems the kernel headers aren’t installed. And they have to be installed to install a -dkms package, like you’re trying to install here.
To install the kernel headers for all installed kernels, run:
DKMS make.log for rtl88x2bu-5.8.7.1 for kernel 5.17.9-1-MANJARO (x86_64)
duminică 5 iunie 2022, 17:09:10 +0300
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.17.9-1-MANJARO/build M=/var/lib/dkms/rtl88x2bu/5.8.7.1/build modules
make[1]: Entering directory '/usr/lib/modules/5.17.9-1-MANJARO/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 12.1.0
You are using: gcc (GCC) 11.2.0
CC [M] /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_cmd.o
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1831: /var/lib/dkms/rtl88x2bu/5.8.7.1/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.17.9-1-MANJARO/build'
make: *** [Makefile:2391: modules] Error 2
This is what’s inside cat /var/lib/dkms/rtl88x2bu/5.8.7.1/build/make.log at the moment
DKMS make.log for rtl88x2bu-5.8.7.1 for kernel 5.15.41-1-MANJARO (x86_64)
duminică 5 iunie 2022, 17:28:35 +0300
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.41-1-MANJARO/build M=/var/lib/dkms/rtl88x2bu/5.8.7.1/build modules
make[1]: Entering directory '/usr/lib/modules/5.15.41-1-MANJARO/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (GCC) 12.1.0
You are using: gcc (GCC) 11.2.0
CC [M] /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_cmd.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/rtl88x2bu/5.8.7.1/build/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1868: /var/lib/dkms/rtl88x2bu/5.8.7.1/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.41-1-MANJARO/build'
make: *** [Makefile:2391: modules] Error 2
Does manjaro uses a modified kernel or somethiing like that?