morrownr / 8812au-20210820

Linux Driver for USB WiFi Adapters that are based on the RTL8812AU Chipset - v5.13.6-23
Other
140 stars 33 forks source link

Clang built kernels dkms does fail #32

Open ptr1337 opened 2 months ago

ptr1337 commented 2 months ago

Checklist

Is Secure Boot enabled?

No

uname

6.10.7-2-cachyos-lto

lsusb

..

rfkill

..

dkms

DKMS make.log for rtl8812au-5.13.6.r55.ga88228b for kernel 6.10.7-2-cachyos-lto (x86_64)
Fri Aug 30 16:06:40 HKT 2024
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.10.7-2-cachyos-lto/build M=/var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build  modules
make[1]: Entering directory '/usr/lib/modules/6.10.7-2-cachyos-lto/build'
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_mlme.o
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: error: error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]

  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_mlme_ext.o
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_cmd.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_security.o] Error 1
error: make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_debug.o] Error 1
unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
  CC [M]  /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_mi.o
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_io.o] Error 1
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_ioctl_query.o] Error 1
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_ioctl_set.o] Error 1
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_ieee80211.o] Error 1
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_mlme.o] Error 1
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_mlme_ext.o] Error 1
error: unknown warning option '-Wno-enum-int-mismatch'; did you mean '-Wno-align-mismatch'? [-Werror,-Wunknown-warning-option]
error: unknown warning option '-Wno-stringop-overread' [-Werror,-Wunknown-warning-option]
make[3]: *** [scripts/Makefile.build:244: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build/core/rtw_mi.o] Error 1
make[2]: *** [/usr/lib/modules/6.10.7-2-cachyos-lto/build/Makefile:1937: /var/lib/dkms/rtl8812au/5.13.6.r55.ga88228b/build] Error 2
make[1]: *** [Makefile:240: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.10.7-2-cachyos-lto/build'
make: *** [Makefile:2515: modules] Error 2

iw

.

git status

.

install-driver.sh

.

What happened?

On CachyOS we want to move for the default kernel to be built with clang, see https://github.com/CachyOS/linux-cachyos/issues/286

We are going right now through a bunch of dkms packages, and mainly see the wifi ones are failing, see:

Could you maybe add to the Makefile:

morrownr commented 1 month ago

Hi @ptr1337

I have a lot of things on my to-do list and supporting clang is not even on the list. I would entertain the idea of merging a well tested patch.