BrightX / rtl8192fu

Realtek 8192FU Linux USB无线网卡驱动
GNU General Public License v2.0
61 stars 24 forks source link

armbian 安装报错 #10

Open sparkleef opened 1 year ago

sparkleef commented 1 year ago

armbian 安装报错,小白看不懂,是不是要安装什么东西先,谢谢大大

Device Information | 设备信息

SOC: [S905l3a] Model [cm311-1a] Armbian Version | 系统版本

Kernel Version: [5.15.80] Release: [bullseye]

root@armbian:~/rtl8192fu# make -j$(nproc) make ARCH=aarch64 CROSS_COMPILE= -C /lib/modules/5.15.80-flippy-79+o/build M=/root/rtl8192fu modules make[1]: Entering directory '/usr/src/linux-headers-5.15.80-flippy-79+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 (Debian 10.2.1-6) 10.2.1 20210110 CC [M] /root/rtl8192fu/core/rtw_cmd.o CC [M] /root/rtl8192fu/core/rtw_security.o CC [M] /root/rtl8192fu/core/rtw_debug.o CC [M] /root/rtl8192fu/core/rtw_io.o gcc: error: unrecognized command-line option ‘-Qunused-arguments’ gcc: error: unrecognized command-line option ‘-Qunused-arguments’ gcc: error: unrecognized command-line option ‘-Qunused-arguments’ gcc: error: unrecognized command-line option ‘-mno-global-merge’ gcc: error: unrecognized command-line option ‘-mno-global-merge’ 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: /root/rtl8192fu/core/rtw_cmd.o] Error 1 make[2]: Waiting for unfinished jobs.... gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’ make[2]: [scripts/Makefile.build:289: /root/rtl8192fu/core/rtw_security.o] Error 1 gcc: error: unrecognized command-line option ‘-mno-global-merge’ gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’ make[2]: [scripts/Makefile.build:289: /root/rtl8192fu/core/rtw_debug.o] Error 1 gcc: error: unrecognized command-line option ‘-fsplit-lto-unit’ make[2]: [scripts/Makefile.build:289: /root/rtl8192fu/core/rtw_io.o] Error 1 make[1]: [Makefile:1902: /root/rtl8192fu] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.15.80-flippy-79+o' make: *** [Makefile:2332: modules] Error 2

sparkleef commented 1 year ago

不知道是不是编译器版本问题,开始前也执行了下面的命令 root@armbian:~/rtl8192fu# sudo apt install make gcc bc Reading package lists... Done Building dependency tree... Done Reading state information... Done bc is already the newest version (1.07.1-2+b2). gcc is already the newest version (4:10.2.1-1). make is already the newest version (4.3-4.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

tensor-tech commented 2 months ago

不知道是不是编译器版本问题,开始前也执行了下面的命令 root@armbian:~/rtl8192fu# sudo apt install make gcc bc Reading package lists... Done Building dependency tree... Done Reading state information... Done bc is already the newest version (1.07.1-2+b2). gcc is already the newest version (4:10.2.1-1). make is already the newest version (4.3-4.1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

需要升级 gcc版本,自己手动升级