You are not logged in.

#1 2020-08-29 17:44:45

pixelmania33
Member
Registered: 2020-08-29
Posts: 1

Issues with kernel 5.8+ when compiling rtl88xxau

Since kernel 5.8+ and gcc-10.2.0, dkms cant compile the rtl88xxau driver anymore. But the compile works on kernel 5.7.9 and gcc 10.1.0.

:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod -m rtl88xxau -v r1068.df2b8df -k 5.8.5-zen1-1-zen
Error! Bad return status for module build on kernel: 5.8.5-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/make.log for more information.

The log says:

DKMS make.log for rtl88xxau-r1068.df2b8df for kernel 5.8.5-zen1-1-zen (x86_64)
Sat Aug 29 07:34:52 PM CEST 2020
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.8.5-zen1-1-zen/build M=/var/lib/dkms/rtl88xxau/r1068.df2b8df/build  modules
make[1]: Entering directory '/usr/lib/modules/5.8.5-zen1-1-zen/build'
  CC [M]  /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_set.o
In file included from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:70,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_io.c:47:
/var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
  257 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
                 from ./include/net/sock.h:59,
                 from ./include/linux/tcp.h:19,
                 from ./include/linux/ipv6.h:88,
                 from ./include/net/addrconf.h:50,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service_linux.h:52,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service.h:58,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:26,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_io.c:47:
./include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:70,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_cmd.c:17:
/var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
  257 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
                 from ./include/net/sock.h:59,
                 from ./include/linux/tcp.h:19,
                 from ./include/linux/ipv6.h:88,
                 from ./include/net/addrconf.h:50,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service_linux.h:52,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service.h:58,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:26,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_cmd.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:70,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_query.c:17:
/var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
  257 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
                 from ./include/net/sock.h:59,
                 from ./include/linux/tcp.h:19,
                 from ./include/linux/ipv6.h:88,
                 from ./include/net/addrconf.h:50,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service_linux.h:52,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service.h:58,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:26,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_query.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:70,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_set.c:17:
/var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
  257 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
                 from ./include/net/sock.h:59,
                 from ./include/linux/tcp.h:19,
                 from ./include/linux/ipv6.h:88,
                 from ./include/net/addrconf.h:50,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service_linux.h:52,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service.h:58,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:26,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_set.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:70,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_debug.c:17:
/var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
  257 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
                 from ./include/net/sock.h:59,
                 from ./include/linux/tcp.h:19,
                 from ./include/linux/ipv6.h:88,
                 from ./include/net/addrconf.h:50,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service_linux.h:52,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service.h:58,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:26,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_debug.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:70,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_security.c:17:
/var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/rtw_security.h:257:8: error: redefinition of ‘struct sha256_state’
  257 | struct sha256_state {
      |        ^~~~~~~~~~~~
In file included from ./include/linux/filter.h:23,
                 from ./include/net/sock.h:59,
                 from ./include/linux/tcp.h:19,
                 from ./include/linux/ipv6.h:88,
                 from ./include/net/addrconf.h:50,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service_linux.h:52,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/osdep_service.h:58,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/include/drv_types.h:26,
                 from /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_security.c:17:
./include/crypto/sha.h:84:8: note: originally defined here
   84 | struct sha256_state {
      |        ^~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_query.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_io.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_ioctl_set.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_security.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_cmd.o] Error 1
make[2]: *** [scripts/Makefile.build:281: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build/core/rtw_debug.o] Error 1
make[1]: *** [Makefile:1754: /var/lib/dkms/rtl88xxau/r1068.df2b8df/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.8.5-zen1-1-zen/build'
make: *** [Makefile:2245: modules] Error 2

I guess this is because the driver is simply not supported with kernel 5.8. Not much I can do except bug the developers I guess. hmm

Last edited by pixelmania33 (2020-08-29 17:45:37)

Offline

#2 2020-08-29 18:05:34

loqs
Member
Registered: 2014-03-06
Posts: 11,696

Re: Issues with kernel 5.8+ when compiling rtl88xxau

Update the AUR package from https://github.com/aircrack-ng/rtl8812a … 5372011fc9 which does not include 5.8 support to a commit including https://github.com/aircrack-ng/rtl8812a … 8c09397a62
If you are using https://aur.archlinux.org/packages/rtl8 … -dkms-git/ this will happen automatically when you rebuild the package.

Offline

Board footer

Powered by FluxBB