kuba-moo / mt7601u

Linux mac80211-based driver for Mediatek MT7601U USB bgn WiFi dongle
284 stars 111 forks source link

Failed to make #84

Closed mafezoli closed 4 years ago

mafezoli commented 4 years ago

I`m using Kali (5.4.0-kali3) and I get this error when trying to use make.

make make -C /lib/modules/uname -r/build M=$PWD make[1]: Entering directory '/usr/src/linux-headers-5.4.0-kali3-amd64' CC [M] /root/Downloads/mt7601u/eeprom.o /root/Downloads/mt7601u/eeprom.c: In function ‘mt7601u_efuse_physical_size_check’: /root/Downloads/mt7601u/eeprom.c:77:2: error: ISO C90 forbids array ‘data’ whose size can’t be evaluated [-Werror=vla] 77 | u8 data[map_reads * 16]; | ^~ cc1: all warnings being treated as errors make[3]: [/usr/src/linux-headers-5.4.0-kali3-common/scripts/Makefile.build:271: /root/Downloads/mt7601u/eeprom.o] Error 1 make[2]: [/usr/src/linux-headers-5.4.0-kali3-common/Makefile:1665: /root/Downloads/mt7601u] Error 2 make[1]: [/usr/src/linux-headers-5.4.0-kali3-common/Makefile:179: sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-kali3-amd64' make: [Makefile:8: default] Error 2