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([email protected])(gcc version 8.3.1 20191121(Red Hat 8.3.1-5)(GCC))#1 SMP Fri May 8 10:59:10 UTC 2020
這些包安裝好后進行的編譯,出以上錯誤。
頭大,不知道哪里錯了,還請多多指教。
Thanks
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/17809.html
標籤:驅動程序開發區
