Installing rtl8812bu driver using 512kernel

hello Im newbie in linux, i would like to install rtl8812bu im trying installing rtl88x2bu and the rtl8822bu and i already download the header for kernel and the updated files for system but then it gives me error

/var/tmp/pamac-build-kuroe/rtl8822bu-git/src/rtl8822bu/os_dep/linux/recv_linux.c:357:55: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:271: /var/tmp/pamac-build-kuroe/rtl8822bu-git/src/rtl8822bu/os_dep/linux/recv_linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1851: /var/tmp/pamac-build-kuroe/rtl8822bu-git/src/rtl8822bu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.12.2-1-MANJARO/build'
make: *** [Makefile:2001: modules] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

this error came from the pamac
please help me thanks