RTL88x2BU-Linux-Driver
RTL88x2BU-Linux-Driver copied to clipboard
Built failed on AlmaLinux 9.5
I got an error when building this package on AlmaLinux 9.5. Please help.
root@localhost:~$ git clone "https://github.com/RinCat/RTL88x2BU-Linux-Driver.git" /usr/src/rtl88x2bu-git
root@localhost:~$ sed -i 's/PACKAGE_VERSION="@PKGVER@"/PACKAGE_VERSION="git"/g' /usr/src/rtl88x2bu-git/dkms.conf
root@localhost:~$ dkms add -m rtl88x2bu -v git
root@localhost:~$ dkms autoinstall
Sign command: /lib/modules/5.14.0-503.23.2.el9_5.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Certificate or key are missing, generating self signed certificate for MOK...
Autoinstall of module rtl88x2bu/git for kernel 5.14.0-503.23.2.el9_5.x86_64 (x86_64)
Cleaning build area... done.
Building module(s)....(bad exit status: 2)
Failed command:
'make' -j56 KVER=5.14.0-503.23.2.el9_5.x86_64 KSRC=/lib/modules/5.14.0-503.23.2.el9_5.x86_64/build
Error! Bad return status for module build on kernel: 5.14.0-503.23.2.el9_5.x86_64 (x86_64)
Consult /var/lib/dkms/rtl88x2bu/git/build/make.log for more information.
Autoinstall on 5.14.0-503.23.2.el9_5.x86_64 failed for module(s) rtl88x2bu(10).
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
Here is the content of /var/lib/dkms/rtl88x2bu/git/build/make.log:
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:6911:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
6911 | *ht = 0;
| ~~~~^~~
/var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.c:6913:9: note: here
6913 | case NL80211_CHAN_WIDTH_20:
| ^~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/ioctl_cfg80211.o] Error 1
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/rtl88x2bu/git/build/os_dep/linux/rtw_proc.o] Error 1
make[1]: *** [Makefile:1944: /var/lib/dkms/rtl88x2bu/git/build] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-503.23.2.el9_5.x86_64'
make: *** [Makefile:2470: modules] Error
Hi, try edit Makefile and add at top:
EXTRA_CFLAGS += -Wno-error
and see if it works.