Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang built kernels dkms does fail #32

Open
3 tasks done
ptr1337 opened this issue Aug 30, 2024 · 1 comment
Open
3 tasks done

Clang built kernels dkms does fail #32

ptr1337 opened this issue Aug 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ptr1337
Copy link

ptr1337 commented Aug 30, 2024

Checklist

  • I am not using this driver from inside a Virtual Machine.
  • I performed all of the installation steps as written.
  • I have read the FAQ and my question is not answered there.

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 CachyOS/linux-cachyos#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:

  • Toolchain check
  • Pass "-Wno-unknown-warning-option" if clang is found
@ptr1337 ptr1337 added the bug Something isn't working label Aug 30, 2024
@morrownr morrownr changed the title [Bug]: Clang built kernels dkms does fail Clang built kernels dkms does fail Sep 4, 2024
@morrownr
Copy link
Owner

morrownr commented Sep 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants