wandercn / RTL8188GU

Realtek RTL8188GU Driver for TP-link TL-WN725N USB wifi
64 stars 8 forks source link

Compile error on Armbian for Orange Pi 5. #4

Open Poincare1 opened 1 year ago

Poincare1 commented 1 year ago

There appears to be some kind of error with efuse...? The driver will not compile. Screencap below. Please let me know what I can do. Thank you.

user@orangepi5:~/RTL8188GU/8188gu-1.0.1$ sudo make make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.10.110-rockchip-rk3588/build M=/home/user/RTL8188GU/8188gu-1.0.1 modules make[1]: Entering directory '/usr/src/linux-headers-5.10.110-rockchip-rk3588' CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_cmd.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_security.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_debug.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_io.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_ioctl_query.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_ioctl_set.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_ieee80211.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_mlme.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_mlme_ext.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_mi.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_wlan_util.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_vht.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_pwrctrl.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_rf.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_recv.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_sta_mgt.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_ap.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_xmit.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_p2p.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_rson.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_tdls.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_br_ext.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_iol.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_sreset.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_btcoex_wifionly.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_btcoex.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_beamforming.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/rtw_odm.o CC [M] /home/user/RTL8188GU/8188gu-1.0.1/core/efuse/rtw_efuse.o /home/user/RTL8188GU/8188gu-1.0.1/core/efuse/rtw_efuse.c: In function 'rtw_efuse_analyze': /home/user/RTL8188GU/8188gu-1.0.1/core/efuse/rtw_efuse.c:713:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] error, forbidden warning:rtw_efuse.c:713 713 | if (i % 16 == 0) | ^~ In file included from /home/user/RTL8188GU/8188gu-1.0.1/include/drv_types.h:60, from /home/user/RTL8188GU/8188gu-1.0.1/core/efuse/rtw_efuse.c:17: /home/user/RTL8188GU/8188gu-1.0.1/include/rtw_debug.h:292:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 292 | do {\ | ^~ /home/user/RTL8188GU/8188gu-1.0.1/core/efuse/rtw_efuse.c:715:25: note: in expansion of macro '_RTW_PRINT_SEL' 715 | _RTW_PRINT_SEL(RTW_DBGDUMP, "%02X%s" | ^~~~~~ make[2]: [scripts/Makefile.build:273: /home/user/RTL8188GU/8188gu-1.0.1/core/efuse/rtw_efuse.o] Error 1 make[1]: [Makefile:1920: /home/user/RTL8188GU/8188gu-1.0.1] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.10.110-rockchip-rk3588' make: *** [Makefile:1906: modules] Error 2 user@orangepi5:~/RTL8188GU/8188gu-1.0.1$

mvgaydey commented 1 year ago

same situation. =(

1994668171 commented 1 year ago

+1

helperShang commented 1 year ago
diff --git a/kernel/scripts/gcc-wrapper.py b/kernel/scripts/gcc-wrapper.py
index 76fb91c572..5f788034a6 100755
--- a/kernel/scripts/gcc-wrapper.py
+++ b/kernel/scripts/gcc-wrapper.py
@@ -81,7 +81,7 @@ def run_gcc():
         proc = subprocess.Popen(args, stderr=subprocess.PIPE)
         for line in proc.stderr:
             print >> sys.stderr, line,
-            interpret_warning(line)
+            #interpret_warning(line)

         result = proc.wait()
     except OSError as e:
wandercn commented 1 year ago

我的原始代码来自https://github.com/McMCCRU/rtl8188gu ,你可以看看他们是否解决。