rtlwifi-linux / rtw88_8723de

19 stars 7 forks source link

Error when try to build the driver #7

Open Playerxer opened 3 years ago

Playerxer commented 3 years ago

Hi,

Debian 10.6 Linux 4.19.0-12-amd64 x86_64

Thank you very much for this driver.

When I try to do make according to the README file I get this error:

CC [M] /home/user/Downloads/rtw88_8723de-master/rtw8822b.o In file included from /usr/src/linux-headers-4.19.0-12-common/include/asm-generic/bug.h:18, from /usr/src/linux-headers-4.19.0-12-common/arch/x86/include/asm/bug.h:83, from /usr/src/linux-headers-4.19.0-12-common/include/linux/bug.h:5, from /usr/src/linux-headers-4.19.0-12-common/include/net/mac80211.h:19, from /home/user/Downloads/rtw88_8723de-master/main.h:8, from /home/user/Downloads/rtw88_8723de-master/rtw8822b.c:5:

/usr/src/linux-headers-4.19.0-12-common/include/linux/kernel.h:72:25: error: expected declaration specifiers or ‘...’ before ‘(’ token

define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))

                     ^

/home/user/Downloads/rtw88_8723de-master/rtw8822b.c:2255:15: note: in expansion of macro ‘ARRAY_SIZE’ static_assert(ARRAY_SIZE(rf_para_tx_8822b) == ARRAY_SIZE(rf_para_rx_8822b)); ^~~~~~ make[4]: [/usr/src/linux-headers-4.19.0-12-common/scripts/Makefile.build:309: /home/user/Downloads/rtw88_8723de-master/rtw8822b.o] Fehler 1 make[3]: [/usr/src/linux-headers-4.19.0-12-common/Makefile:1565: module/home/user/Downloads/rtw88_8723de-master] Fehler 2 make[2]: [Makefile:146: sub-make] Fehler 2 make[1]: [Makefile:8: all] Fehler 2 make[1]: Verzeichnis „/usr/src/linux-headers-4.19.0-12-amd64“ wird verlassen make: *** [Makefile:44: all] Fehler 2

Could you please help me with this problem? I am relative new to Linux.

Thank you

pkshih commented 3 years ago

Your kernel, 4.19.0-12-amd64 x86_64, is too old, please try 5.4 or 5.6 at least.