You are not logged in.

#1 2022-08-18 16:35:47

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 510

[SOLVED] DKMS modules failing to compile with new Kernel 5.19.2-arch1

I have 2 wifi external cards :

dkms status
8188eu/5.2.2.4.r803.903b6fc: added
rtl88x2bu/5.13.1.r165.d4cb421: added
supported via : 
8188eu-dkms-git 5.2.2.4.r794.53ed527-1
rtl88x2bu-dkms-git

After I installed today's kernel , I found my system offline.
Basically, linux-headers is present and it has nothing to do with the external driver either.

It fails for both with the same error :

==> dkms install --no-depmod 8188eu/5.2.2.4.r807.96c8812 -k 5.19.2-arch1-1
Error! Bad return status for module build on kernel: 5.19.2-arch1-1 (x86_64)
Consult /var/lib/dkms/8188eu/5.2.2.4.r807.96c8812/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8188eu/5.2.2.4.r807.96c8812 -k 5.19.2-arch1-1' exited 10

Below the failure log of rtl88x but 8188eu has the same exact failure error :

cat /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/make.log
DKMS make.log for rtl88x2bu-5.13.1.r165.d4cb421 for kernel 5.19.2-arch1-1 (x86_64)
Thu Aug 18 06:16:11 PM CEST 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.2-arch1-1/build M=/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build  modules
make[1]: Entering directory '/usr/lib/modules/5.19.2-arch1-1/build'
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_rf.o
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.c:299:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299 |                 if (rfctl->regd_name)
      |                    ^
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.c:302:9: note: here
  302 |         default:
      |         ^~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.c:1670:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1670 |                         ptable->func = &OnAuthClient;
      |                         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mlme_ext.c:1672:9: note: here
 1672 |         case WIFI_ASSOCREQ:
      |         ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/monitor/rtw_radiotap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/wds/rtw_wds.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_p2p.o
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_sta_mgt.c:391:27: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
  391 |         if (&(psta->lock) != NULL)
      |                           ^~
In file included from /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/include/drv_types.h:112,
                 from /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_sta_mgt.c:17:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/include/sta_info.h:267:17: note: ‘lock’ declared here
  267 |         _lock   lock;
      |                 ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_ft.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_wnm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_mbo.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_rm_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_roch.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-internal-enc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-gcm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-ccm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-omac1.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/ccmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/gcmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-siv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/aes-ctr.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/sha256-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/sha256.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/sha256-prf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/crypto/rtw_crypto_wrap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/core/rtw_swcrypto.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/wifi_regd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/nlrtw.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/rtw_rhashtable.o
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:478:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  478 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/include/osdep_service_linux.h:98,
                 from /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/include/osdep_service.h:54,
                 from /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/include/drv_types.h:27,
                 from /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7967:6: note: declared here
 7967 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_mp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/hal/hal_intf.o
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c: At top level:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:10413:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
10413 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:10413:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:10457:24: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10457 |         .get_channel = cfg80211_rtw_get_channel,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:10457:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:10693:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10693 |         if (wdev->current_bss) {
      |                 ^~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:6796:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6796 |                 *ht = 0;
      |                 ~~~~^~~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.c:6798:9: note: here
 6798 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/hal/hal_com.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/hal/hal_intf.c: In function ‘c2h_handler’:
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/hal/hal_intf.c:1370:24: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1370 |                 sub_id = payload[0];
      |                 ~~~~~~~^~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build/hal/hal_intf.c:1374:9: note: here
 1374 |         default:
      |         ^~~~~~~
make[1]: *** [Makefile:1849: /var/lib/dkms/rtl88x2bu/5.13.1.r165.d4cb421/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.19.2-arch1-1/build'
make: *** [Makefile:2454: modules] Error 2

Last edited by r0b0t (2022-08-18 20:09:40)

Offline

#2 2022-08-18 16:42:03

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 510

Re: [SOLVED] DKMS modules failing to compile with new Kernel 5.19.2-arch1

It works fine if I revert to the previous kernel :

sudo pacman -U /var/cache/pacman/pkg/linux-headers-5.19.1.arch2-1-x86_64.pkg.tar.zst /var/cache/pacman/pkg/linux-5.19.1.arch2-1-x86_64.pkg.tar.zst
loading packages...
warning: downgrading package linux-headers (5.19.2.arch1-1 => 5.19.1.arch2-1)
warning: downgrading package linux (5.19.2.arch1-1 => 5.19.1.arch2-1)
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-5.19.1.arch2-1  linux-headers-5.19.1.arch2-1

Total Installed Size:  323.23 MiB
Net Upgrade Size:       -0.03 MiB

:: Proceed with installation? [Y/n] Y
(2/2) checking keys in keyring                                                                                     [####################################################################] 100%
(2/2) checking package integrity                                                                                   [####################################################################] 100%
(2/2) loading package files                                                                                        [####################################################################] 100%
(2/2) checking for file conflicts                                                                                  [####################################################################] 100%
(2/2) checking available disk space                                                                                [####################################################################] 100%
:: Running pre-transaction hooks...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules
:: Processing package changes...
(1/2) downgrading linux-headers                                                                                    [####################################################################] 100%
(2/2) downgrading linux                                                                                            [####################################################################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod rtl88x2bu/5.13.1.r165.d4cb421 -k 5.19.1-arch2-1
==> dkms install --no-depmod 8188eu/5.2.2.4.r807.96c8812 -k 5.19.1-arch2-1
==> depmod 5.19.1-arch2-1
(4/4) Updating linux initcpios...
.....

Offline

#3 2022-08-18 16:46:09

urparvezali
Member
Registered: 2022-08-18
Posts: 11

Re: [SOLVED] DKMS modules failing to compile with new Kernel 5.19.2-arch1

Also in my device dkms failed
Error! Bad return status for module build on kernel: 5.19.2-arch1-1 (x86_64)
my wifi card rtl8821ce

Offline

#4 2022-08-18 17:40:39

loqs
Member
Registered: 2014-03-06
Posts: 18,891

Re: [SOLVED] DKMS modules failing to compile with new Kernel 5.19.2-arch1

https://github.com/lwfinger/rtl8188eu/c … t-81545905 the change mentioned in the comment resolves the build failure.

Offline

#5 2022-08-18 20:11:15

r0b0t
Member
From: /tmp
Registered: 2009-05-24
Posts: 510

Re: [SOLVED] DKMS modules failing to compile with new Kernel 5.19.2-arch1

loqs wrote:

https://github.com/lwfinger/rtl8188eu/c … t-81545905 the change mentioned in the comment resolves the build failure.

Confirming, reinstalling the package fixed it since it included this commit.

Offline

Board footer

Powered by FluxBB