Hi ! I am trying to install the driver, but I have some errors when using make command. Can somebody help me ?
root@user-MS-7B79:/home/user/Downloads/RTL8812BU# sudo apt install -y build-essential dkms git bc
Reading package lists... Done
Building dependency tree
Reading state information... Done
bc is already the newest version (1.07.1-2build1).
build-essential is already the newest version (12.8ubuntu1.1).
dkms is already the newest version (2.8.1-5ubuntu2).
git is already the newest version (1:2.25.1-1ubuntu3.11).
The following packages were automatically installed and are no longer required:
adwaita-qt coinor-libcbc3 coinor-libcgl1 coinor-libclp1 coinor-libcoinmp1v5
coinor-libcoinutils3v5 coinor-libosi1v5 libdouble-conversion3 libfuse3-3
libpcre2-16-0 libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5svg5
libqt5widgets5 libxmlsec1 libxmlsec1-nss qt5-gtk-platformtheme
qttranslations5-l10n
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@user-MS-7B79:/home/user/Downloads/RTL8812BU# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.15.0-76-generic/build M=/home/user/Downloads/RTL8812BU modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-76-generic'
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_cmd.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_cmd.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_security.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_security.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_debug.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_debug.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_io.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_io.c:47:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_ioctl_query.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_ioctl_query.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_ioctl_set.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_ioctl_set.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_ieee80211.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_ieee80211.c:20:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_mlme.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/include/../hal/phydm/phydm_types.h:215,
from /home/user/Downloads/RTL8812BU/include/../hal/phydm/phydm_precomp.h:29,
from /home/user/Downloads/RTL8812BU/include/hal_data.h:20,
from /home/user/Downloads/RTL8812BU/core/rtw_mlme.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_mlme_ext.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_mlme_ext.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
/home/user/Downloads/RTL8812BU/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/home/user/Downloads/RTL8812BU/core/rtw_mlme_ext.c:1335:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
1335 | ptable->func = &OnAuthClient;
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/user/Downloads/RTL8812BU/core/rtw_mlme_ext.c:1337:2: note: here
1337 | case WIFI_ASSOCREQ:
| ^~~~
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_mi.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_mi.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_wlan_util.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_wlan_util.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_vht.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_vht.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_pwrctrl.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_pwrctrl.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_rf.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_rf.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_chplan.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_chplan.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_recv.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_recv.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_sta_mgt.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_sta_mgt.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_ap.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_ap.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/mesh/rtw_mesh.o
CC [M] /home/user/Downloads/RTL8812BU/core/mesh/rtw_mesh_pathtbl.o
CC [M] /home/user/Downloads/RTL8812BU/core/mesh/rtw_mesh_hwmp.o
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_xmit.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_xmit.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_p2p.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_p2p.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_rson.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_rson.c:22:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_tdls.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_tdls.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_br_ext.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_br_ext.c:30:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_iol.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_iol.c:16:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_sreset.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_sreset.c:16:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_btcoex_wifionly.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_btcoex_wifionly.c:15:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_btcoex.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_btcoex.c:15:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_beamforming.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_beamforming.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_odm.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/include/rtw_odm.h:18,
from /home/user/Downloads/RTL8812BU/core/rtw_odm.c:16:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_rm.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_rm.c:16:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/rtw_rm_fsm.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/rtw_rm_fsm.c:16:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/core/efuse/rtw_efuse.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/core/efuse/rtw_efuse.c:17:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
CC [M] /home/user/Downloads/RTL8812BU/os_dep/osdep_service.o
In file included from /home/user/Downloads/RTL8812BU/include/drv_conf.h:17,
from /home/user/Downloads/RTL8812BU/include/drv_types.h:25,
from /home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:19:
/home/user/Downloads/RTL8812BU/include/autoconf.h:183: warning: "CONFIG_RTW_SW_LED" redefined
183 | #define CONFIG_RTW_SW_LED
|
<command-line>: note: this is the location of the previous definition
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c: In function ‘isFileReadable’:
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2203:11: error: implicit declaration of function ‘get_fs’; did you mean ‘get_sa’? [-Werror=implicit-function-declaration]
2203 | oldfs = get_fs();
| ^~~~~~
| get_sa
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2203:11: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2205:3: error: implicit declaration of function ‘set_fs’; did you mean ‘sget_fc’? [-Werror=implicit-function-declaration]
2205 | set_fs(KERNEL_DS);
| ^~~~~~
| sget_fc
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2205:10: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
2205 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2205:10: note: each undeclared identifier is reported only once for each function it appears in
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c: In function ‘retriveFromFile’:
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2245:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
2245 | oldfs = get_fs();
| ^~~~~~
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2247:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
2247 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c: In function ‘storeToFile’:
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2284:12: error: incompatible types when assigning to type ‘mm_segment_t’ {aka ‘struct <anonymous>’} from type ‘int’
2284 | oldfs = get_fs();
| ^~~~~~
/home/user/Downloads/RTL8812BU/os_dep/osdep_service.c:2286:11: error: ‘KERNEL_DS’ undeclared (first use in this function); did you mean ‘KERNFS_NS’?
2286 | set_fs(KERNEL_DS);
| ^~~~~~~~~
| KERNFS_NS
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:297: /home/user/Downloads/RTL8812BU/os_dep/osdep_service.o] Error 1
make[1]: *** [Makefile:1914: /home/user/Downloads/RTL8812BU] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-76-generic'
make: *** [Makefile:2288: modules] Error 2
root@user-MS-7B79:/home/user/Downloads/RTL8812BU# sudo make install
install -p -m 644 88x2bu.ko /lib/modules/5.15.0-76-generic/kernel/drivers/net/wireless/
install: cannot stat '88x2bu.ko': No such file or directory
make: *** [Makefile:2294: install] Error 1
root@user-MS-7B79:/home/user/Downloads/RTL8812BU#
Hi ! I am trying to install the driver, but I have some errors when using make command. Can somebody help me ?