You are not logged in.

#1 2022-02-15 15:39:34

halv
Member
Registered: 2022-02-15
Posts: 2

[SOLVED] Problem with DKMS wifi driver on kernel ≥ 5.15.23

Dear forum, when I upgrade to kernel ≥ 5.15.23, the DKMS driver for my Asus PCE-n53 wifi card won't build.

Said DKMS: https://aur.archlinux.org/packages/rt55 … tched-dkms


This is the output of make.log, which seems to suggest an error with "stdarg.h"

DKMS make.log for rt5592sta_linux_patched-dkms-2.6.0.0 for kernel 5.16.7-arch1-1 (x86_64)
2022-02-15T16:15:37 CET
make -C tools
cp -f os/linux/Makefile.6 /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/Makefile
make[1]: Entering directory '/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/tools'
gcc -g bin2h.c -o bin2h
make -C /lib/modules/5.16.7-arch1-1/build M=/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux
make[1]: Entering directory '/usr/lib/modules/5.16.7-arch1-1/build'
make[1]: Leaving directory '/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/tools'
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/tools/bin2h
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_md5.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_sha2.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_hmac.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.o
In file included from ./include/linux/kernel.h:20,
                 from ./arch/x86/include/asm/percpu.h:27,
                 from ./arch/x86/include/asm/current.h:6,
                 from ./arch/x86/include/asm/processor.h:17,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:65,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/os/rt_linux.h:31,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/rtmp_os.h:44,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/rtmp_comm.h:69,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/rt_config.h:33,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/crypt_aes.h:31,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:28:
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Wrap’:
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:1459:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
 1459 |         DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                     |
      |                                                                                                     long unsigned int
./include/linux/printk.h:422:25: note: in definition of macro ‘printk_index_wrap’
  422 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/os/rt_linux.h:672:9: note: in expansion of macro ‘printk’
  672 |         printk Fmt;               \
      |         ^~~~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/os/rt_linux.h:676:33: note: in expansion of macro ‘DBGPRINT_RAW’
  676 | #define DBGPRINT(Level, Fmt)    DBGPRINT_RAW(Level, Fmt)
      |                                 ^~~~~~~~~~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:1459:9: note: in expansion of macro ‘DBGPRINT’
 1459 |         DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
      |         ^~~~~~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:1459:60: note: format string is defined here
 1459 |         DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
      |                                                           ~^
      |                                                            |
      |                                                            int
      |                                                           %ld
In file included from ./include/linux/kernel.h:20,
                 from ./arch/x86/include/asm/percpu.h:27,
                 from ./arch/x86/include/asm/current.h:6,
                 from ./arch/x86/include/asm/processor.h:17,
                 from ./arch/x86/include/asm/timex.h:5,
                 from ./include/linux/timex.h:65,
                 from ./include/linux/time32.h:13,
                 from ./include/linux/time.h:60,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:13,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/os/rt_linux.h:31,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/rtmp_os.h:44,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/rtmp_comm.h:69,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/rt_config.h:33,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/crypt_aes.h:31,
                 from /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:28:
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Unwrap’:
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:1554:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
 1554 |         DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                       |
      |                                                                                                       long unsigned int
./include/linux/printk.h:422:25: note: in definition of macro ‘printk_index_wrap’
  422 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
      |                         ^~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/os/rt_linux.h:672:9: note: in expansion of macro ‘printk’
  672 |         printk Fmt;               \
      |         ^~~~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/include/os/rt_linux.h:676:33: note: in expansion of macro ‘DBGPRINT_RAW’
  676 | #define DBGPRINT(Level, Fmt)    DBGPRINT_RAW(Level, Fmt)
      |                                 ^~~~~~~~~~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:1554:9: note: in expansion of macro ‘DBGPRINT’
 1554 |         DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
      |         ^~~~~~~~
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.c:1554:62: note: format string is defined here
 1554 |         DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
      |                                                             ~^
      |                                                              |
      |                                                              int
      |                                                             %ld
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_arc4.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/mlme.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/cmm_wep.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/action.o
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/mlme.c:29:10: fatal error: stdarg.h: No such file or directory
   29 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/mlme.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1846: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.16.7-arch1-1/build'
make: *** [Makefile:385: LINUX] Error 2

Does anyone know what might be the problem, or rather, how to resolve?

Sincerely

Last edited by halv (2022-02-15 20:11:36)

Offline

#2 2022-02-15 15:41:37

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Problem with DKMS wifi driver on kernel ≥ 5.15.23


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2022-02-15 15:46:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,744

Re: [SOLVED] Problem with DKMS wifi driver on kernel ≥ 5.15.23

This isn't the issue Slithery linked, that's a different error.

You're seeing an actual incompatibility with the newer kernels, the code needs to be updated.

EDIT: For instance: https://bugs.debian.org/cgi-bin/bugrepo … ug=1005404

Last edited by Scimmia (2022-02-15 15:52:18)

Offline

#4 2022-02-15 20:10:43

halv
Member
Registered: 2022-02-15
Posts: 2

Re: [SOLVED] Problem with DKMS wifi driver on kernel ≥ 5.15.23

Thank you! You both appear to be right. After changing the file as mentioned on the debian forum, I did get an error similar to what Slithery suggested:

DKMS make.log for rt5592sta_linux_patched-dkms-2.6.0.0 for kernel 5.15.23-1-lts (x86_64)
2022-02-15T20:15:29 CET
make -C tools
cp -f os/linux/Makefile.6 /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/Makefile
make[1]: Entering directory '/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/tools'
gcc -g bin2h.c -o bin2h
make -C /lib/modules/5.15.23-1-lts/build M=/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux
make[1]: Entering directory '/usr/lib/modules/5.15.23-1-lts/build'
make[1]: Leaving directory '/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/tools'
/var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/tools/bin2h
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_md5.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_sha2.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_hmac.o
  CC [M]  /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_md5.o] Error 1
make[2]: *** Waiting for unfinished jobs....
cc1: error: incompatible gcc/plugin versions
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_sha2.o] Error 1
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_hmac.o] Error 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:277: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux/../../common/crypt_aes.o] Error 1
make[1]: *** [Makefile:1868: /var/lib/dkms/rt5592sta_linux_patched-dkms/2.6.0.0/build/os/linux] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.23-1-lts/build'
make: *** [Makefile:385: LINUX] Error 2

But when I changed from LTS to the newest stable-kernel it compiled just fine. I then upgraded the LTS, and achieved similar results on linux-lts 5.15.23-2.

Once again, thank you very much! I've submitted a pull-request, so this should sort itself out

Offline

Board footer

Powered by FluxBB