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

compile error on Archlinux #2

Open
cypa opened this issue Dec 8, 2018 · 4 comments
Open

compile error on Archlinux #2

cypa opened this issue Dec 8, 2018 · 4 comments

Comments

@cypa
Copy link

cypa commented Dec 8, 2018

$ make
make -C /lib/modules/4.19.4-arch1-1-ARCH/build M=/home/cypa/rtl8xxxu modules
make[1]: Entering directory '/usr/lib/modules/4.19.4-arch1-1-ARCH/build'
CC [M] /home/cypa/rtl8xxxu/rtl8xxxu_core.o
/home/cypa/rtl8xxxu/rtl8xxxu_core.c: В функции «rtl8xxxu_rx_parse_phystats»:
/home/cypa/rtl8xxxu/rtl8xxxu_core.c:5036:22: ошибка: «RX_FLAG_SHORT_GI» не описан (первое использование в этой функции); имелось в виду «RX_ENC_FLAG_SHORT_GI»?
rx_status->flag |= RX_FLAG_SHORT_GI;
^~~~~~~~~~~~~~~~
RX_ENC_FLAG_SHORT_GI
/home/cypa/rtl8xxxu/rtl8xxxu_core.c:5036:22: замечание: сообщение о каждом неописанном идентификаторе выдается один раз в каждой функции, где он встречается
/home/cypa/rtl8xxxu/rtl8xxxu_core.c: В функции «rtl8xxxu_parse_rxdesc16»:
/home/cypa/rtl8xxxu/rtl8xxxu_core.c:5262:23: ошибка: «RX_FLAG_40MHZ» не описан (первое использование в этой функции)
rx_status->flag |= RX_FLAG_40MHZ;
^~~~~~~~~~~~~
/home/cypa/rtl8xxxu/rtl8xxxu_core.c:5265:23: ошибка: «RX_FLAG_HT» не описан (первое использование в этой функции); имелось в виду «RX_ENC_HT»?
rx_status->flag |= RX_FLAG_HT;
^~~~~~~~~~
RX_ENC_HT
/home/cypa/rtl8xxxu/rtl8xxxu_core.c: В функции «rtl8xxxu_parse_rxdesc24»:
/home/cypa/rtl8xxxu/rtl8xxxu_core.c:5332:22: ошибка: «RX_FLAG_40MHZ» не описан (первое использование в этой функции)

@flxpchr
Copy link

flxpchr commented Mar 26, 2020

Same here !

make -C /lib/modules/5.3.0-42-generic/build M=/home/felix/rtl8xxxu modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-42-generic'
CC [M] /home/felix/rtl8xxxu/rtl8xxxu_core.o
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_rx_parse_phystats’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5036:22: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_SHORT_GI’?
rx_status->flag |= RX_FLAG_SHORT_GI;
^~~~~~~~~~~~~~~~
RX_ENC_FLAG_SHORT_GI
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5036:22: note: each undeclared identifier is reported only once for each function it appears in
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_parse_rxdesc16’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5262:23: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_NO_PSDU’?
rx_status->flag |= RX_FLAG_40MHZ;
^~~~~~~~~~~~~
RX_FLAG_NO_PSDU
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5265:23: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_40MHZ’?
rx_status->flag |= RX_FLAG_HT;
^~~~~~~~~~
RX_FLAG_40MHZ
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_parse_rxdesc24’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5332:22: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_NO_PSDU’?
rx_status->flag |= RX_FLAG_40MHZ;
^~~~~~~~~~~~~
RX_FLAG_NO_PSDU
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5335:22: error: ‘RX_FLAG_HT’ undeclared (first use in this function); did you mean ‘RX_FLAG_40MHZ’?
rx_status->flag |= RX_FLAG_HT;
^~~~~~~~~~
RX_FLAG_40MHZ
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_gen1_config_channel’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1155:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
ht = false;

/home/felix/rtl8xxxu/rtl8xxxu_core.c:1156:2: note: here
case NL80211_CHAN_WIDTH_20:
^~~~
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_gen2_config_channel’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1282:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
ht = false;
~~~^~~~~~~
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1283:2: note: here
case NL80211_CHAN_WIDTH_20:
^~~~
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_set_key’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5685:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/felix/rtl8xxxu/rtl8xxxu_core.c:5686:2: note: here
default:
^~~~~~~
/home/felix/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_identify_chip’:
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1750:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 priv->ep_tx_count++;
 ~~~~~~~~~~~~~~~~~^~
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1751:3: note: here
case 2:
^~~~
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1753:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 priv->ep_tx_count++;
 ~~~~~~~~~~~~~~~~~^~
