Rtw89 Bad return status for module build on kernel: : 5.13.19-2-MANJARO

Few days ago on my laptop with Manjaro I updated system, and after reboot my Wi-Fi module is not available. After short digging I found out that my Wi-Fi module has no drivers:

inxi -Fxxxz

Network:
  Device-1: Realtek RTL8852AE 802.11ax PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: N/A pcie: speed: Unknown lanes: 63
    port: 3000 bus-ID: 01:00.0 chip-ID: 10ec:8852 class-ID: 0280

So I’ve tried to reinstall this driver (rtw89) with AUR and later through this git, by both of this methods end up with same error:

==> dkms install --no-depmod rtw89/r154.fe43530 -k 5.13.19-2-MANJARO
Error! Bad return status for module build on kernel: 5.13.19-2-MANJARO (x86_64)
Consult /var/lib/dkms/rtw89/r154.fe43530/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtw89/r154.fe43530 -k 5.13.19-2-MANJARO' exited 10

The log file with information:

DKMS make.log for rtw89-r154.fe43530 for kernel 5.13.19-2-MANJARO (x86_64)
Ср 02 мар 2022 14:00:18 +04
make: вход в каталог «/usr/lib/modules/5.13.19-2-MANJARO/build»
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/core.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/debug.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/mac80211.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/mac.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/phy.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/fw.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/rtw8852a.o
  CC [M]  /var/lib/dkms/rtw89/r154.fe43530/build/rtw8852a_table.o
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/debug.o] Ошибка 1
make[1]: *** Ожидание завершения заданий…
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/core.o] Ошибка 1
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/mac80211.o] Ошибка 1
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/mac.o] Ошибка 1
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/phy.o] Ошибка 1
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/fw.o] Ошибка 1
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/rtw8852a.o] Ошибка 1
cc1: ошибка: incompatible gcc/plugin versions
cc1: ошибка: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[1]: *** [scripts/Makefile.build:273: /var/lib/dkms/rtw89/r154.fe43530/build/rtw8852a_table.o] Ошибка 1
make: *** [Makefile:1867: /var/lib/dkms/rtw89/r154.fe43530/build] Ошибка 2
make: выход из каталога «/usr/lib/modules/5.13.19-2-MANJARO/build»

It looks like there is something wrong with gcc (its version is 11.2.0 now) or/and it’s plugin structleak_plugin.so… And here I lost. It looks like there were some problems with this plugin before (I can’t post links), but it was year ago…

5.13 is EOL. Switch to a supported kernel:

sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu 
sudo mhwd-kernel -i linux515

Then reboot into 5.15. Press Esc during boot to get into grub menu > advanced options and boot with 5.15. Double check your running kernel is not 5.13 then remove it:

uname -r #to check kernel version
sudo mhwd-kernel -r linux513

For the driver part, install these packages and rebuild the wifi-driver:

sudo pacman -S base-devel git dkms linux515-headers --needed
pamac build rtw89-dkms-git

Reboot for changes to take effect.

1 Like

Thank you, that solves the problem! I missed that was on EOL version.

Tip:

Keep a really close eye on, and pay attention to the update announcements.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.