this repository was working:
https://github.com/morrownr/8821cu-20210118
when trying to do it manually
$ make
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/5.16.12-arch1-1.0/build M=/home/user/Downloads/8821cu/8821cu-20210118 modules
make[1]: Entering directory '/usr/lib/modules/5.16.12-arch1-1.0/build'
CC [M] /home/user/Downloads/8821cu/8821cu-20210118/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:287: /home/user/Downloads/8821cu/8821cu-20210118/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1846: /home/user/Downloads/8821cu/8821cu-20210118] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.16.12-arch1-1.0/build'
make: *** [Makefile:2498: modules] Error 2
$ uname -a
Linux router 5.16.12-arch1-1.0 #1 SMP PREEMPT Fri, 04 Mar 2022 13:50:58 +0000 i686 GNU/Linux
$ cat /proc/version
Linux version 5.16.12-arch1-1.0 (linux@archlinux) (gcc (GCC) 11.2.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Fri, 04 Mar 2022 13:50:58 +0000
$ pacman -Q gcc
gcc 11.2.0-3.4
$ gcc --version | head -n 1
gcc (GCC) 11.2.0
$ pacman -Q binutils
binutils 2.38-3.9
$ pacman -Q bc
bc 1.07.1-4.0
the error seems to point to different version used to compile the kernel, yet my gcc version seems to match. any ideas?
]]>