/home/felix/rtl8xxxu/rtl8xxxu_core.c:1754:3: note: here
case 1:
^~~~
scripts/Makefile.build:288: recipe for target '/home/felix/rtl8xxxu/rtl8xxxu_core.o' failed
make[2]: *** [/home/felix/rtl8xxxu/rtl8xxxu_core.o] Error 1
Makefile:1655: recipe for target '_module_/home/felix/rtl8xxxu' failed
make[1]: *** [_module_/home/felix/rtl8xxxu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-42-generic'
Makefile:14: recipe for target 'modules' failed
make: *** [modules] Error 2

@daominh89
Copy link

same here

    ~/De/rtl8xxxu    master ?1  make install                                           ✔ 
make -C /lib/modules/5.15.16-1-MANJARO/build M=/home/mi/Desktop/rtl8xxxu modules
make[1]: Entering directory '/usr/lib/modules/5.15.16-1-MANJARO/build'
  CC [M]  /home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.o
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_rx_parse_phystats’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5036:36: error: ‘RX_FLAG_SHORT_GI’ undeclared (first use in this function); did you mean ‘RX_ENC_FLAG_SHORT_GI’?
 5036 |                 rx_status->flag |= RX_FLAG_SHORT_GI;
      |                                    ^~~~~~~~~~~~~~~~
      |                                    RX_ENC_FLAG_SHORT_GI
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5036:36: note: each undeclared identifier is reported only once for each function it appears in
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_parse_rxdesc16’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5262:44: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_8023’?
 5262 |                         rx_status->flag |= RX_FLAG_40MHZ;
      |                                            ^~~~~~~~~~~~~
      |                                            RX_FLAG_8023
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5265:44: error: ‘RX_FLAG_HT’ undeclared (first use in this function)
 5265 |                         rx_status->flag |= RX_FLAG_HT;
      |                                            ^~~~~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_parse_rxdesc24’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5332:36: error: ‘RX_FLAG_40MHZ’ undeclared (first use in this function); did you mean ‘RX_FLAG_8023’?
 5332 |                 rx_status->flag |= RX_FLAG_40MHZ;
      |                                    ^~~~~~~~~~~~~
      |                                    RX_FLAG_8023
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5335:36: error: ‘RX_FLAG_HT’ undeclared (first use in this function)
 5335 |                 rx_status->flag |= RX_FLAG_HT;
      |                                    ^~~~~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_gen1_config_channel’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1155:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1155 |                 ht = false;
      |                 ~~~^~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1156:9: note: here
 1156 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_gen2_config_channel’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1282:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1282 |                 ht = false;
      |                 ~~~^~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1283:9: note: here
 1283 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_set_key’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5685:28: warning: this statement may fall through [-Wimplicit-fallthrough=]
 5685 |                 key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC;
      |                 ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:5686:9: note: here
 5686 |         default:
      |         ^~~~~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c: In function ‘rtl8xxxu_identify_chip’:
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1750:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1750 |                         priv->ep_tx_count++;
      |                         ~~~~~~~~~~~~~~~~~^~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1751:17: note: here
 1751 |                 case 2:
      |                 ^~~~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1753:42: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1753 |                         priv->ep_tx_count++;
      |                         ~~~~~~~~~~~~~~~~~^~
/home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.c:1754:17: note: here
 1754 |                 case 1:
      |                 ^~~~
make[2]: *** [scripts/Makefile.build:277: /home/mi/Desktop/rtl8xxxu/rtl8xxxu_core.o] Error 1
make[1]: *** [Makefile:1868: /home/mi/Desktop/rtl8xxxu] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.15.16-1-MANJARO/build'
make: *** [Makefile:14: modules] Error 2

@cypa
Copy link
Author

cypa commented Feb 1, 2022

why do you do this?
official repo driver do not work?

@daominh89
Copy link

why do you do this? official repo driver do not work?

I don't know but It doesn't seems to work on arch linux based distros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants