Compiler lacks asm-goto support..
USB安装CentOS 8.2.2004最小版本到一台PC,这个PC没有其他联网设备,只有一个小的USB Wifi卡,型号是TP-LINK TL-WN725N, 上TP-LINK官网下载了Linux驱动(https://static.tp-link.com/2018/201802/20180227/TL-WN725N_V3_Linux.zip) 进行编译安装,遇到如下错误 :
arch/x86/Makefile:184: *** Compiler lacks asm-goto support.. Stop. make: *** [Makefile:1367: modules] Error 2
原始安装的最小版本 CentOS 8.2.2004 minimal 是没有装 gcc/make/kernel dev 的,所以我不得不单独用rpm包逐个安装,已安装的包如下所示
rpm -qa|grep kernel
kernel-tools-libs-4.18.0-193.el8.x86_64
kernel-modules-4.18.0-193.el8.x86_64
kernel-tools-4.18.0-193.el8.x86_64
kernel-4.18.0-193.el8.x86_64
kernel-core-4.18.0-193.el8.x86_64
kernel-devel-4.18.0-193.el8.x86_64
rpm -qa|grep gcc
gcc-8.3.1-5.el8.0.2.x86_64
gcc-toolset-9-runtime-9.0-4.el8.x86_64
libgcc-8.3.1-5.el8.0.2.x86_64
gcc-c++-8.3.1-5.el8.0.2.x86_64
rpm -qa|grep make
cmake-3.11.4-7.el8.x86_64
automake-1.16.1-6.el8.noarch
make-4.2.1-10.el8.x86_64
as --version
GNU assembler version 2.30-73.el8 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `x86_64-redhat-linux'.
uname -r
4.18.0-193.el8.x86_64
cat /proc/version
Linux vrsion 4.18.0-193.el8.x86_64(mockbuild@kbuilder.bsys.centos.org)(gcc version 8.3.1 20191121(Red Hat 8.3.1-5)(GCC))#1 SMP Fri May 8 10:59:10 UTC 2020
这些包安装好后进行的编译,出以上错误。
头大,不知道哪里错了,还请多多指教。
Thanks