norazly / Comfast-CF-811AC

GNU General Public License v2.0
34 stars 5 forks source link

armbian: ./dkms-install.sh #3

Open LittleOn opened 1 year ago

LittleOn commented 1 year ago
sudo ./dkms-install.sh 
sudo: /etc/sudoers.d is owned by uid 1023, should be 0
About to run dkms install steps...
Creating symlink /var/lib/dkms/rtl8821CU/5.4.1/source -> /usr/src/rtl8821CU-5.4.1

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' KVER=5.15.90-flippy-81+o...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.90-flippy-81+o (aarch64)
Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' KVER=5.15.90-flippy-81+o...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.90-flippy-81+o (aarch64)
Consult /var/lib/dkms/rtl8821CU/5.4.1/build/make.log for more information.
Finished running dkms install steps.

armbian:rtl8821CU-master:# cat /var/lib/dkms/rtl8821CU/5.4.1/build/make.log 
DKMS make.log for rtl8821CU-5.4.1 for kernel 5.15.90-flippy-81+o (aarch64)
Tue Jan 31 04:59:41 PM CST 2023
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.15.90-flippy-81+o/build M=/var/lib/dkms/rtl8821CU/5.4.1/build  modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.90-flippy-81+o'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: Ubuntu clang version 14.0.0-1ubuntu1
  You are using:           gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
  CC [M]  /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.o
gcc: error: unrecognized command-line option ‘-Qunused-arguments’
gcc: error: unrecognized command-line option ‘-mno-global-merge’
gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/rtl8821CU/5.4.1/build/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1904: /var/lib/dkms/rtl8821CU/5.4.1/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.90-flippy-81+o'
make: *** [Makefile:2217: modules] Error 2
All3yp commented 5 months ago

Were you able to solve the problem? I'm with the same, but in another linux version